Rajmd
asked on
Apache does not start
hi,
iam getting this error when i start apache
Failed to start service :
* Starting web server apache2
apache2: Syntax error on line 281 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/sites-enabled /000-defau lt: No such file or directory
...fail!
pls help.
iam getting this error when i start apache
Failed to start service :
* Starting web server apache2
apache2: Syntax error on line 281 of /etc/apache2/apache2.conf:
...fail!
pls help.
The error message gives you the trick.
In /etc/apache2/sites-enabled should be a link to the file 000-default.
If it's not there, you can create it:
sudo ln -s /etc/apache2/sites-availab le/default /etc/apache2/sites-enabled /000-defau lt
Then restart apache2
In /etc/apache2/sites-enabled
If it's not there, you can create it:
sudo ln -s /etc/apache2/sites-availab
Then restart apache2
ASKER
hi,
there is no default in sites-available, but there is default-ssl, i created symlink with it
like sudo ln -s /etc/apache2/sites-availab le/default -ssl /etc/apache2/sites-enabled /000-defau lt
and then did
# a2ensite default
it gives this error
sudo a2ensite default
ERROR: /etc/apache2/sites-enabled /000-defau lt is a dangling symlink!
ERROR: Site default does not exist!
there is no default in sites-available, but there is default-ssl, i created symlink with it
like sudo ln -s /etc/apache2/sites-availab
and then did
# a2ensite default
it gives this error
sudo a2ensite default
ERROR: /etc/apache2/sites-enabled
ERROR: Site default does not exist!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No!
That is the default page for ssl (https)!
Delete that link.
That is the default page for ssl (https)!
Delete that link.
ASKER
hi,
are you sure, should i reinstall it pls?
Thanks.
are you sure, should i reinstall it pls?
Thanks.
You can at least try it. It will destroy nothing, as it doesn't overwrite existing config files by default, but it will create missing ones.
And you should delete the link you created before trying to reinstall.
And you should delete the link you created before trying to reinstall.
ASKER
hi,
i did the reinstallation and i get this pls, when i start apache
Failed to start service : Apache does not appear to be running :
* Starting web server apache2
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
...done.
i did the reinstallation and i get this pls, when i start apache
Failed to start service : Apache does not appear to be running :
* Starting web server apache2
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
...done.
ASKER
Any help on this pls pls
Failed to start service : Apache does not appear to be running :
* Starting web server apache2
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
...done.
Failed to start service : Apache does not appear to be running :
* Starting web server apache2
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
...done.
Do you have other config files in your /etc/apache2/sites-availab le?
It looks as if you copied a configuration file from some other website which doesn't match your system configuration.
It looks as if you copied a configuration file from some other website which doesn't match your system configuration.
ASKER
yes pls, i had which i copied from another location, now i deleted it
it gives me this error
Failed to start service : Apache does not appear to be running :
* Starting web server apache2
[Mon Jul 13 20:08:34 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
...done.
it gives me this error
Failed to start service : Apache does not appear to be running :
* Starting web server apache2
[Mon Jul 13 20:08:34 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
...done.
This error only shows that it couldn't REstart apache, because it was not previously running, but it DID start now.
It should be all right now!
It should be all right now!
ASKER
any help with this pls
NameVirtualHost *:80 has no VirtualHosts, apache does not start
NameVirtualHost *:80 has no VirtualHosts, apache does not start
This is NOT an error, it is a warning! Apache DOES start, according to your log posted above.
If it does, do the following:
# a2ensite default
Enabling site default.
Run '/etc/init.d/apache2 reload' to activate new configuration!
# /etc/init.d/apache2 reload