DIYMacServer » PHP

2 posts

Apache not starting with compiled PHP

started at 20 May 2008
started by crackmigg
last reply from richard
  • crackmigg
    20 May 2008
    #

    I followed the instructions to compile PHP 5.2.6 under leopard, while keeping the installed Apache 2.2.8 from Leopard intact. I compiled PHP5 with the last line changed to /usr/sbin/apxs (original Leopard layout), and everything worked without errors.

    When I start Apache it starts without error message, but when opening 127.0.0.1 in my browser it "Failed to connect"... the Apache Server is not responding. The when I deactivate the php5_module line in the httpd.conf, everything (except PHP5) works, and the server responds as expected, but with the module it stops working. The line in the httpd.conf is:

    LoadModule php5_module libexec/apache2/libphp5.so

    When trying command-line php it says it is version 5.2.5 (the preinstalled version), not 5.2.6. So where did my compiled PHP go? How do I get it to work with Apache? Any ideas?

  • 31 May 2008
    #

    Sorry for the late response but what is the error that is been logged in the Apache error log ? In your case that should be in /var/log/apache2.

Reply

You must log in to post.