1 (edited by louis 2011-03-18 16:11:46)

Topic: installation complete,but httpd service can't start

I have just installed iRedmail on RHEL 5.2 (32bit) with ldap backend. But failed to start the httpd service. See the detailed information in the attachment. Warnings are extracted as below:

PHP Warning:  PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pdo_mysql.so' - /usr/lib/php/modules/pdo_mysql.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
Invalid command 'WSGISocketPrefix', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]

Any help will be appreciated.

2

Re: installation complete,but httpd service can't start

louis wrote:

Invalid command 'WSGISocketPrefix', perhaps misspelled or defined by a module not included in the server configuration

Please edit /etc/httpd/conf.d/wsgi.conf, uncomment the last line (Remove '#'):

LoadModule xxx

This is caused by new version of package mod_wsgi, it doesn't enable this module by default.
Already fixed in iRedMail -trunk version. Thanks for your feedback. smile

3

Re: installation complete,but httpd service can't start

hi ZhangHuangbin,
   Thank you . I checked my system, but found no wsgi.conf in /etc/httpd/conf.d . While mod_wsgi does be installed. Then I remove mod_wsgi and reinstall it again, I find the file wsgi.conf there. The apache server can be started sucessfully .
   But there are still malfunction in webmail and iredadmin.The https://url/mail shows DATABASE ERROR: CONNECTION FAILED!  and https://url/iredadmin returns error page. Looking into the apache error_log , there are info like below:
  PHP Warning:  PHP Startup: fileinfo: Unable to initialize module\nModule compiled with module API=20050922, debug=0, thread-safety=0\nPHP    compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0
   What's wrong with my installation process?

4

Re: installation complete,but httpd service can't start

Can you set "debug = True" in /var/www/iredadmin/settings.ini, then access https://url/iredadmin/ to check error log?

5

Re: installation complete,but httpd service can't start

The result shows in the attachement. Pls refer to it.

Post's attachments

_mysql_exceptions_OperationalError at -.mht 47.32 kb, 3 downloads since 2011-03-15 

You don't have the permssions to download the attachments of this post.

6

Re: installation complete,but httpd service can't start

It says 'Access denied for user iredadmin@localhost', could you please check mysql related settings in iRedAdmin config file 'settings.ini'?

7

Re: installation complete,but httpd service can't start

It's strange that I didn't change anything in DB, so what caused the access deny?  Maybe this server has experienced iredmail installation times and the prior uninstallation is incomplete.

I freshly installed server OS, then install iRedmail and succeeded. The only flaw is the warning info in error log of apache:
PHP Warning:  PHP Startup: fileinfo: Unable to initialize module\nModule compiled with module API=20050922, debug=0, thread-safety=0\nPHP    compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0.

Does it affect the functions? Though I have not yet found out any malfunction.

Thanks to ZhangHuangbin.