Folks, I have installed Apache2, PHP5 & MySQL5 on my G4 TiBook (1 GHz, .5GB, OSX 10.4) after a fresh install of Tiger. However, it does not serve up the PHP files correctly. HTML works fine on the local machine. Personal Web Sharing is on and the firewall is off (I'm behind another firewall). When I check for active installations of the critical systems with the port command it looks like this: ************************ Mac-The-Knife:~/Sites Captain$ port installed mysql5 apache2 php5 The following ports are currently installed: mysql5 @5.0.51_0 (active) apache2 @2.2.8_0 (active) php5 @5.2.5_1+apache2+macosx+mysql5 (active) Mac-The-Knife:~/Sites Captain$ ************************ But if I set Firefox to point to a local file (in my Sites directory) containing the following test code: ************************ <html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?> </body> </html> ************************ the result is that Firefox opens new blank windows at a rate of 2/second until such time as I get them all closed, or until the last x (10-15) of them are closed. I have counted as high as 50 windows before I started closing them, so I know it went well over that. Can anyone tell me what I missed about turning PHP serving on for this machine? In A Chord, Tom Condon Bass, Agate Passage Quartet Bass & Proud Member, Kitsap Chordsmen Dir. Music Education, Evergreen District, BHS
On 2008-02-16 , at 13:47 , Thomas Condon wrote:
I have installed Apache2, PHP5 & MySQL5 on my G4 TiBook (1 GHz, .5GB, OSX 10.4) after a fresh install of Tiger. However, it does not serve up the PHP files correctly. HTML works fine on the local machine. Personal Web Sharing is on and the firewall is off (I'm behind another firewall). When I check for active installations of the critical systems with the port command it looks like this:
Personal Web Sharing on means that Apache 1 is running on port 80, at least the system will attempt to start Apache using configuration from /etc/httpd Did you adjust your configuration files (/opt/local/apache2/conf) to include PHP? What I have done (now on 10.5) is make sure Web Sharing is off (so the Mac won't start the installed apache2 modified /etc/apache2/conf/httpd.conf to make the standard port be 8080 (just in case it does start) modified /opt/local/apache2/conf/httpd.conf to include Apple specific things for resource forks and case-insensitve .htaccess AND modified /opt/local/apache2/conf/extra/httpd-userdir.conf to include /private/etc/apache2/users/*.conf You may want to include /etc/httpd/users/*.conf to bring over the Apple-created configurations for the users. My 10.4 system isn't available anymore, so I can't check what Tiger looked like. 8) ---------------------------------- Chris Janton - face at CentosPrime dot COM Netminder for Opus1.COM
participants (2)
-
Chris Janton
-
Thomas Condon