PDA

View Full Version : After install zend optimizer cant start apache2


elenh
02-12-2010, 11:10 AM
Hello yesterday i installed via putty the zend optimizer (latest) for the needs of one custom addon.

The last last think do after the installation was to restart apache2.
i use debian server vhost and if i give in putty this command i get this message:
WPGX001:~# /etc/init.d/apache2 start
Starting web server (apache2)...(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!
WPGX001:~#

After opening the httpd.conf file i find that is emtpy and zero size
Please help my site is since yesterday off.

Marco van Herwaarden
02-12-2010, 11:52 AM
You can not start the webserver if it is already running, you will need to stop it first.

Easiest is with the following command:

service httpd restart

elenh
02-12-2010, 11:56 AM
i try your tip but works not:
WPGX001:~# service httpd restart
-bash: service: command not found
WPGX001:~#

Anyway i have try to restart apache but i still get failed message like my first post.

Marco van Herwaarden
02-12-2010, 12:14 PM
If that command doesn't work, then you will first need to issue a stop command, followed by a start.

elenh
02-12-2010, 12:23 PM
Because i m very noob at linux commands can you please make it more clearly? Thank you.

--------------- Added 1265984654 at 1265984654 ---------------

i give this and nothing still happend:
WPGX001:~# /etc/init.d/apache2 stop
Stopping web server (apache2)...httpd (no pid file) not running
.
WPGX001:~# /etc/init.d/apache2 start
Starting web server (apache2)...(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!
WPGX001:~#

--------------- Added 1265985252 at 1265985252 ---------------

The httpd.conf is empty and zero in size on ftp is not the problem?

Marco van Herwaarden
02-12-2010, 12:54 PM
Try rebooting or if that fails ask assistence from your host.

elenh
02-12-2010, 01:14 PM
Thanks is worked!