Installing Apache2, PHP5 and MySQL5 on Mac OS X Tiger

Reply

Join Date: Feb 2007
Posts: 14
Reputation: ritgrad83 is an unknown quantity at this point 
Solved Threads: 0
ritgrad83 ritgrad83 is offline Offline
Newbie Poster

Installing Apache2, PHP5 and MySQL5 on Mac OS X Tiger

 
0
  #1
Sep 24th, 2007
I was able to install Apache2, PHP5 and MySQL5 on my MacBook running Tiger and using root to start the Apache server manually. However - I am not able to get it to start automatically on reboot. I even added a line in etc/hostconfig:

APACHE2=-YES-

Having done the above - I still have to manually reboot the Apache server using the apachectl start command. Are there any other configurations I may have overlooked?

Thanks!

Richard
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: Installing Apache2, PHP5 and MySQL5 on Mac OS X Tiger

 
0
  #2
Sep 24th, 2007
Do you have a startup script in your StartupItems?
http://switch.richard5.net/isp-in-a-...e-on-mac-os-x/
Starting at boot
Off course you would want to start Apache2 at boot time and not have to manually start everything up after a reboot. To do this you need to download the ApacheStartupItems.tar archive and extract as root into ‘/Library/StartupItems’. You then need to add the following line to ‘/etc/hostconfig’ to enable the startup script
  APACHE2=-YES-
If you change the YES into a NO, Apache2 won’t start after a reboot.
"Technological progress is like an axe in the hands of a pathological criminal."

All my posts may be freely redistributed under the terms of the MIT license.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 14
Reputation: ritgrad83 is an unknown quantity at this point 
Solved Threads: 0
ritgrad83 ritgrad83 is offline Offline
Newbie Poster

Re: Installing Apache2, PHP5 and MySQL5 on Mac OS X Tiger

 
0
  #3
Sep 25th, 2007
Originally Posted by joeprogrammer View Post
Do you have a startup script in your StartupItems?
http://switch.richard5.net/isp-in-a-...e-on-mac-os-x/
As a matter fact - I do - I downloaded the startup script from the very same site you just mentioned. I installed it in Library/Apache2 as per instructions.

Is there something in there I need to look at?
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: Installing Apache2, PHP5 and MySQL5 on Mac OS X Tiger

 
0
  #4
Sep 25th, 2007
Originally Posted by ritgrad83 View Post
I installed it in Library/Apache2 as per instructions.
No, that was only the binaries and such. The instructions said to extract the ApacheStartupItems.tar archive (basically copy the entire Apache2 directory) into /Library/StartupItems/. If you don't put that directory into StartupItems, the script ain't gonna start.

Also make sure that Personal Web Sharing is disabled in the Sharing section of the System Preferences, and that the line in /etc/hostconfig regarding WEBSERVER= is set to -NO-.
Last edited by John A; Sep 25th, 2007 at 12:28 am.
"Technological progress is like an axe in the hands of a pathological criminal."

All my posts may be freely redistributed under the terms of the MIT license.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 14
Reputation: ritgrad83 is an unknown quantity at this point 
Solved Threads: 0
ritgrad83 ritgrad83 is offline Offline
Newbie Poster

Re: Installing Apache2, PHP5 and MySQL5 on Mac OS X Tiger

 
0
  #5
Sep 25th, 2007
Originally Posted by joeprogrammer View Post
No, that was only the binaries and such. The instructions said to extract the ApacheStartupItems.tar archive (basically copy the entire Apache2 directory) into /Library/StartupItems/. If you don't put that directory into StartupItems, the script ain't gonna start.

Also make sure that Personal Web Sharing is disabled in the Sharing section of the System Preferences, and that the line in /etc/hostconfig regarding WEBSERVER= is set to -NO-.
That last line did it - I had WEBSERVER set to -YES-. So I changed it - rebooted and voila - it served the index page! Thanks!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC