Showing posts from May, 2011

Configure suPHP on cPanel

After installing suPHP and before changing the PHP handler from your default one to suPHP, there are a few configuration options that need to be checked. 1) Check if the suPHP module is correctly loaded in the Apache configuration file. # LoadModule suphp_module libexec/ 2) Run the below scripts to double check the server settings: # /scripts/postsuexecinstall # /scripts/chownpublichtmls 3) Lets check the permissions now. If there are files with either 777 or 666 permission inside the document root, you are most likely to get Internal Server Errors. find /home/*/public_html/ -perm 777 -exec ls {} \; find /home/*/public_html/ -perm 777 -exec ls {} \; Set 755 and 644 respectively, for the files that gets listed in the above command. 4) Check the CGI scripts as well # /scripts/fixsuexeccgiscripts 5) Last but not the least, make sure that there are no php_flags in the domain’s .htaccess file. # grep -iRl php /home/*/public_html/.htaccess If you wa

How To Install Apache 2 with SSL on Linux

I prefer to install Apache from source, as it gives me more flexibility on exactly what modules I want to enable or disable, and I can also upgrade or apply patch immediately after it is released by the Apache foundation. 1. Download Apache Download Apache from . The current stable release is 2.2.17. Once you get the direct URL to download the latest stable version of Apache, use wget as shown below to download it directly to you server. cd ~ wget tar xvfz httpd-2.2.17.tar.gz 2. Install Apache with SSL/TLS View all available Apache installation and configuration options as shown below. cd httpd-2.2.17 ./configure --help To install an Apache module, you would typically say –enable-{module-name}. For example, to install SSL with Apache, it is –enable-ssl. To install ldap module, it is –enable-ldap. To uninstall any default module that comes with Apache, you would typically say –disable-{modul

How to change mail interface IP address

*********Exim************* Step 1 : Shutdown the exim service. # service exim stop or /etc/init.d/exim stop Step 2 : Edit your exim configuration file. # vi /etc/exim.conf Step 3: go to "remote_smtp" section under "TRANSPORTS CONFIGURATION". By default it would look like below: Quote: remote_smtp: driver = smtp interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch{/etc/mailips}{$value}{}}}{}} helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_ho stname}} Step 4 : Remove or comment line containing "interface" and "helo_data" and add new "interface" to match with that of your new IP address. It should look like as follows: Quote: remote_smtp: driver = smtp interface = # Your IP address. Step 5 : Save your changes and exit out from your exim configuration file. Note : Dont forget to set read