Posts

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. ...

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 :)

Create a ftp user in windows

1. To get the details of the user in the server and also to add users you can use the command 'lusrmgr.msc' start>> run>> lusrmgr.msc While running this command you will get the list of users in the server. In order to create a new user, right click on 'users' >> 'New user' and to change the properties of the existing user, right click on the required user and select the 'Properties'. 2. Access IIS. This can be done using the command 'inetmgr' start>> run>> inetmgr In IIS select the corresponding domain inside the 'FTP sites' option and create a sub-directory with the name of the ftp user inside that domain. The document root of the domain is set on domain basis and all the users that come under that domain have their document root same. The document root can be set by 'right click on the domain'>> 'Properties' >>'home directory'...

Error: No listening sockets available

Sometimes while restarting/starting apache process, we get the following error: Error:(98)Address already in use: make_sock: could not bind to address [::]:80(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80no listening sockets available, shutting downUnable to open logs Fix:- 1)Kill All nobody process. Use the following script for doing that. for i in `ps auwx | grep -i nobody | awk {'print $2'}`; do kill -9 $i; done or for i in `lsof -i :80 | grep http | awk {' print $2'}`; do kill -9 $i; done 2) Restart apache.

How to block an IP address(es) in Windows

If you ever feel that someone may be trying to break into your server or know an IP address that you want to block from accessing your server there is a built in firewall on all of our 2008 DDS servers. You can use this firewall to block either a range of IP addresses or a single address. 1. Log into your server via RDP. 2. Click on start > administrative tools > windows firewall with advanced security. 3. On the left side of the firewall window click on the inbound rules option. 4. On the right side of the screen click on New Rule. 5. Click on the custom radio button and then click next. 6. Make sure the All programs radio is selected then click next. 7. On the protocol and ports options leave everything at its defaults and click next. 8. On the scope screen you will see two boxes the top one is for local IP addresses and the bottom is for remote IP addresses. In this scenario we are trying to block an outside (remote) IP from accessing anything...

Tunning / Optimizing my.cnf file for MySQL in Linux

While optimizing our mysql server, we should know about the parameters and the value assign to it. I am explaining the parameters and the appropriate value that should assign to it. 1. query_cache_size: In a situation where the database has to repeatedly run the same queries on the same data set, returning the same results each time, MySQL can cache the result set, avoiding the overhead of running through the data over and over and is extremely helpful on busy servers. 2. key_buffer: The value of key_buffer_size is the size of the buffer used with indexes. The larger the buffer, the faster the SQL command will finish and a result will be returned. The rule-of-thumb is to set the key_buffer_size to at least a quarter, but no more than half, of the total amount of memory on the server. Ideally, it will be large enough to contain all the indexes (the total size of all .MYI files on the server). 3. sort_buffer: The sort_buffer is very useful for speeding up myisamchk...