#1  
Old 28th July 2005, 07:32
m u r m u r is offline
Senior Member
 
Join Date: Jul 2005
Posts: 152
Thanks: 13
Thanked 1 Time in 1 Post
Send a message via AIM to m u r Send a message via MSN to m u r
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 28th July 2005, 12:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Run

Code:
httpd -t
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...
__________________
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 28th July 2005, 14:24
Tribal-Dolphin Tribal-Dolphin is offline
Member
 
Join Date: Jul 2005
Location: Rives - Isčre - FRANCE
Posts: 50
Thanks: 0
Thanked 1 Time in 1 Post
Default 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.
Reply With Quote
  #4  
Old 28th July 2005, 14:39
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,389 Times in 4,234 Posts
Default

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.
Reply With Quote
  #5  
Old 28th July 2005, 14:50
Tribal-Dolphin Tribal-Dolphin is offline
Member
 
Join Date: Jul 2005
Location: Rives - Isčre - FRANCE
Posts: 50
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
Reply With Quote
  #6  
Old 28th July 2005, 14:57
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,389 Times in 4,234 Posts
Default

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.
Reply With Quote
  #7  
Old 28th July 2005, 14:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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`
__________________
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


All times are GMT +2. The time now is 08:58.


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