0

I'm trying to restart Apache through Plesk. When I click "Restart", i'm getting the following message.

Error: Unable to make action: Unable to manage service by apache_control_adapter: Service /etc/init.d/httpd failed to start ('--start', 'web')

I also tried(thanks to paulsm4 from stackoverflow to do it through the terminal. I typed

sudo /etc/init.d/httpd start

and the error i got is:

Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs [FAILED]

Thank you in advance!

manosim
  • 113
  • 1
  • 6

1 Answers1

1

httpd seems to be still running in a bad state...

try:

# kill -9 $(pidof httpd)
# /etc/init.d/httpd start

You should also verify that logs exists and have good permissions.

maxxvw
  • 321
  • 1
  • 7
  • Got a blank line on "". And on the second line I got "Starting httpd: [ OK ]". can you where can i verify that logs exist? – manosim Apr 13 '13 at 20:48
  • if the output of `service httpd status` is *running*, that's ok. I don't use RH or derivated, but debian, so i think (i can be wrong) that logs are in /var/log/httpd/{access,error}.log – maxxvw Apr 13 '13 at 20:55
  • When i edit/access the php.ini file and the log files as you said, I see that they are empty. – manosim Apr 13 '13 at 20:58
  • Also when i login to the server and type "ls", I get "install.log install.log.syslog kmod-microsoft-hyper-v-rhel63.3.4-1.20120727.i686.rpm kmod-microsoft-hyper-v-rhel63.3.4-1.20120727.x86_64.rpm microsoft-hyper-v-debuginfo-rhel63.3.4-1.20120727.i686.rpm .... microsoft-hyper-v-rhel63.3.4-1.20120727.src.rpm microsoft-hyper-v-rhel63.3.4-1.20120727.x86_64.rpm parallels plesk10-install.log plesk-installer.log ZendGuardLoader-php-5.3-linux-glibc23-x86_64 ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz" So I guess something's wrong there. – manosim Apr 13 '13 at 21:00
  • ls command list your actual working directory. That means your user directory contains a lot of redhat packages(rpm), that's not clean but this is not a problem. Logs can be anywhere, depending on your plesk config. Is the webapp ok now? – maxxvw Apr 13 '13 at 21:05
  • Apache is still down. I'm kinda lost! Don't know what to do. – manosim Apr 13 '13 at 21:12
  • what is the output of `pgrep -l -u apache` and `pidof httpd` – maxxvw Apr 13 '13 at 21:22
  • Both return nothing. Just going to the next line. – manosim Apr 13 '13 at 21:27
  • ok and `sudo fuser 80/tcp` – maxxvw Apr 13 '13 at 21:32
  • It returns "80/tcp: 7168" – manosim Apr 13 '13 at 21:33
  • ok now `ps 7168` – maxxvw Apr 13 '13 at 21:35
  • PID TTY STAT TIME COMMAND (I guess it's empty) – manosim Apr 13 '13 at 21:36
  • wow... can you type `sudo fuser 80/tcp` again – maxxvw Apr 13 '13 at 21:38
  • Sure. Still getting nothing. Just skips to the next line. – manosim Apr 13 '13 at 21:39
  • so try to start `service httpd start` – maxxvw Apr 13 '13 at 21:40
  • Still the same message: "Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs [FAILED]" – manosim Apr 13 '13 at 21:41