Apache won't start (was: Hi, I need some help)
Ali A Samii
samii at me.com
Wed Jul 28 09:13:51 PDT 2010
OK, prior to the total reinstall I did, apache was running, as was mysql
when I do a ps auxw | grep
and query for httpd - no process running now
and query for mysql - no process running now
It appears that nothing is running.
I just issued "sudo touch /opt/local/apache2/conf/httpd.conf" command
I followed it by "sudo /opt/local/apache2/bin/apachectl start"
I didn't get an error message nor any feedback whatsoever.
However, I decided to try to get to localhost, and for some reason, something changed because I got there.
So, I issued a " ps auxw | grep httpd": and it seems I now have 11 httpd start processes!
_www 1510 0.0 0.0 2451584 1548 ?? S 6:07PM 0:00.00 /opt/local/apache2/bin/httpd -k start
_www 1509 0.0 0.0 2451584 1564 ?? S 6:07PM 0:00.00 /opt/local/apache2/bin/httpd -k start
_www 1508 0.0 0.0 2451584 1544 ?? S 6:07PM 0:00.00 /opt/local/apache2/bin/httpd -k start
_www 1507 0.0 0.1 2451584 1636 ?? S 6:07PM 0:00.01 /opt/local/apache2/bin/httpd -k start
root 1506 0.0 0.2 2451584 5316 ?? Ss 6:07PM 0:00.09 /opt/local/apache2/bin/httpd -k start
ali 1550 0.0 0.0 2425568 204 s000 U+ 6:09PM 0:00.00 grep httpd
_www 1521 0.0 0.0 2451584 620 ?? S 6:07PM 0:00.00 /opt/local/apache2/bin/httpd -k start
_www 1520 0.0 0.0 2451584 620 ?? S 6:07PM 0:00.00 /opt/local/apache2/bin/httpd -k start
_www 1519 0.0 0.0 2451584 620 ?? S 6:07PM 0:00.00 /opt/local/apache2/bin/httpd -k start
_www 1518 0.0 0.0 2451584 620 ?? S 6:07PM 0:00.00 /opt/local/apache2/bin/httpd -k start
_www 1517 0.0 0.0 2451584 620 ?? S 6:07PM 0:00.00 /opt/local/apache2/bin/httpd -k start
_www 1516 0.0 0.0 2451584 620 ?? S 6:07PM 0:00.00 /opt/local/apache2/bin/httpd -k start
But still no mysql.
On 28 Jul, 2010, at 17:43 , Ryan Schmidt wrote:
> Don't forget to Reply All so your reply goes back to the list, not just to me.
>
>
> On Jul 28, 2010, at 09:50, Ali A Samii wrote:
>
>> I actually didn't reply to an unrelated message to start a new topic. I put "macports-users at lists.macosforge.org" address in the to field, wrote the subject line "Help needed...suddenly nothing works" and put the rest of the message in the body of the email.
>
> Strange... the headers of your message include "In-reply-to: <4C502C86.1090308 at macports.org>"; that's this message:
>
> http://lists.macosforge.org/pipermail/macports-users/2010-July/021201.html
>
> and your message appeared in that thread in my mail reader.
>
>
>> Regarding initially emailing you directly rather than the macports user group, that is because my previous 2 or 3 times when I needed assistance and I sent emails to the group, I got not one email back from anyone (except for you). I finally found my solution by reading about 7 or 8 months of the archived mailing list threads.
>
> I do spend a lot of time reading the list so often I'm the first to get to a particular inquiry. Other times perhaps nobody else knows the answer.
>
>
>> Re the apache2 logs, I checked them out. Apache is running...no problem. And it is listening on port 80. But when I point my browser to localhost or localhost:80, the browser fails to find the server.
>>
>> Eventually I did a full uninstall and reinstall of macports, and now, apache isn't running, and mysql says that it is already running so it exits
>>
>> Unfortunately, and unwisely, I didn't keep a copy of the apache2 logs before I did the full uninstall and reinstall of macports and the ports that I want to run.
>>
>> So, I don't know what to do now.
>
> ...ok. So now, Apache isn't running. And presumably if you try to start it, it doesn't? Anything in the Apache log about this now?
>
> And MySQL says it's already running. Is it? (Check with "ps" or Activity Monitor.) If so, stop it, by killing it or whatever method is usual for MySQL. Then try starting it again. Does it? If it doesn't, the MySQL log might have more interesting information for you as well.
>
>
>
More information about the macports-users
mailing list