1

while doing pset7 first phpMyAdmin wasn't working, so I searched online and ran a few commands on the terminal and now even apache is not working and shows the following error:

Starting web server apache2
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:8080
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:8080
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.

on running apache50 status it shows apache is not running. What should be done??

1 Answer 1

0

Try sudo killall -9 apache2.

Also, the port could be locked up by server.c. One way to find out which process to kill:

ps awux | grep apache

Also, when the error message says The Apache error log may have more information, that means you should look in /home/ubuntu/lib/apache2/log/error.log for details.

Since the log file is always being written to, the best way to do this is:

tail -f /home/ubuntu/lib/apache2/log/error.log

Finally, now that you have Apache2 running as you should, your next step is to read the definitive guide to permissions on the CS50 Reddit.

Hope this helps!

4
  • thanks for your help but when I restarted apache after a day it started again. Now the problem is its showing a 403 forbidden error although I m quite sure I have configured all permissions correctly and I've checked them multiple times. The message goes like this: "You don't have permission to access / on this server. Apache/2.4.7 (Ubuntu) Server at ide50-sharmapranjal.cs50.io Port 443 Commented Oct 31, 2016 at 7:02
  • Still having permission problems? Did you read the Definitive Guide? Commented Oct 31, 2016 at 21:30
  • The errors went away but now instead of cs50 finance and phpMyAdmin I m getting some weird php code. what to do now ??@matt Commented Nov 1, 2016 at 12:01
  • Mark this question as answered, and open a new question with details explaining exactly what you are seeing. Commented Nov 1, 2016 at 14:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .