Mins / TuxLite

A complete LAMP and LNMP setup script for Debian or Ubuntu

Home Page:http://tuxlite.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not open configuration file httpd.conf ?

opened this issue · comments

Hello. I need help, i have followed this guide but my local server is not online and when i type /etc/init.d/apache2 start in terminal i get the following error

  • Starting web server apache2 apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/httpd.conf: No such file or directory
    Action 'start' failed.

my os is ubuntu 13.04.

btw after commenting include httpd.conf on line 216 and retype /etc/init.d/apache2 start, i get the following error

  • Starting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
    [Sun Mar 24 18:34:13 2013] [warn] NameVirtualHost *:443 has no VirtualHosts
    (98)Address already in use: make_sock: could not bind to address [::]:80
    (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
    Action 'start' failed.

The script does not support Ubuntu 13.04 or Debian 7 yet. I'm waiting for the official releases before updating the script.

For your first problem, line 216 refers to the "Include httpd.conf" line.
httpd.conf has been removed in the future packages as part of Debian's efforts to clean up their implementation of Apache2. This is addressed here http://wiki.debian.org/Apache2Transition under the "Make upstream happier" section.
Commenting it out would be the right thing to do.

For the second issue, it appears that something else might be running on port 80. Try running

netstat -pln | grep :80

and see what processes are running. It may be that another webserver is installed.

This has now been fixed.
Thanks again for reporting the bug!