Error 1 Couldn't start apache [SOLVED]

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Error 1 Couldn't start apache [SOLVED]

Postby litel54 » 14. November 2011 00:05

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
litel54
 
Posts: 3
Joined: 13. November 2011 23:59
Operating System: ubuntu

Re: Error 1 Couldn't start apache!

Postby Sharley » 14. November 2011 00:39

Any clues in the Apache error.log file?



.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Error 1 Couldn't start apache!

Postby JonB » 14. November 2011 02:24

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)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Error 1 Couldn't start apache!

Postby litel54 » 14. November 2011 08:57

Oooh sorry.....im am using the correct path: etc/extra/httpd-vhosts.conf
where can i find the error log?.. :-)
litel54
 
Posts: 3
Joined: 13. November 2011 23:59
Operating System: ubuntu

Re: Error 1 Couldn't start apache!

Postby JonB » 14. November 2011 11:23

where can i find the error log


/opt/lampp/logs :shock:

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Error 1 Couldn't start apache!

Postby litel54 » 14. November 2011 17:35

Aaaah that helped me out :)
The error was caused by ServerAlias tag in httpd-vhost.conf

Thanks guys!!!!!!!!
litel54
 
Posts: 3
Joined: 13. November 2011 23:59
Operating System: ubuntu

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

Postby Sharley » 14. November 2011 23:05

Thanks for the feedback. 8)

Best wishes. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 21 guests