Tuesday, December 11, 2007

Munin not showing graphs

Fix for Munin installed by cPanel/WHM

  1. Determine where is mysqladmin program located with the one of the following command:

    which mysqladmin
    type mysqladmin
    locate mysqladmin

    If should return a path to mysqladmin which looks similar or the same to /usr/bin/mysqladmin.

  2. Edit the /etc/munin/plugin-conf.d/cpanel.conf Munin configuration file, and modify the [mysql*] to look like below:


    [mysql*]
    user root
    group wheel
    env.mysqladmin /usr/bin/mysqladmin
    env.mysqlopts --defaults-extra-file=/root/.my.cnf

    Ensure the env.mysqladmin value is path returned by step above. Also ensure that /root/.my.cnf contains correct root password to the MySQL databases.

  3. Then restart Munin service:

    /etc/init.d/munin-node restart

  4. Wait a while for MySQL statistics to be gathered, and check the graphs again.
Enjoy
Ninad

Tuesday, October 23, 2007

PHPMyadmin Error

#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)

Do a mysql.sock symlink to /tmp

ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock

and restart mysql

Issue should be fixed.

Enjoy
Ninad

Monday, July 2, 2007

Not able to see email accounts ?

Not able to see email accounts from your cpanel ?

Check the permission of /home/user/etc and /home/user/mail

For etc it should be user.mail and for mail it should be user.user

Now you will be able to see all the email accounts.

Enjoy
Ninad S

Tuesday, June 26, 2007

Front Page extensions not working in plesk

Microsoft discontinued FP and Plesk is no longer supporting it.
MS is not allowing any distributing of FP extensions.

FP will not work on new installs of Plesk 8.1 and anything above Fedora Core 3

For more details please have a look at http://forum.swsoft.com/printthread.php?threadid=39097

Enjoy
Ninad S

Wednesday, June 20, 2007

How to Disable DrWeb notification e-mails on Plesk

To Disable DrWeb notification e-mails

“%plesk_dir%\mysql\bin\mysql” -uadmin -padmin_password -P8306 psa

First, make sure that record responsible for antivirus notification exists in table psa.misc. You can check it using this query:

select val from misc where param = ‘AntivirusNotifyAdmin’;

This query should return a value: 0 or 1.

0 - notifications are disabled; 1 - notifications are enabled;

To switch this value you can use these queries:

update misc set val=’0’ where param = ‘AntivirusNotifyAdmin’; - to disable notifications update misc set val=’1’ where param = ‘AntivirusNotifyAdmin’; - to enable notifications

If there was no result returned you need to insert this record into table misc using this query:

insert into misc values (’AntivirusNotifyAdmin’,’0’);

Then you will be able to control notifications sending.

Notice: ‘AntivirusNotifyAdmin’ parameter that controls notifications for Plesk administrator. If it’s necessary to disable/enable notifications for clients you can use the following parameters instead of ‘AntivirusNotifyAdmin’:

‘AntivirusNotifySender’ - for e-mail sender ‘AntivirusNotifyRecipients’ - for e-mail recipient

Enjoy
Ninad S



Tuesday, June 19, 2007

Parse error when viewing web site created by Site Studio

If you receive a parse error when viewing your site in a web browser, this is because your web site coded incorrectly.

Parse errors are displayed when the web server can not read and display your web site code. The common cause of this is that you have copied and pasted code from another program into Site Studio, such as Microsoft Office that is not properly formatted. For example: Microsoft Office does not produce HTML code to industry standards and includes lots of non-standard code.

The solution is to remove the custom code you have inserted into Site Studio and insert plain text only. Once you have made the changes, republish the web site and your site should display correctly.

Enjoy

Ninad S

How to set up additional FTP user and give them limited access to a directory to upload in plesk

You can do this using the following steps :

login to plesk

Click on domain name--click on webusers and add a webuser.

Add this webuser by the name of directory to which you need the webuser to upload since when you add webuser a directory gets created by its name and user can upload to this directory with webuser name and password and only has access to that directory

Enjoy
Ninad S





View My Stats