error Apache start `config_log_module'

started at 04 Dec 2008 by bob
  • bob
    04 Dec 2008

    Hi,

    httpd-2.2.10
    Mac OS X 10.4.11

    1)make && sudo make install (no errors)

    2)sudo /usr/local/apache2/bin/apachectl start

    httpd: Syntax error on line 207 of /etc/httpd/httpd.conf: Cannot load /usr/libexec/httpd/mod_log_config.so into server: Symbol not found: _ap_month_snames\n Referenced from: /usr/libexec/httpd/mod_log_config.so\n Expected in: flat namespace\n

    3)sudo cp /docs/conf/httpd.conf /etc/httpd/
    (from httpd-2.2.10)

    4)sudo /usr/local/apache2/bin/apachectl start
    httpd: Syntax error on line 29 of /etc/httpd/httpd.conf: ServerRoot must be a valid directory

    I´ve read similar comments on:
    Compiling Apache on Tiger: http://diymacserver.com/installing-apache/compiling-apache/

    I need some help.

    Thank you

  • Richard
    04 Dec 2008

    Hi Bob,

    The problem is that the module that generates the error is no longer used in this version of apache. The httpd.conf therefore is out of date. The simplest method is to comment out the line which includes this module but thee might be more.

    The copy you performed copied the wrong httpd.conf as it is not configured to your settings. Remove your httpd.conf by renaming it and run a "sudo make install" to create a correct httpd.conf.

  • bob
    05 Dec 2008

    Hi,

    "apachectl start" now works properly
    Thank you.
    I`ve installed and compiled Apache, php and MySQL following your instructions.
    All is working fine.

    But I can´t start Apache2 on boot. I can enter “sudo /Library/StartupItems/Apache2/Apache2 start” in terminal after startup with no problem, and the web server starts.

    Any clue?

  • Richard
    05 Dec 2008

    It could be that you are starting two separate apache's

    To start the DIYMacserver apache you need to use /usr/local/apache2/bin/apachectl start

    If you use apachectl start, because of the PATH settings you are starting the default apple installed apache.

    Please check which one is referred in /Library/StartupItems/Apache2/Apache2

Reply

You must log in to post.