LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-18-2011, 08:16 AM   #1
ahmed_as8
Member
 
Registered: Nov 2008
Location: Egypt
Distribution: Ubuntu, SuSE
Posts: 101

Rep: Reputation: 16
Apache Server problem


Hi all
I am running my apache server on Ubuntu 10.10, its works well, I added a virtual host to it but the problem is after I add this virtual host & adds an index.html for example to the mydomain.com the server fails to reload here is what happens:


/etc/init.d/apache2 restart
apache2: Syntax error on line 230 of /etc/apache2/apache2.conf: Syntax error on line 4 of /etc/apache2/sites-enabled/theprophetofmercy.org/index.html: Expected </p>The> but saw </body></html>
Action 'configtest' failed.
The Apache error log may have more information.
...fail!

this index.html is a copy of the defualt index.html in the www folder its working in the www but when I copy it to /var/www/mydomain.com I get this error

anybody knows whats wrong in here
Thanks
 
Old 01-18-2011, 08:21 AM   #2
t3ch
LQ Newbie
 
Registered: Jun 2005
Location: Denmark
Distribution: Debian 5
Posts: 23

Rep: Reputation: 2
Can you please paste the code for your vhost (/etc/apache2/sites-enabled/theprophetofmercy.org)?
 
Old 01-18-2011, 08:27 AM   #3
ahmed_as8
Member
 
Registered: Nov 2008
Location: Egypt
Distribution: Ubuntu, SuSE
Posts: 101

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by t3ch View Post
Can you please paste the code for your vhost (/etc/apache2/sites-enabled/theprophetofmercy.org)?
<VirtualHost *:80>
ServerName theporphetofmercy.org
ServerAlias www.theprophetofmercy.org
ServerAdmin myemail@gmail.org
DocumentRoot /var/www/theprophetofmercy.org
</VirtualHost>



Thanks
 
Old 01-18-2011, 08:33 AM   #4
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Have you created the symlink for theprophetofmercy.org? For example:

Code:
sudo ln -s /etc/apache2/sidtes-available/theprophetofmercy.org /etc/apache2/sites-enabled/theprophetofmercy.org
Regards,

Fordeck
 
Old 01-18-2011, 08:42 AM   #5
ahmed_as8
Member
 
Registered: Nov 2008
Location: Egypt
Distribution: Ubuntu, SuSE
Posts: 101

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by fordeck View Post
Have you created the symlink for theprophetofmercy.org? For example:

Code:
sudo ln -s /etc/apache2/sidtes-available/theprophetofmercy.org /etc/apache2/sites-enabled/theprophetofmercy.org
Regards,

Fordeck
Yes I did it before & did it now again but same problem !! so confusing
 
Old 01-18-2011, 08:44 AM   #6
ahmed_as8
Member
 
Registered: Nov 2008
Location: Egypt
Distribution: Ubuntu, SuSE
Posts: 101

Original Poster
Rep: Reputation: 16
also line 230 in apache.conf is normal no problem in it !!
 
Old 01-18-2011, 09:22 AM   #7
geovg
Member
 
Registered: Mar 2010
Posts: 40

Rep: Reputation: 1
can you please check the apache error log for any error messages while running configtest?
 
Old 01-20-2011, 05:44 AM   #8
ahmed_as8
Member
 
Registered: Nov 2008
Location: Egypt
Distribution: Ubuntu, SuSE
Posts: 101

Original Poster
Rep: Reputation: 16
Thanks all I reinstalled apache server again & now its working fine


Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hello problem with apache server ressurected Linux - Newbie 5 05-01-2010 04:07 PM
Apache server problem atomicrm Linux - Server 3 02-15-2009 12:36 PM
Apache 2.0 server problem codabiz Mandriva 2 12-21-2003 11:51 AM
problem with apache server lomaree Linux - Software 2 05-25-2003 03:30 PM
apache server problem davsingl67 Linux - General 1 12-11-2002 03:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration