buy tb500

Archive for May, 2012

directory or directires size /var or /home /etc

Wednesday, May 30th, 2012

check the directory size

go the the direcotry that you want to check

then run this command
du > /root/anyname

after that

cat /root/anyname |sort -nr |more

will view the size from the biger to the smaller

Cleaning large eximstats mysql database : Cpanel/WHM – Mysql

Wednesday, May 30th, 2012

If you are using cpanel/WHM you can go to /var/lib/mysql and use “du -sch *” command to find the mysql disk usage of each database accounts.

If the size of your eximstats database is getting large, you will have to do this.

Login as root in to your server using ssh.

Login to mysql

#use eximstats

Then from with the query browser run

>delete from sends;
>delete from smtp;
>delete from failures;
>delete from defers;

Now use df to check the free disk space.

Unable to create directory wp-content/uploads/xxxx/xx. Is its parent directory writable by the server?

Tuesday, May 29th, 2012

the solutions is below

Log into your WordPress Admin account.
Go to ‘Miscellaneous’ Settings options from the ‘Settings’ menu.
In the Miscellaneous Settings put wp-content/uploads in the “Store uploads in this folder” text box.
Save the Changes by hitting the “Save Changes” button and you are done.

Thank you.

Install Softaculous in cpanel Server

Tuesday, May 22nd, 2012

first you need to make sure that ionCube already installed, you just run this command to verify if
installed php -v

if ionCube installed then you need to follow the below commands
cd /usr/local/cpanel/whostmgr/docroot/cgi
wget -N
chmod 755 addon_softaculous.php

Now go to : WHM > Plugins (Add-Ons on older versions than 11) > Softaculous – Instant Installs

then few seconds and will see the installation already done successfully

Thank you

prestashop Warning, your hosting provider limits the maximum number of fields to post in a form:

Sunday, May 6th, 2012

if you got suhosin issue, to increase the value , ,, the solutions is below = 4000
max_input_vars = 4000
suhosin.request.max_vars = 4000
post_max_size = 8M

then restart httpd

How to change mail server ip address in PLESK

Thursday, May 3rd, 2012

How to change mail server ip address in PLESK ?

Ans :

If primary mail server ip address is blocked in any spam checker sites ( eg BARRACUDA,SORBS-SPAM etc) then there is only one solution, that is change the mail server ip address on the server.

You can easily change the mail server ip address in cpanel by using /etc/mailips file. The same as in PLESK you can also change the outgoing mail server ip address by using “/var/qmail/control/smtproutes” file.
1) first check the domain name which is hosted on the server by using following file

cat /var/qmail/control/rcpthosts

2) By default the “/var/qmail/control/smtproutes” file is not present on PLESK server, you need to create it.

vi /var/qmail/control/smtproutes

3) Then add the new ip address in the following format.

4) Save the file and restart qmail

/etc/init.d/qmail restart

Note: Please replace the “” to original ip address and the “” equal the original domain name

Can not add addon domain ” the domain is already pointed to an IP address that does not appear to use DNS servers associated with this server. Please transfer the domain to this servers nameservers or have your administrator add one of its nameservers to”

Thursday, May 3rd, 2012

Simply change both of these options below to “On”, and then click the “Save” button in Tweak Settings area.

Allow Remote Domains [?]
Allow unregistered domains [?]