Article ID: 8450, created on Apr 15, 2010, last review on May 9, 2014

  • Applies to:
  • Operations Automation

Symptoms


Apache 2.2 cannot start if it is installed on host with Domain Parking service, the error is as follows:
# /etc/init.d/pemhttpd restart
killproc_by_pid_file(): could not get pid from
Syntax error on line 6 of /usr/local/pem/etc/apache/welcome_pages.conf:
RewriteMap: dbm type db is invalid
It complains about the following lines in the file /usr/local/pem/etc/apache/welcome_pages.conf:
REWRITEMAP mapwp dbm=db:/usr/local/pem/sysvhosts/domain_parking/map.wp-redirects
REWRITEMAP mapwpr dbm=db:/usr/local/pem/sysvhosts/domain_parking/map.302-wp-redirects

Cause


Apache 2.2 was built without libdb support, the following command will show nothing in this case:
# ldd /usr/sbin/httpd|grep libdb
<empty output>


Resolution


Workaround - replace the lines in the file /usr/local/pem/etc/apache/welcome_pages.conf:
REWRITEMAP mapwp dbm=db:/usr/local/pem/sysvhosts/domain_parking/map.wp-redirects
REWRITEMAP mapwpr dbm=db:/usr/local/pem/sysvhosts/domain_parking/map.302-wp-redirects
to
REWRITEMAP mapwp txt:/usr/local/pem/sysvhosts/domain_parking/map.wp-redirects.txt
REWRITEMAP mapwpr txt:/usr/local/pem/sysvhosts/domain_parking/map.302-wp-redirects.txt

and restart service pemhttpd:
# service pemhttpd restart
 

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF