Category: Linux

Recursive chmod

Recursive chmod within folder: For suphp you should have 644 permissions to all file and 755 permission for directories.If not then you can modify it with below commands –——————————————–find . -type f -exec chmod...

Find command

Recursive chmod only files within this folder: find . -type f -exec chmod 0644 {} ; Recursive chmod only folders within this folder: find . -type d -exec chmod 0755 {} ; into a...

Zero database size

When we login to any clients cpanel , it is not showing actual database size , instead it is showing zero. With phpmyadmin we can see correct size but as you login to capnel...

DomainKeys and SPF

If you want to add DomainKeys and SPF for every new account created on Cpanel, then do the following. ———————————————————– Add DomainKeys for single user /usr/local/cpanel/bin/domain_keys_installer username ———————————————————– Add DomainKeys for all CPanel users....

Mailbox quota shown wrong on cPanel

On your cPanel dedicated server, for an email the mailbox quota is displayed wrong ,Go through the following steps: Login to your server as rootcd /home/username/mail/domain.com/emailaccountrm -rf maildirsize Now, login to cPanelGo to email...

Apache Optimization

Apache Optimization 1. Make a back up of your httpd.conf with following commandcp /user/local/apache/conf/httpd.conf /user/local/apache/conf/httpd.conf-backup 2. vi /user/local/apache/conf/httpd.conf 3. Make the following changes : ( you’d find these near the start ) Timeout 250KeepAlive...

Mysql optimization

=========================================[mysqld]set-variable = max_connections=500safe-show-databaselocal-infile=0===========================================[mysqld]max_connections = 500key_buffer = 32Mmyisam_sort_buffer_size = 32Mjoin_buffer_size = 1Mread_buffer_size = 1Msort_buffer_size = 2Mtable_cache = 4000thread_cache_size = 286interactive_timeout = 25wait_timeout = 7000connect_timeout = 10max_allowed_packet = 16Mmax_connect_errors = 10query_cache_limit = 4Mquery_cache_size = 12Mquery_cache_type =...

Alternative PHP Cache [APC]

How to install Alternative PHP Cache [APC] on a Linux VPS/Dedicated server !APC is a free, open, and robust framework for caching and optimizing PHP intermediate code. Here are the most simple steps :...

Install XCache

XCache is a fast, stable PHP opcode cacher that has been tested and is now running on production servers under high load. It is tested (on linux) and supported on all of the latest...

Optimization WordPress Plugins & Solutions by W3 EDGE