Gwailo
B.A. Economics (Hon)
Hi all,
I've got a big problem. I isntalled PHP4 from entropy.ch on my old iMac's X just fine. For some reason when I completed the installation process on my new iMac, I get the following errors:
localhost:/etc/httpd] gwailo% sudo apachectl graceful
/usr/sbin/apachectl graceful: httpd not running, trying to start
Syntax error on line 858 of /etc/httpd/httpd.conf:
Invalid command '.php', perhaps mis-spelled or defined by a module not included in the server configuration
/usr/sbin/apachectl graceful: httpd could not be started
I correctly entered the ``apxs'' and ``perl'' commands as shown on entropy.
For information, I have determined the problem. The apxs and perl commands don't seem to add the correct commands to httpd.conf. on lines 858/859 instead of ``AddType application/x-httpd-php4 .php'' it merely says ``.php''
Just add those lines to httpd.conf if you experience this problem , after which you will receive this message
ocalhost:/etc/httpd] gwailo% sudo apachectl graceful /usr/sbin/apachectl graceful: httpd not running, trying to start
Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/gwailo.conf
[Sat Apr 6 15:25:20 2002] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
/usr/sbin/apachectl graceful: httpd started
For some reason PHP4 won't work (the phpinfo command for example) but I'm working on that--at least httpd boots now.
I've got a big problem. I isntalled PHP4 from entropy.ch on my old iMac's X just fine. For some reason when I completed the installation process on my new iMac, I get the following errors:
localhost:/etc/httpd] gwailo% sudo apachectl graceful
/usr/sbin/apachectl graceful: httpd not running, trying to start
Syntax error on line 858 of /etc/httpd/httpd.conf:
Invalid command '.php', perhaps mis-spelled or defined by a module not included in the server configuration
/usr/sbin/apachectl graceful: httpd could not be started
I correctly entered the ``apxs'' and ``perl'' commands as shown on entropy.
For information, I have determined the problem. The apxs and perl commands don't seem to add the correct commands to httpd.conf. on lines 858/859 instead of ``AddType application/x-httpd-php4 .php'' it merely says ``.php''
Just add those lines to httpd.conf if you experience this problem , after which you will receive this message

ocalhost:/etc/httpd] gwailo% sudo apachectl graceful /usr/sbin/apachectl graceful: httpd not running, trying to start
Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/gwailo.conf
[Sat Apr 6 15:25:20 2002] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
/usr/sbin/apachectl graceful: httpd started
For some reason PHP4 won't work (the phpinfo command for example) but I'm working on that--at least httpd boots now.