Apache won't start (was: Re: Help needed...suddenly nothing works)

Ali A Samii samii at me.com
Wed Jul 28 08:25:55 PDT 2010


I ran a "ps auxw | rep port" and that gave me the following line (amongst many others)

root        63   0.0  0.0  2446752   1024   ??  Ss    3:25PM   0:00.03 /opt/local/bin/daemondo --label=apache2 --start-cmd /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper start ; --stop-cmd /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper stop ; --restart-cmd /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper restart ; --pid=none


On 28 Jul, 2010, at 17:14 , William H. Magill wrote:

> 
> On Jul 28, 2010, at 10:16 AM, Ryan Schmidt wrote:
> 
>> On Jul 28, 2010, at 09:11, Ali A Samii wrote:
>> 
>>> I really need some help as I am in a deadline crunch and all of a sudden, my apache2, mysql php macports install stopped working.
>>> 
>>> When I try to access http://localhost/ it can't find the server.
>>> 
>>> I made no edits to my configuration.
>>> 
>>> I tried everything, including a fresh complete reinstall MacPorts, and still nothing works...localhost can't be found.
>>> 
>>> I ran the disk utility off my snow leopard DVD to verify disk and permissions and everything is OK.
>>> 
>>> If anyone can help me, I'd be happy to allow you to connect remotely to my computer via something like ichat screen sharing and get this fixed.
> 
> 
> Is Apache not running or is a networking issue?
> you say "it can't find the server" -- this implies a networking failure.
> 
> "ps auxw | grep httpd" will show you if any servers are listening.... 
> note if you see:
> 		/usr/sbin/httpd -D FOREGROUND
> instead of:
> 		/opt/local/apache2/bin/httpd -k start
> Then Apple's version of apache is running.
> 
> If you see either, it implies that you have some kind of local networking issue.
> The fact that you did a complete re-install implies its a networking issue.
> 	Try 127.0.0.1 instead of the name "localhost."
> 
> What happens if you try to telnet to "localhost" -- you should (probably) get a connection refused error.
> 
> 
> T.T.F.N.
> William H. Magill
> # Flat-panel iMac (2.1) [800MHz - Super Drive - 768 Meg] OS X 10.4.11 
> # iMac6,1 Core 2 Duo [2.16GHz - 3 GB 667] OS X 10.6.4
> # MacBook Pro4.1 Core 2 Duo [2.5GHz - 4GB 667] OS X 10.6.4
> # Mac mini Core Duo [1.66 Ghz - 2 GB 667]OS X 10.6.4
> # PWS433a [Alpha 21164 Rev 7.2 (EV56)- 64 Meg] Tru64 5.1a 
> # XP1000 [Alpha 21264-3 (EV6) - 256 meg] FreeBSD 5.3
> # XP1000 [Alpha 21264-A (EV6-7) - 256 meg] FreeBSD 5.3
> magill at mcgillsociety.org
> magill at mac.com
> whmagill at gmail.com
> 
> 
> 
> 
> 
> 
> 
> 



More information about the macports-users mailing list