Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Apache won't start in Mac OS X Mountain Lion



Threaded Mode | Print  

 Apache won't start in Mac OS X Mountain Lion, Wrong user permission on the httpd file? (2 Replies, Read 13861 times)
gabrieleromanato
Group: Member
Post Group: Newbie
Posts: 1
Status:
I've just updated AMPPS to the latest version but Apache won't start. Typing the debug command in the Terminal:

/Applications/AMPPS/apache/bin/httpd

produces the following output:

[warn] NameVirtualHost 127.0.0.1:443 has no VirtualHosts
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

but if I type the same command with sudo:

[warn] NameVirtualHost 127.0.0.1:443 has no VirtualHosts

How can I fix this? Thanks in advance. :-)
IP: --   

Apache won't start in Mac OS X Mountain Lion
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Hi,

You need admin privileges to start Apache. So "sudo" is must. Even when we start Apache from AMPPS Application, we ask for admin password.

This is because we need admin privileges to start apache on port 80/443.

Quote
[warn] NameVirtualHost 127.0.0.1:443 has no VirtualHosts

To remove this warn, add the following line in httpd.conf
Code
NameVirtualHost 127.0.0.1:80
NameVirtualHost 127.0.0.1:443


-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack
IP: --   

Apache won't start in Mac OS X Mountain Lion
cielojr
Group: Member
Post Group: Newbie
Posts: 1
Status:
I have the same problem with you, this solve the problem.

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 1, 2024, 4:18 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.025