Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd June 2006, 01:04
marclar marclar is offline
Member
 
Join Date: Jun 2006
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to marclar
Default ISPconfig error: ERROR: The syntax of your httpd.conf is not ok

i'm installing ISPconfig on debian 3.1. i've come to the problem which i cant solve. the error is:
Quote:
########## WEB SERVER ##########

Checking for program httpd...
/usr/bin/httpd
OK
Checking the syntax of the httpd.conf...
httpd: could not open document config file /etc/apache2/apache2.conf
ERROR: The syntax of your httpd.conf is not ok! Please correct the error. The installation routine stops here!
home:/usr/local/src/install_ispconfig#
the setup2 looks like this:

Quote:
echo "########## WEB SERVER ##########"
echo
which httpd > /dev/null
if [ $? != 0 ]; then
which apache > /dev/null
if [ $? == 0 ]; then
ln -s `which apache` /usr/bin/httpd
fi
which apache2 > /dev/null
if [ $? == 0 ]; then
ln -s `which apache2` /usr/bin/httpd
fi
fi

echo $q_httpd_check
which httpd
if [ $? != 0 ]; then
which httpd2
if [ $? != 0 ]; then
error "httpd not found!";
else
ln -s `which httpd2` /usr/bin/httpd
echo OK
fi
else
log "httpd found: `which httpd`"
echo OK
fi
fi ## install_art == install

echo $q_httpd_syntax_check
httpd -t
if [ $? != 0 ]; then
error "$q_httpd_syntax_check_not_ok";
fi
echo $q_httpd_syntax_check_ok
log "httpd syntax ok!"

if [ "$install_art" == "install" ]; then
the ./httpd -t command returns: Syntax OK!
the $PATH includes all the paths it should..

I simply don't know what else could be wrong..
Why does it say " could not open document config file /etc/apache2/apache2.conf" this folder doesnt exist on my server!
Where did he find that path?
I would really appreciate your help!

Thx
Reply With Quote
Sponsored Links
  #2  
Old 3rd June 2006, 14:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,714 Times in 2,556 Posts
Default

Quote:
Originally Posted by marclar
Why does it say " could not open document config file /etc/apache2/apache2.conf" this folder doesnt exist on my server!
Where did he find that path?
The installer found this path in the output of
Code:
httpd -V
Why does /etc/apache2/apache2.conf not exist on your server? Did you delete it manually?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 3rd June 2006, 14:27
marclar marclar is offline
Member
 
Join Date: Jun 2006
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to marclar
Default

no, I don't remember deleting it! The folder just dont exist. But apache, works fine! Is there any way to fix this problem?

On the server, there are two httpd's. One is in /usr/bin/httpd, and one is at /usr/local/apache/bin/httpd
The first httpd -V gives the value SERVER_CONFIG_FILE="/etc/apache2/apache2.conf" ----> that's where the problem is
and the second httpd -V gives SERVER_CONFIG_FILE="conf/httpd.conf" ---> which i suppose is right

But the ./setup uses the first httpd, (/usr/bin/httpd), so it returns error, couse there is no /etc/apache2/apache2.conf

How to tell the setup process to use the second httpd, which is located in /usr/local/apache/bin/ ???

Last edited by marclar; 3rd June 2006 at 14:48.
Reply With Quote
  #4  
Old 3rd June 2006, 14:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,714 Times in 2,556 Posts
Default

Did you use this tutorial: http://www.howtoforge.com/perfect_setup_debian_sarge to set up your Debian system?
I guess you didn't use the Debian packages to install Apache...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 3rd June 2006, 15:05
marclar marclar is offline
Member
 
Join Date: Jun 2006
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to marclar
Default

I dont remember how i installed apache, with apt-get I think.. so you think there is no other way, than removing apache, and install it again? How do I actually remove the apache? By deleting all the files, that are connected with apache?
Reply With Quote
  #6  
Old 3rd June 2006, 22:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,714 Times in 2,556 Posts
Default

Quote:
Originally Posted by marclar
How do I actually remove the apache? By deleting all the files, that are connected with apache?
That depends on how you installed it...
If the server isn't a production server yet, I suggest you reinstall it and follow the "Perfect Setup".
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Frustrated with ISPConfig install! woozyerdaddee Installation/Configuration 4 19th May 2006 03:38
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16
Installation Fails... :( cyberstorm Installation/Configuration 1 15th January 2006 18:07
Install stop at uuwish, UUDeview SeaWolf Installation/Configuration 6 4th October 2005 23:53
httpd.conf syntax is not ok! m u r Installation/Configuration 0 28th July 2005 07:31


All times are GMT +2. The time now is 04:28.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.