HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   ISPconfig error: ERROR: The syntax of your httpd.conf is not ok (http://www.howtoforge.com/forums/showthread.php?t=4675)

marclar 3rd June 2006 01:04

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:confused:

falko 3rd June 2006 14:02

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?

marclar 3rd June 2006 14:27

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/ ???

falko 3rd June 2006 14:57

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...

marclar 3rd June 2006 15:05

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? :( :confused: :( :confused:

falko 3rd June 2006 22:25

Quote:

Originally Posted by marclar
How do I actually remove the apache? By deleting all the files, that are connected with apache? :( :confused: :( :confused:

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".


All times are GMT +2. The time now is 19:01.

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