943,929 Members | Top Members by Rank

Ad:
  • Mac OS X Discussion Thread
  • Unsolved
  • Views: 9325
  • Mac OS X RSS
Sep 24th, 2007
0

Installing Apache2, PHP5 and MySQL5 on Mac OS X Tiger

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ritgrad83 is offline Offline
14 posts
since Feb 2007
Sep 24th, 2007
0

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

Do you have a startup script in your StartupItems?
http://switch.richard5.net/isp-in-a-...e-on-mac-os-x/
Quote ...
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.
Team Colleague
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
John A is offline Offline
5,055 posts
since Apr 2006
Sep 25th, 2007
0

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

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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ritgrad83 is offline Offline
14 posts
since Feb 2007
Sep 25th, 2007
0

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

Click to Expand / Collapse  Quote originally posted by ritgrad83 ...
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.
Team Colleague
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
John A is offline Offline
5,055 posts
since Apr 2006
Sep 25th, 2007
0

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

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!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ritgrad83 is offline Offline
14 posts
since Feb 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Mac OS X Forum Timeline: Shockwave player..HELP!
Next Thread in Mac OS X Forum Timeline: Cd Problem On Mac 10.3.9





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC