Published on : September 24, 2009 by George K.
To password protect a directory htaccess password protect rules can be added in the directory AuthUserFile /path/to/.htpasswd AuthName “This is Hasten secret area” AuthType Basic require valid-user To create .htpasswd file use the following command htpasswd -c .htpasswd <user> You will be prompted for password . Once it is done, the file will be created. […]
Published on : September 17, 2009 by George K.
To access Webalizer for addon domain without loging in to the Cpanel can be done by following the steps 1. Login to the server using SSH 2. Then change directory to the Document Root of the addon domain cd /home/username/public_html/AddondomainFolder 3. In the desired folder create a symbolic link ln -s /home/username/tmp/webalizer/addondomain.maindomain.com webstats 4. Change […]
Published on : August 13, 2009 by Arnold Pablo
Sometimes our clients have come across the issue that their website was causing 500 Internal Server error while loading the PHP pages. On investigating further we had found that the error log was saying the error below /usr/bin/php: error while loading shared libraries: libpthread.so.0: failed to map segment from shared object: Cannot allocate memory Our […]
Published on : July 29, 2009 by Sharafuddin M.A
To redirect domain to a subfolder you can create a new .htaccess file in the document root of the domain. Then Edit .htaccess file and include the following entries: RewriteEngine On Options +FollowSymlinks RewriteBase / RewriteCond %{HTTP_HOST} www.domainname [OR] RewriteCond %{HTTP_HOST} domainname RewriteCond %{REQUEST_URI} !subfolder/ RewriteRule ^(.*)$ subfolder/$1 [L]
Published on : July 20, 2009 by George K.
Inorder to have win32 styled Apache directory indexing , you need to make sure that mod_autoindex module is installed and active in the server. In cPanel 11 servers, it will have the modules enabled in, /usr/local/apache/conf/extra/httpd-autoindex.conf So for the client who want to have the fancy directory indexing to be enabled, just add the below […]