Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-18-2011, 08:16 AM
|
#1
|
Member
Registered: Nov 2008
Location: Egypt
Distribution: Ubuntu, SuSE
Posts: 101
Rep:
|
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
|
|
|
01-18-2011, 08:21 AM
|
#2
|
LQ Newbie
Registered: Jun 2005
Location: Denmark
Distribution: Debian 5
Posts: 23
Rep:
|
Can you please paste the code for your vhost (/etc/apache2/sites-enabled/theprophetofmercy.org)?
|
|
|
01-18-2011, 08:27 AM
|
#3
|
Member
Registered: Nov 2008
Location: Egypt
Distribution: Ubuntu, SuSE
Posts: 101
Original Poster
Rep:
|
Quote:
Originally Posted by t3ch
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
|
|
|
01-18-2011, 08:33 AM
|
#4
|
Member
Registered: Oct 2006
Location: Utah
Posts: 520
Rep:
|
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
|
|
|
01-18-2011, 08:42 AM
|
#5
|
Member
Registered: Nov 2008
Location: Egypt
Distribution: Ubuntu, SuSE
Posts: 101
Original Poster
Rep:
|
Quote:
Originally Posted by fordeck
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
|
|
|
01-18-2011, 08:44 AM
|
#6
|
Member
Registered: Nov 2008
Location: Egypt
Distribution: Ubuntu, SuSE
Posts: 101
Original Poster
Rep:
|
also line 230 in apache.conf is normal no problem in it !!
|
|
|
01-18-2011, 09:22 AM
|
#7
|
Member
Registered: Mar 2010
Posts: 40
Rep:
|
can you please check the apache error log for any error messages while running configtest?
|
|
|
01-20-2011, 05:44 AM
|
#8
|
Member
Registered: Nov 2008
Location: Egypt
Distribution: Ubuntu, SuSE
Posts: 101
Original Poster
Rep:
|
Thanks all I reinstalled apache server again & now its working fine
Thanks
|
|
|
All times are GMT -5. The time now is 03:53 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|