Ano-Tech Computers
Enter keyword:

Apache mod_perl based config uses mysql, fails during boot
Problem:
When using dynamically created httpd.conf configurations generated by mod_perl from SQL tables, Apache may be unable to start during boot after upgrading mysql, or it starts but the dynamic stuff doesn't work. Mysql appears to be working fine, and Apache works fine when started manually.
 
Solution:
By default, httpd will start before mysql. This means the SQL is unavailable at the time Apache tries to start.

Check the startup sequence, and if necessary rename "/etc/rc.d/rc3.d/S##mysql" so that mysql starts before httpd.

(## is a two-digit number, the scripts will be executed in numerical order upon changing to runlevel 3, i.e. during boot)

 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles