
28th July 2005, 07:32
|
|
Senior Member
|
|
Join Date: Jul 2005
Posts: 149
Thanks: 13
Thanked 1 Time in 1 Post
|
|
httpd.conf not ok!
I am new to this whole thing, but I followed this tutorial to set up a server: http://www.falkotimme.com/howtos/per..._debian_sarge/
the installation of ISPConfig was doing just fine until the very end when it checks to see if all the packages are installed. I get the following error -- can anyone help?
ERROR: The syntax of your httpd.conf is not ok! Please correct the error. The installation routine stops here!
Much obliged.
|

28th July 2005, 12:20
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Run
to check the syntax of your httpd.conf. You should then get a message telling you what's wrong.
Is your Apache running right now? I guess not because of the errors in httpd.conf...
|

28th July 2005, 14:24
|
|
Member
|
|
Join Date: Jul 2005
Location: Rives - Isère - FRANCE
Posts: 50
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Debian 3.1
Some errors with Debian Sarge.
If we install apache package or apache2 package we have an error "The syntax of your httpd.conf is not ok!"
The command httpd -t don't work BUT apache -t OR apache2 -t work and the result is Syntax OK.
I think there is an error in setup2. It test only httpd and stop on error. It don't test apache or apache2 command.
|

28th July 2005, 14:39
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Quote:
|
Originally Posted by Tribal-Dolphin
Some errors with Debian Sarge.
If we install apache package or apache2 package we have an error "The syntax of your httpd.conf is not ok!"
The command httpd -t don't work BUT apache -t OR apache2 -t work and the result is Syntax OK.
I think there is an error in setup2. It test only httpd and stop on error. It don't test apache or apache2 command.
|
Before the setup2 scripts performs the httpd -t check, ISPConfig creates a symlink "httpd" that
points to apache or apache2 on debian, depending on what is installed.
Is the symlink "/usr/bin/httpd" created correctly by the ISPConfig setup setup2 script (line 534- 561)?
Till
Last edited by till; 28th July 2005 at 14:45.
|

28th July 2005, 14:49
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Quote:
|
I think there is an error in setup2. It test only httpd and stop on error. It don't test apache or apache2 command.
|
That's not correct. setup2 checks if there is a httpd, httpd2, apache or apache2, and creates a symlink called httpd if necessary:
Code:
echo
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/sbin/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!"
After the installation, you should have a program "httpd", be it a binary or a symlink to httpd2, apache or apache2. You can check with
Code:
ls -l `which httpd`
|

28th July 2005, 14:50
|
|
Member
|
|
Join Date: Jul 2005
Location: Rives - Isère - FRANCE
Posts: 50
Thanks: 0
Thanked 1 Time in 1 Post
|
|
I test 3 times today, he don't create it. I've always this error after accept the license :
./setup2: line 617: httpd: command not found
Near this line, i see the ligne where the symlink is created but it doesn't
|

28th July 2005, 14:57
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Quote:
|
Originally Posted by Tribal-Dolphin
I test 3 times today, he don't create it. I've always this error after accept the license :
./setup2: line 617: httpd: command not found
Near this line, i see the ligne where the symlink is created but it doesn't 
|
Have you run the ISPConfig setup as root user?
Can you create the symlink manually and try to run the ISPConfig install script again?
Last edited by till; 28th July 2005 at 15:39.
|

28th July 2005, 15:08
|
|
Member
|
|
Join Date: Jul 2005
Location: Rives - Isère - FRANCE
Posts: 50
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Yes, I run the ISPConfig setup as root
I will reinstall my debian sarge box with this howto tonight and i retest the installation.
|

28th July 2005, 15:09
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Code:
I test 3 times today, he don't create it. I've always this error after accept the license :
./setup2: line 617: httpd: command not found
Near this line, i see the ligne where the symlink is created but it doesn't
Is httpd, httpd2, apache or apache2 located in your PATH? Run
to see what your path is.
Then run
Code:
which httpd
which httpd2
which apache
which apache2
to see if any of these programs is in your path.
|

28th July 2005, 23:35
|
|
Member
|
|
Join Date: Jul 2005
Location: Rives - Isère - FRANCE
Posts: 50
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Great
You find the error.
The path was'nt in $PATH.
Thanks a lot.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 11:04.
|
|
Recent comments
9 hours 43 min ago
14 hours 47 min ago
19 hours 12 min ago
21 hours 1 min ago
1 day 11 hours ago
1 day 11 hours ago
1 day 16 hours ago
1 day 22 hours ago
1 day 23 hours ago
2 days 59 min ago