PDA

View Full Version : Starting Apache from boot?




howesey
Dec 4, 2005, 09:29 AM
How can you get Apache to load at boot (even without login would be useful)?

I have to manually start it through 'System Prefs -> Sharing' after login.

I have also installed MySQL, where does it live on the computer? I cannot find it anywhere.



belvdr
Dec 4, 2005, 02:27 PM
If you checked Personal Web Sharing in Sys Prefs, Apache should start automatically, even without login.

You can setup MySQL to autostart by editing /etc/hostconfig and placing this inside, if it doesn't exist:

MYSQLCOM=-YES-

If it does exist and says NO, then change it to YES. You'll need to use sudo to edit /etc/hostconfig.

Also, MySQL lives under /usr/local/mysql.

howesey
Dec 4, 2005, 05:27 PM
How do I view '/etc ' directories?

Finder has hidden them.


Personal Web Sharing on every login disables.

mkrishnan
Dec 4, 2005, 05:41 PM
Personal Web Sharing on every login disables.

Strange... I don't think it should. :( Mine seems to be persistent. Do you have anything in any of the sites folders?

And you can view the folder /etc with terminal. :)

ls -la /private/etc

howesey
Dec 4, 2005, 05:48 PM
File Buddy shows /etc, /usr etc. It has un-hidden them in Finder also.

http://howesey.serveftp.net/

What I have in /Library/WebServer/Documents/

hopejr
Dec 5, 2005, 07:11 AM
you can get to /etc in Finder by going to Go -> Go to folder... and typing in /etc