PHP Not Working in 10.3

rhale1

KU Mac Geek
Has anyone noticed that in 10.3, PHP 4.3.2 no longer works? I installed Apache 2, PHP 4, and MySQL, all latest releases; Apache works, and I guess MySQL does too, but without PHP I can't test it.

It seems strange that Panther would kill web server related software. Anyone have and ideas on this?
 
Apple have a knack of destroying things like MySQL, PHP, Apache installs since OS X has been out. It seems every time there is a 10.x release, one of them gets blasted!

I haven't tried a PHP install on 10.3 yet, I may do so tonight.
 
Oh yeh, and that as well! ;)

However, I wouldn't be at all surprised if something like this happens with the release version, it certainly did with Jaguar. It took me a long time to recover from all the command line changes (especially with dealing with MySQL).
 
I also had this problem, I did get it to work once, but after a reboot, I could never get it started again. Apache just wouldnt start if I had php enabled :(
 
:) Okay...

If you uncommented the LoadModule and AddModule lines in httpd.conf, and it still doesn't work. Install Marc Liyanage's PHP module from http://www.entropy.ch

...follow his on screen instructions. They are for Jaguar, but I've just done it in 10.3, and, lo and behold, it works just fine ;)
 
I finally got PHP working in Jaguar, I was very very happy. Then then it just stopped working! I rebooted and tried activating the modules again but no luck. I wish apple would get it sorted, having Apache is great but it would be nice if PHP worked out of the box so to speak.
 
Installed Marc Liyanage's PHP module and followed the on-screen instructions correctly, but now personal web sharing just gets stuck and refuses to start...
 
Originally posted by BiteTheApple
Installed Marc Liyanage's PHP module and followed the on-screen instructions correctly, but now personal web sharing just gets stuck and refuses to start...

Ah yes... This is a problem I've come across as well. I've found a solution for it (it involves the CLI, but if you got PHP working in the first place, you probably already are OK with it. Oh, and enter everything after the rhale1%, the stuff before it is to orient yourself, so you know its the CLI prompt).

Open Terminal.app and enter this line:
Code:
[localhost:~] rhale1% cd /etc/httpd
This next line is needed the FIRST time you enter this. After that skip this step.
Code:
[localhost:/etc/httpd] rhale1% sudo cp httpd.conf httpd.conf.new
Enter your Administrator password when prompted. This executes the command with superuser privileges.
Code:
[localhost:/etc/httpd] rhale1% sudo cp httpd.conf.default httpd.conf
[localhost:/etc/httpd] rhale1% sudo apachectl restart
[localhost:/etc/httpd] rhale1% sudo cp httpd.conf.new httpd.conf
[localhost:/etc/httpd] rhale1% sudo apachectl restart
This worked for me, until next reboot. Then I had to do it all over again. If you have some knowledge of StartupItems, then you can make one that will do this automatically when you do reboot. Hope this can help at least someone.
 
Back
Top