Uncategorized

How to download the files forcefully using .htaccess

How to download the files forcefully using .htaccess without displaying it in browser   Create .htacceses file under your accout and insert the below code. AddType application/octet-stream .avi AddType application/octet-stream .mpg save and quit the file.  

Installation, PHP

How to install APC for php in linux server

How to install APC for php in linux server pecl install php   You can use the below steps to install it manually. wget http://pecl.php.net/get/APC tar -zxf APC-3.1.9.tgz cd APC-3.1.9 whereis php-config ./configure –enable-apc –enable-apc-mmap –with-apxs–with-php-config=/usr/bin/php-config make make install restart the apche /etc/init.d/httpd restart     If you are getting below error message : /root/tmp/pear/APC/apc.c:454: …

PHP, Uncategorized

How to enable php.ini for all the folders under one account

 How to enable php.ini for all the folders under one account Copy the php.ini file in the public_html folder of the user using below command.cp /usr/local/apache/php.ini . Then create .htaccess file and insert the below command: SetEnv PHPRC /home/username/public_html Note: In place of username you have to use the clients or your username.  

CPanel / WHM, Uncategorized

404 error code for all third party applications

404 error code for all third party applications Copy and paste the code in .htaccess file   For main domain only <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>   Below one for the subdomain   <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /subdirectory/ RewriteRule ^index\.php$ – [L] …

Uncategorized

Frame Forwarding

To redirect the page without changing web address. You can use the below code: Create the index page and insert the below code: <html> <body> <FRAMESET ROWS=”*,0″ FRAMEBORDER=0 BORDER=0 FRAMESPACING=0> <FRAME SRC=”http://www.domain.com.ie/” NORESIZE> </FRAMESET> </body> </html> [notice]Change your domain.com to your actual domain name. [/notice]  

CPanel / WHM

Logs files and Path on Linux server

Logs files and Path on Linux server   General message and system related stuff * /var/log/message Authentication logs /var/log/auth.log Kernel logs /var/log/kern.log Crond logs (cron job) /var/log/cron.log Mail server logs /var/log/maillog Qmail log directory (more files inside this directory) /var/log/qmail/ Apache access and error logs directory  /var/log/httpd/ Lighttpd access and error logs directory  /var/log/lighttpd System …