• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

how to start a second instance of apache

wonderflu

Junior Member
I posted in the Apple forum about configuring a second instance of apache, and got that working. Basically, I'm using a mac as an HTPC, and it serves a list of all the movies/etc on it as a website, and clicking a link uses some php to play the file in VLC. That copy of apache has to be running as the locally logged in user. I'm also running an instance to serve websites on port 80 to the actual internets.

I've been starting the HTPC instance using sudo apachectl -f path_to_config_file, but I don't know how to make that run when the local user is logged in. Can someone help me out?

BTW this is on a mac running leopard.

Thanks a lot!
 
This is not tested:
Create a shell script to run the httpd. Edit sudo (visudo) to not require a password for the apachectl command, or have apache use a non-priv port. chmod the script to be executable.
Open System Preferences, select Accounts under System. Select the account you want to attach this to, and select Login Items at the top. Click the +, navigate to the shell script. Log out, log in, see if it worked.
 
Back
Top