advertisement

Article:
  Web Apps with Tiger: Getting Started
Subject:   Web Apps with Tiger: Getting Started: Enabling PHP: Checking PHP
Date:   2007-04-07 03:22:22
From:   rupertreid
I have Entropy PHP5.2.1 installed on my iMac OSX 10.4.9.


I followed the tutorial and enable PHP by removing the # in the httpd.conf file, to enable php, using terminal. See extract below.


I tested the file using the apachetl configtest command and terminal returned syntax OK:
isinglive:~ rosariodelaguardia$ apachectl configtest
Processing config directory: /private/etc/httpd/users/*.conf
Processing config file: /private/etc/httpd/users/+entropy-php.conf
Processing config file: /private/etc/httpd/users/rosariodelaguardia.conf
Syntax OK


So far so good! I then tried to restart Apache using the restart command below. This time terminal returned an error. see extract below.


isinglive:~ rosariodelaguardia$ sudo apachectl restart
Password:
/usr/sbin/apachectl restart: httpd not running, trying to start
Processing config directory: /private/etc/httpd/users/*.conf
Processing config file: /private/etc/httpd/users/+entropy-php.conf
Processing config file: /private/etc/httpd/users/rosariodelaguardia.conf
/usr/sbin/apachectl: line 193: 275 Bus error $HTTPD
/usr/sbin/apachectl restart: httpd could not be started
isinglive:~ rosariodelaguardia$


Questions:
1. Can you advise why there is an error at line 193?
2. How can I correct it to make apache serve .php files.
3. Could it be that I am running php 5 and not 4 as shown in the .conf file? I also tried changing the references to php "4" in the .conf file to "5" but this did not work either.
4. is it necessary to remove also the #s at the "if" statement. This is not clear in the tutorial.
5. Your tutorial was written in 2005. Could it be that OSX saince then has affected the processing of the .conf file


I would be grate ful for any help on this.


Krgds Rupert