• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Upgrade fail : Qmail error HTTPD_SERVICE

Z

zola2

Guest
I have a problem with Qmail :

telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
+OK Hello there. <[email protected]>
user ******@*******
+OK Password required.
pass ******
Error: HTTPD_SERVICE not defined

System error 11: Resource temporarily unavailable
Connection closed by foreign host.

Can you help me please ?
 
Hello zola2,


I'm on Fedora core 5 and upgraded to 8.2.0
After that there 4 showed up in /etc/psa/psa.conf
you need to add them and your problem should be solved

HTTPD_SERVICE httpd
LIB_SSL_PATH /lib/libssl.so.6
LIB_CRYPTO_PATH /lib/libcrypto.so.6
CLIENT_PHP_BIN /usr/local/psa/bin/php-cli
 
Plesk 8.1.1 to 8.2 upgrade failed on my machine, killing qmail in the process, as well. Stefanb's suggestion got me up and running again. Thanks Stefanb!

Note that the correct values for these four variables are dependant on what system you are running. Libssl and Libcrypto are usually installed with Openssl. Use your package manager to find out where they are installed on your system.

For example, I'm on SUSE 9.3 64-bit and these are the values that worked for me:

Code:
HTTPD_SERVICE httpd
LIB_SSL_PATH /usr/lib64/libssl.so.0
LIB_CRYPTO_PATH /usr/lib64/libcrypto.so.0
CLIENT_PHP_BIN /usr/local/psa/bin/php-cli

Of course you then have to stop and restart Plesk to read the new configuration file:

Code:
# /etc/rc.d/psa stopall
# /etc/rc.d/psa start

This got qmail and my Plesk installation running again, but I'm not yet sure that it's running correctly. I know that the Plesk Updater GUI is now completely goofy--red exlamation points for every revision of Plesk from 7.5.4 on up. If anyone else can contribute some steps to take in the recovery process, that'd be helpful.
 
'Error: HTTPD_SERVICE not defined' fix for RHEL4

We run CentOS release 4.5 (RHEL4 compatible) on our server.
These are the settings that worked for us:

Added to /etc/psa/psa.conf:
Code:
HTTPD_SERVICE httpd
LIB_SSL_PATH /lib/libssl.so.4
LIB_CRYPTO_PATH /lib/libcrypto.so.4
CLIENT_PHP_BIN /usr/local/psa/bin/php-cli
Restarting Plesk:
Code:
#service psa stopall
#service psa start
 
I am using SUSE 10.1 and cannot get Plesk up while using any of this configurations.

I tried:
Code:
HTTPD_SERVICE httpd
LIB_SSL_PATH /lib/libss.so.2
LIB_CRYPTO_PATH /lib/libcrypt.so.1
CLIENT_PHP_BIN /usr/local/psa/bin/php-cli

Code:
HTTPD_SERVICE httpd
LIB_SSL_PATH /usr/lib/libss.so
LIB_CRYPTO_PATH /usr/lib/libcrypt.so
CLIENT_PHP_BIN /usr/local/psa/bin/php-cli

But as soon as I insert one of these lines, Plesk and none of my websites are available. Can anyone help me please?

Code:
# /etc/rc.d/psa start
xinetd  on
Starting INET services. (xinetd)                                     done
named  off
Starting name server BIND                                            done
mysql  off
Starting service MySQL                                               done
qmail  on
Starting qmail:                                                      done
courier-imap  on
Starting Courier-IMAP server:
   Starting imapd                                                    done
   Starting imap-ssl                                                 done
   Starting pop3                                                     done
   Starting pop3-ssl                                                 done

psa-spamassassin  off
Starting psa-spamassassin service:                                   done
/mysql: No such file or directory
apache2  off
/admin/sbin/websrvmng: No such file or directory
/mysql: No such file or directory
/admin/bin/httpsdctl: No such file or directory
Starting Plesk:                                                      failed
drwebd  on
Starting drwebd                                                      done

If I run the following afterwards Plesk and Apache are running again, but after the next restart I have to do the same again.

Code:
/usr/local/psa/admin/bin/httpsd
/etc/init.d/apache2 start

Thanks in advance,
mback2k
 
Humm... to me it looks like you
you are missing the PRODUCT_ROOT_D path in your psa.conf file.

Basically it should be something like that

PRODUCT_ROOT_D /usr/local/psa
 
No, that path is configured at the beginning of the file:

Code:
#
# (c) Copyright 2001-2006 SWsoft, Inc
# All Rights Reserved
#
# This file is used to declare the location of different utilities,
# services, and/or packages within Plesk.  No changes should be made
# to this file without first consulting support. Any changes made can
# affect service availability and performance.
#
# Each line in this file follows the following format:
#
# variable [whitespace characters] value
#
# That is, the name of the field, followed by spaces or tabs, followed
# by field value. Trailing spaces are removed.
#

# 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 /srv/www/vhosts

# Apache configuration files directory
HTTPD_CONF_D /etc/apache2

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

# Apache binary files directory
HTTPD_BIN_D /usr/bin

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

# 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

# Bind
NAMED_RUN_ROOT_D /var/lib/named
NAMED_OPTIONS_CONF /etc/named.conf.include.plesk-options
NAMED_ZONES_CONF /etc/named.conf.include.plesk-zones

# 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 /srv/www/cgi-bin
AWSTATS_TOOLS_D /usr/share/doc/packages/awstats/tools
AWSTATS_DOC_D /usr/share/apache2/icons/awstats

# openssl binary
OPENSSL_BIN /usr/bin/openssl

# mail fix
HTTPD_SERVICE httpd
LIB_SSL_PATH /lib/libss.so.2
LIB_CRYPTO_PATH /lib/libcrypt.so.1
CLIENT_PHP_BIN /usr/local/psa/bin/php-cli

Thanks for the help :)
 
Back
Top