Filed Under (cPanel/WHM, Linux) by WebScHoLaR on 24-02-2011
cPanel allows php to be configured as DSO, suPHP and FastCGI. PHP can be reconfigured using /usr/local/cpanel/bin/rebuild_phpconf script. This also allows to set the default PHP version (4 or 5) and enable/disable SuExec. Script has multiple command line parameters that can be passed to it. Script itself shows the available parameters:
[root@Server ~]# /usr/local/cpanel/bin/rebuild_phpconf
Usage: /usr/local/cpanel/bin/rebuild_phpconf [--dryrun] [--no-restart] [--no-htaccess] [--current|--available]
–dryrun : Only display the changes that would be made
–no-restart : Don’t restart Apache after updating the php.conf link
–no-htaccess : Don’t update user configurable PHP mime mapping.
–current : Show current settings
–available : Show available handlers and PHP SAPIs
: Version of PHP to set as default handler for .php files
: Type of Apache module to use in serving PHP requests
: enabled, disabled, 1 or 0
Read the rest of this entry »
Filed Under (cPanel/WHM, Linux) by WebScHoLaR on 24-02-2011
cPanel allows custom modification to any website Virtual Host section. httpd.conf in cPanel server is no longer used as a data store and it is rebuilt based on information stored at /var/cpanel/userdata mostly. A directory is created for each user at /var/cpanel/userdata that contains information about the websites. Virtual host section is added for each website that is setup in cPanel. Any custom settings can be added to Virtual Host using include file that should be created at following path:
Read the rest of this entry »
Filed Under (cPanel/WHM) by WebScHoLaR on 10-10-2010
cPanel displays the perl version installed on the server. If perl is upgraded and cPanel still shows the same old version, remove the perl version file from cPanel datastore inside user home:
# find /home/*/.cpanel | grep _usr_bin_perl_-v | awk ‘{system (“rm ” $1)}’
When the user loads cPanel again it will refresh the perl version with the correct version from the system.
Filed Under (cPanel/WHM) by WebScHoLaR on 10-10-2010
By default mailserver uses the main ethx IP as outgoing IP to send emails. If its blacklisted then instead of changing the main ethx IP, mailserver IP can be changed. To change the IP for all domains on the server:
Pre-requisite: If you are changing the mailserver ip, make sure that reverse DNS is setup for that IP or all emails will not be delivered properly.
1) In WHM , click on Exim Configuration Editor Then click the check box beside – Read the rest of this entry »
Filed Under (cPanel/WHM) by WebScHoLaR on 09-10-2010
PCI Compliance tests declare openssl as vulnerable usually. The tests usually just compare the openssl version and do no check that whether those have been patched for that vulnerability or not. One possible way is to consult PCI scan company and let them know that the openssl version installed is a patched version and the vulnerability is fixed. The other way is to manually compile openssl and recompile Apache/PHP with newer openssl libraries. The steps mentioned below are for cPanel 11.x +.
Check where the existing openssl that comes with the OS is installed.
[root@Server ~]# whereis openssl
openssl: /usr/bin/openssl /usr/lib/openssl /usr/include/openssl /usr/share/man/man1/openssl.1ssl.gz
The above result shows that openssl is installed at /usr/bin path. So we will not replace it with manual installed version but we will install it at a different path at /usr/local. Read the rest of this entry »
Filed Under (cPanel/WHM, Scripts) by WebScHoLaR on 27-11-2008
We need to migrate the data from a server to a new server often and it can be because of several factors like
- Old server is having hardware issues and need to be replaced completely
- Server is being upgraded and full data needs to be transferred
- The servers are being transferred from one data center to another
and many more. This script can be used to migrate all user data and the cPanel config files from Old server to new Server. Read the rest of this entry »