Posts

Showing posts from February, 2012

12 tweakings for WHM/cPanel to speed up WordPress

   1. Turning Mailman off – WHM >> Server Configuration >>  Tweak Settings and turning it off    2. Number of minutes between mail server queue runs (default is 60) – Setting it 120    3. Default catch-all/default address behavior for new accounts” to fail    4. Boxtrapper Spam Trap and SpamAssassin Spam Box delivery – off    5. Analog Stats – off    6. Conserve Memory at the expense of using more cpu/diskio – turn on    7. WHM >> Service Configuration >> FTP Server Configuration – Check ‘no’ to ‘allow anonymous logins and ‘no’ to ‘anonymous uploads’    8. WHM >> cPanel >> Manage Plugins – install spamdconf – then go to ‘Setup Spamd Startup Configuration’ – select option 2 ‘Maximum Children” to 2′    9. Run your cron jobs at off peak hours.   10. Install e Accelerator PHP accelerator (Recompile Apache with eAccelerator)   11. Compiling Apache with mod_deflate Gzip Module   12. Running Apache with the thread-based “Worker” MPM

How to install Imagemagick in Debian OS

Imagemagick is one of the best library to work with image. Lets see how to install imagemagick in Debian OS: $ apt-get install imagemagick It downloads the package and all it’s dependences from debian/ubuntu repository, and installed. now i have to install the support of php (as our product running on php) $ apt-get install php5-imagick Then I restarted the apache server to take effect this new package installation. if you are using php4 then the package name should be php4-imagick $ /etc/init.d/apache2 restart that’s all. If you need imagemagick for your ruby , you can install the librmagick-ruby package.

How to enable the ping command in your windows server

Generally ICMP and Ping is useful for quickly checking if machines are up/down. The firewall of Windows 2008 closes ICMP replies by default. You can enable the ping command with following steps: 1) Go to Start 2) Open a command prompt 3) Type in the following: netsh firewall set icmpsetting 8 enable Test it out, the server should be pingable now! To disable it again, you give in this command: netsh firewall set icmpsetting 8 disable OR, You can enable ping in windows server 2008 by the following method also: Go to Start >> Administrative Tools >> Windows Firewall with Advanced Security >> Scroll down to "File And Print Sharing (Echo Request - ICMPv4-IN)" (or v6 if you are using ipv6) >> Enable this rule. Done :)

RVskin theme of the cPanel is not integrated with the Fantastico

Sometimes, RVskin theme of the cPanel is not integrated with the Fantastico module in the server. Due to which Fantastico link is disappear in the cPanel with RVskin theme. The common reason of this issue is because of missing symbolic link error. Fix: SSH to the server as root. Run the following command: ~~~~~~~~ ln -s /usr/local/cpanel/3rdparty/fantastico  /usr/local/cpanel/base/frontend/x/fantastico ~~~~~~~~ This will fix the issue. Verify it through the following steps: WHM >> Plugins >> RVSkin Manager >> Integration >> Fantastico Integration If it will show the following line, the issue is fixed. ~~ Fantastico is now automatically integrated into rvskin if it is installed. ~~

Plugins/Themes update is not checked in Wordpress

WordPress only checks for updates every 12 hours (This goes for Core, Plugins and Themes - All of which are separate checks). So whilst Blog A might check at 1am/1pm, Blog B might check at 11am/11pm, So if an update is released at say, 10am, Blog B will find it first (at 11, Whilst Blog A has to wait an extra 2 hours). The random times are completely random, If yours checked a minute before the update was released, Then you've got to wait near 12 hours. Explanation: Scenario is explained above. Now we shall dig a bit in WordPress infrastructure and shall try to know what is happening behind the scene. There is a table called “wp_options” in your WordPress database where you can find five fields named as “option_id, blog_id, option_name, option_value, autoload”. Now use the search option on phpMyAdmin to find out _transient_update_core or update_core under “option_name” field. Now same way you can find _transient_update_plugins or update_plugins and then _transient_update_th

How to add suPHP_ConfigPath in fast-cgi PHP module

Setting a custom php.ini for FastCGI PHP handler will need a few settings to be done in the server. In these servers, the Server API will be listed as CGI/FastCGI. Check: http://domain.com/phpinfo.php Below are the steps to enable custom php.ini for FastCGI PHP handler: 1. Open .htaccess file of the user and add the below codes: AddHandler php5-fastcgi .php Action php5-fastcgi /cgi-bin/php5.fcgi 2. Move php.ini file to the cgi-bin folder of the account cp /usr/local/lib/php.ini /home/user/public_html/cgi-bin/ chmod 755 /home/user/public_html/cgi-bin/php.ini 3. cd /home/user/public_html/cgi-bin/ vi php5.fcgi (insert the below codes and save) #!/bin/sh export PHP_FCGI_CHILDREN=1 export PHP_FCGI_MAX_REQUESTS=10 exec /usr/local/cpanel/cgi-sys/php5 Save and quit the file 4. chmod 755 /home/user/public_html/cgi-bin/php5.fcgi Done :)