Page 1 of 1

Error 1 Couldn't start apache [SOLVED]

PostPosted: 14. November 2011 00:05
by litel54
So i was trying to setup virtualhosting but when i remove the # in front of include/etc/extra/httpd-vhosts.conf in /etc/httpd.conf i can't start apache....
As response when i try start apache i get:

Erro 1 Couldn't start apache!
Starting diagnose...
Sorry, I've no idea what's going wrong.


Some one have a solution for this? :S

Re: Error 1 Couldn't start apache!

PostPosted: 14. November 2011 00:39
by Sharley
Any clues in the Apache error.log file?



.

Re: Error 1 Couldn't start apache!

PostPosted: 14. November 2011 02:24
by JonB
include /etc/extra/httpd-vhosts.conf


Ummm - wrong path

if you start the path with a slash - it means start from the root. You are pointing to the /etc folder that belongs to your Linux distributions installation, not LAMPP.

use either
absolute path
Code: Select all
Include /opt/lampp/etc/extra/httpd-vhosts.conf


or
relative path
Code: Select all
Include etc/extra/httpd-vhosts.conf

(no slash)

Good Luck
8)

Re: Error 1 Couldn't start apache!

PostPosted: 14. November 2011 08:57
by litel54
Oooh sorry.....im am using the correct path: etc/extra/httpd-vhosts.conf
where can i find the error log?.. :-)

Re: Error 1 Couldn't start apache!

PostPosted: 14. November 2011 11:23
by JonB
where can i find the error log


/opt/lampp/logs :shock:

8)

Re: Error 1 Couldn't start apache!

PostPosted: 14. November 2011 17:35
by litel54
Aaaah that helped me out :)
The error was caused by ServerAlias tag in httpd-vhost.conf

Thanks guys!!!!!!!!

Re: Error 1 Couldn't start apache [SOLVED]

PostPosted: 14. November 2011 23:05
by Sharley
Thanks for the feedback. 8)

Best wishes. :)