Starting Apache: could not be started.

Bugs and fixes announcements. Please post real bugs and fixes here. Ask in the help forums if unsure.

Moderators: FlorianB, Pascal, bourgeois, mentor

kmv
Posts: 42
Joined: Mon Sep 07, 2015 9:06 am
How did you hear about Mailcleaner: googling

Starting Apache: could not be started.

Postby kmv » Tue Dec 12, 2017 10:58 am

root@myhost:/opt/exim4/bin# /usr/mailcleaner/etc/init.d/apache start
Starting Apache: could not be started.
root@myhost:/opt/exim4/bin#


root@myhost:/opt/exim4/bin# /etc/init.d/mailcleaner restart
Stopping mailcleaner:
Stopping Apache: httpd (no pid file) not running
Stopping Exim stage 1: stopped.
Stopping Exim stage 2: stopped.
Stopping Exim stage 4: stopped.
Stopping MailScanner: stopped.
Stopping Newsld daemon: stopped.
Stopping SpamAssassin daemon: stopped.
Stopping ClamAV daemon: stopped.
Stopping ClamSpam daemon: stopped.
Stopping DCC client daemon: stopped.
Stopping SNMP daemon: stopped.
Stopping greylisting daemon: stopped.
Stopping Statistics daemon: stopped.
Stopping Preferences daemon: stopped.
Stopping firewall: stopped.
Stopping slave DB: Wait for mysqld to exit
stopped.
stopped.
Stopping master DB: Wait for mysqld to exit
.
.
stopped.
stopped.
Starting mailcleaner:
Starting master DB: started.
Starting slave DB: started.
Starting firewall: started..
Resyncing DB... done.
Starting SNMP daemon: started.
Starting Statistics daemon: started.
Starting Preferences daemon: started.
Starting Preferences daemon: (already running) started.
Starting DCC client daemon: started.
Starting ClamAV daemon: started.
Starting ClamSpam daemon: started.
Starting SpamAssassin daemon: started.
Starting Newsld daemon: started.
Starting MailScanner: started.
Starting Exim stage 4: started.
Starting Exim stage 2: started.
Starting Exim stage 1: started.
Starting greylisting daemon: started.
Starting Apache: could not be started.
root@myhost:/opt/exim4/bin#

root@myhost:/opt/exim4/bin# grep Fatal /var/log/messages
Dec 12 00:01:44 myhost httpd: PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] No such file or directory' in /usr/mailcleaner/www/framework/Zend/Db/Adapter/Pdo/Abstract.php:129#012Stack trace:#012#0 /usr/mailcleaner/www/framework/Zend/Db/Adapter/Pdo/Abstract.php(129): PDO->__construct('mysql:host=loca...', 'mailcleaner', 'uwaoghei', Array)#012#1 /usr/mailcleaner/www/framework/Zend/Db/Adapter/Pdo/Mysql.php(109): Zend_Db_Adapter_Pdo_Abstract->_connect()#012#2 /usr/mailcleaner/www/framework/Zend/Db/Adapter/Abstract.php(459): Zend_Db_Adapter_Pdo_Mysql->_connect()#012#3 /usr/mailcleaner/www/framework/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('DESCRIBE `admin...', Array)#012#4 /usr/mailcleaner/www/framework/Zend/Db/Adapter/Pdo/Mysql.php(169): Zend_Db_Adapter_Pdo_Abstract->query('DESCRIBE `admin...')#012#5 /usr/mailcleaner/www/framework/Zend/Db/Table/Abstract.php(834): Zend_Db_Adapter_Pdo_Mysql->describeTable('administrator', NULL)#012#6 /usr/mailcleaner/www/framework/Zend/Db/Table/Abstract.php(856): Zend_Db_Table_Abst in /usr/mailcleaner/www/framework/Zend/Db/Adapter/Pdo/Abstract.php on line 144
root@myhost:/opt/exim4/bin#



Any ideas? :shock:
kmv
Posts: 42
Joined: Mon Sep 07, 2015 9:06 am
How did you hear about Mailcleaner: googling

Re: Starting Apache: could not be started.

Postby kmv » Wed Dec 13, 2017 10:46 am

Sorry :D Problem resolve.

The host does not resolve it's own hostname.


root@myhost:/var/mailcleaner/log# grep myhost /var/mailcleaner/log/apache/error.log
[Wed Dec 13 09:54:59.937712 2017] [unique_id:alert] [pid 6105] (EAI 2)Name or service not known: AH01564: unable to find IPv4 address of "myhost"
AH00016: Configuration Failed
root@myhost:/var/mailcleaner/log#

Added an entry to the /etc/hosts.

Return to “Bugs and fixes”

Who is online

Users browsing this forum: No registered users and 3 guests