buy tb-500

Archive for the ‘Linux’ Category

enable backup function in cpanel , not WHM

Monday, May 2nd, 2011

You can re-enable the backup features in the cPanel interface by logging into WHM and modifying your default feature list at Main >> Packages >> Feature Manager. If you have any questions regarding this, please let me know.

disable suexec in shell

Friday, April 29th, 2011

You need to rename:

/usr/local/apache/bin/suexec

to:

/usr/local/apache/bin/suexec.disable

then stop and restart apache:

httpd stop
httpd start

service httpd start no listening sockets available, shutting down Unable to open logs

Friday, April 1st, 2011

the issue because httpd.conf is empty

in order to fix the issue, you need to rebuild httpd.conf, please run the below command

root@kodiak [~]# /scripts/rebuildhttpdconf

then after that try to start apache, then will be working fine

Thank you

There are no databases associated with your account.

Thursday, March 24th, 2011

the solution is below

1- check if you have enough my sql database is assigned for you , you can see that in your cpanel left hand

2- check your desk space, spicly TMP folder, if full then try to clear it by

cd /tmp

rm -Rf *

then the issue will be fix.

Thank you.

The server was not able to find the document (./horde/index.php) you requested. Please check the url and try again. You might also want to report this error to your webhost.

Thursday, March 17th, 2011

Hi,

You can resolve by running this command ..
login as root
run this command
/usr/local/cpanel/bin/update-horde

That will fix the issue.

redirect SMTP port (linux) Postfix mail

Monday, March 14th, 2011
iptables -t nat -A PREROUTING -d 10.1.1.1 -p tcp --dport 26 -j REDIRECT --to-ports 25

just you need to change the ip to the server ip, i have tried it my self and working fine,

References

http://www.5dollarwhitebox.org/wiki/index.php/Howtos_Basic_IPTables#Port_Redirects

plesk “Unable to connect to database: saved admin password is incorrect”

Friday, March 4th, 2011

if you got the above error, then you need to follow the below steps

1. Start by logging in to your server via ssh as root user.

2. Stop MySQL server. In RedHat systems this is done usually like this

/etc/init.d/mysqld stop

3. Open up your MySQL configuration file. Usually this file is called my.cnf and is in /etc directory.

4. Add this line into the [mysqld] section:

skip_grant_tables=1

5. Start MySQL server.

/etc/init.d/mysqld start

6. Login to MySQL as admin user

mysql -u admin

7. Run this query :

update mysql.user set password=password(‘current_password’) where user=’admin’

Where current_password is the string from this file /etc/psa/.psa.shadow

8. Exit the MySQL console.
9. Stop MySQL sever.
10. Remove the line from /etc/my.cnf
11. Start MySQL.

Now the problem should be solved.

Reference

http://www.onlinehowto.net/Tutorials/Plesk-Control-Panel/Saved-admin-password-is-incorrect/593

User ‘xxxxxx’ is over quota. cpanel

Thursday, February 17th, 2011

solution is below

remove all the users from inside this /var/cpanel/overquota

Reference

http://forums.cpanel.net/f5/login-webmail-internal-server-error-user-over-quota-141325-p2.html

Error: Connection to the database server has failed: Table ‘mysql.servers’ doesn’t exist

Tuesday, February 15th, 2011

The solution is below

linux/plesk

# mysql_fix_privilege_tables --user=admin --password=`cat /etc/psa/.psa.shadow` --verbose

This should definitely fix the problem.

linux/cpanel

# mysql_fix_privilege_tables --user=root --password=<mysql password here> --verbose

References
http://linuxhostingsupport.net/blog/problem-adding-a-database-user-in-plesk-or-restarting-mysql-table-mysql-servers-doesnt-exist


ftp plesk

Friday, February 4th, 2011

How to enable FTP on Plesk
To enable FTP on plesk you will have to shell into the server. Once in your server you will have to run these commands.

To turn on FTP run:
chkconfig ftp_psa on

Turnning off the ftp service would be the first trouble shooting setup if the ftp service was running but not working.

To turn off FTP run:
chkconfig ftp_psa off

The FTP files for Plesk is located on the xinetd service. So make sure you have the xinetd is also turned on.

To check the status of xinetd run:
service xinetd status

To start if stop run:
service xinted start

And if you need to stop run:
service xinted stop

References

http://www.openkb.org/plesk-disable-ftp/

Thank you.