Archive for December, 2008



No space left on device: Couldn’t create accept lock – cPanel Apache server

Sunday, December 21st, 2008

On a cPanel dedicated server, apache server failed to start. So, while checking the apache logs found this:

==> /usr/local/apache/logs/error_log <==

[Sat Dec 20 01:12:27 2008]
[notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)

[Sat Dec 20 01:12:27 2008]
[warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

[Sat Dec 20 01:12:27 2008]
[emerg] (28)No space left on device: Couldn't create accept lock

Solution:

First of all make sure your server is not out of space. This can be checked with the command:

root# df –h

Now, to check how many semaphores are currently in use the command is:

root# ipcs -s

When the apache (httpd) is stopped, to kill the semaphores ID the command is:

root# ipcrm –s <sem-id>

To kill all the semaphores ID , you can achieve this by doing it in a for loop, the command is:

root# for semid in `ipcs -s | grep nobody | cut -f2 -d" "`; do ipcrm -s $semid; done

Note: “nobody” is apache user.

Now start apache with the command:

root# service httpd restart

This has fixed the issue for us.

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


Plesk paths on a linux dedicated server

Tuesday, December 9th, 2008

Within the psa.conf all the Plesk paths are declared, you can see this below. This file is used to declare the location of different utilities, services, and/or packages within Plesk

# Plesk tree
PRODUCT_ROOT_D /usr/local/psa

# Directory of SysV-like Plesk initscripts
PRODUCT_RC_D /etc/init.d

# Directory for config files
PRODUCT_ETC_D /usr/local/psa/etc

# Virtual hosts directory
HTTPD_VHOSTS_D /var/www/vhosts

# Apache configuration files directory
HTTPD_CONF_D /etc/httpd/conf

# Apache include files directory
HTTPD_INCLUDE_D /etc/httpd/conf.d

# Apache binary files directory
HTTPD_BIN_D /usr/bin

#Apache log files directory
HTTPD_LOG_D /var/log/httpd

#apache startup script
HTTPD_SERVICE httpd

# Qmail directory
QMAIL_ROOT_D /var/qmail

# Location of qmail maildirs
QMAIL_MAILNAMES_D /var/qmail/mailnames

# Path to rblsmtpd
RBLSMTPD /usr/sbin/rblsmtpd

# Courier-IMAP
COURIER_IMAP_ROOT_D /

# Proftpd
FTPD_CONF /etc/proftpd.conf
FTPD_CONF_INC /etc/proftpd.include
FTPD_BIN_D /usr/bin
FTPD_VAR_D /var/run/proftpd
FTPD_SCOREBOARD /var/run/proftpd/scoreboard

# Bind
NAMED_RUN_ROOT_D /var/named/run-root

# Webalizer
WEB_STAT /usr/bin/webalizer

# Logrotate
LOGROTATE /usr/local/psa/logrotate/sbin/logrotate

# MySQL
MYSQL_VAR_D /var/lib/mysql
MYSQL_BIN_D /usr/bin

# PostgreSQL
PGSQL_DATA_D /var/lib/pgsql/data
PGSQL_BIN_D /usr/bin

# Backups directory
DUMP_D /var/lib/psa/dumps

# Mailman directories
MAILMAN_ROOT_D /usr/lib/mailman
MAILMAN_VAR_D /var/lib/mailman

# Python binary
PYTHON_BIN /usr/bin/python2.4

# Tomcat root directory
CATALINA_HOME /usr/share/tomcat5

# DrWeb
DRWEB_ROOT_D /opt/drweb
DRWEB_ETC_D  /etc/drweb

# GnuPG binary
GPG_BIN /usr/bin/gpg

# Tar binary
TAR_BIN /bin/tar

# Curl certificates
CURL_CA_BUNDLE_FILE /usr/share/curl/curl-ca-bundle.crt

# AWStats
AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /var/www/cgi-bin/awstats
AWSTATS_TOOLS_D /usr/share/awstats
AWSTATS_DOC_D /var/www/html/awstats

# openssl binary
OPENSSL_BIN /usr/bin/openssl

LIB_SSL_PATH /lib/libssl.so
LIB_CRYPTO_PATH /lib/libcrypto.so

CLIENT_PHP_BIN /usr/local/psa/bin/php-cli

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


Repair and rebuild Qmail configuration files on plesk

Sunday, December 7th, 2008

If for some reasons you’re having problems with the mail issues related to qmail server, you can repair and rebuild the qmail configuration files on your linux plesk dedicated server and at the same time restore settings for all the mailboxes which are present on your server.

To get this done, plesk have an utility named mchk and you can use it as below:

Restore all settings except for SpamAssassin configuration

root# /usr/local/psa/admin/bin/mchk --without-spam

Restore all settings

root# /usr/local/psa/admin/bin/mchk --with-spam

Restore only SpamAssassin settings

root# /usr/local/psa/admin/bin/mchk --spam-only

That’s it!

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


Upgrade Plesk from 7.0 to 7.5.6+ on windows dedicated server

Sunday, December 7th, 2008

Now, if you’re looking to upgrade your plesk version 7.0 to 7.5.6+ do the following: First of all you will have to download setup file from here . Once this is downloaded, you can start with the installation process.

During the installation plesk will ask whether to do a clean installation or keep the existing hosting accounts – here we proceeded with keeping the existing clients and hosting accounts – during the process it asks for a key which you can ignore and get it later from your server provider. Just follow with the installation steps and once this is installed the system will ask for reboot twice. Once, all this process is done – you can login to your plesk and add the key which you will get from your server provider.

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


Backup and Restore accounts from plesk 7.0 to 8.x ( Windows )

Saturday, December 6th, 2008

If you have a windows dedicated server which has plesk 7.0 version on it and you need to migrate it to a newer server which has the latest plesk version 8.6 , normally you will try to backup the hosting accounts with Plesk Migration Manager or the Plesk backup utility.

The unfortunate part is that it will not work on plesk 7.0 , to get this done you will have to upgrade windows plesk from 7.0 to 8.6 . For this you will have to go step wise, so you will have to first upgrade to version 7.5.6+ and then proceed to upgrade to 8.6. During the upgrade plesk will ask for key which you will have to opt from your server provider. Once this is upgraded, you can add the key and can login to your upgraded plesk version. Later your can start with the backup and restore process.

Did this help you? Please leave a comment for us to bring more information to this industry.

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


Windows plesk error: get_config_string failed

Wednesday, December 3rd, 2008

On a windows dedicated server with plesk control panel , while configuring I have come across an error which is as below:

get_config_string failed: PRODUCT_DATA_D: Unexpected end of data when read C-string from serializer

To get this fixed, I followed the below steps:

cd Program Files\SWsoft\Plesk\admin\bin
websrvmng --reconfigure-all

That’s it!

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.