Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: /etc/httpd.conf': No such file or directory

  1. #1
    Join Date
    Jul 2009
    Location
    UK
    Beans
    25
    Distro
    Ubuntu 11.04 Natty Narwhal

    /etc/httpd.conf': No such file or directory

    Hi,

    I'm on the verge of setting up a webserver on my newly installed ubuntu desktop 11.04. I've done the dyndns, port forwarding ok and get a index / page when i access my URL.

    i only installed apache2, and since then found out about LAMP, so installed the following:

    sudo apt-get install php5
    sudo apt-get install mysql-server

    Then i've followed the link
    http://www.easy-ubuntu-linux.com/apa...uration-2.html

    I got as far as backing up my .conf file using:

    sudo cp /etc/httpd.conf /etc/httpd.conf_backup

    and now it says

    cp: cannot stat `/etc/httpd.conf': No such file or directory

    I've restarted apache and now get this:
    apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName



    HELP PLEASE!!!
    Last edited by koshiuk; May 19th, 2011 at 07:15 PM. Reason: adding info

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Beans
    Hidden!

    Re: /etc/httpd.conf': No such file or directory

    read the link a little closer
    Apache on Ubuntu has two main configuration files: apache2.conf and httpd.conf. Both are found in the directory '/etc/apache2'
    so...
    Code:
    sudo cp /etc/apache2/httpd.conf /etc/apache2/httpd.conf_backup
    edit; Also the error; apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
    will be solved for you following the rest of your link,. as that problem is solved by adding ServerName localhost in the /etc/apache2/httpd.conf your gonna edit
    Last edited by mhgsys; May 19th, 2011 at 07:38 PM.
    When your thread it solved: go to thread tools > Mark this thread as solved
    for SIS 771/671 use xcompmgr to have transparent terminals. just load it at startup.

    And then they asked: what's a pbkac error?

  3. #3
    Join Date
    Jul 2009
    Location
    UK
    Beans
    25
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: /etc/httpd.conf': No such file or directory

    Many thanks for that....appreciated.

    getting this now

    gav@ThinkPadT61:/etc/apache2$ sudo /etc/init.d/apache2 restart
    Syntax error on line 1 of /etc/apache2/httpd.conf:
    Invalid command 'Userdir', perhaps misspelled or defined by a module not included in the server configuration
    Action 'configtest' failed.
    The Apache error log may have more information.
    ...fail!

    -------------------------------------------------
    /etc/apache2/httpd.conf


    Userdir public_html
    Options +Indexes
    Options All

    ServerName localhost

    <Directory "/home/gav/public_html/">
    Order allow,deny
    Allow from all
    AllowOverride All
    </Directory>

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Beans
    Hidden!

    Re: /etc/httpd.conf': No such file or directory

    Quote Originally Posted by koshiuk
    Invalid command 'Userdir', perhaps misspelled or defined by a module not included in the server configuration
    Action 'configtest' failed.
    By default, Apache on Ubuntu does not allow the use of user directories (enabled by the UserDir module)
    After installing Apache, you will want to ensure a few modules are available to process programs and to ease the development and maintenance of your website. A module is an extension that enables the server to handle more advanced programming. Some modules are installed by default as a matter of course, and others may be installed separately.

    On Ubuntu, the configuration files for Apache are held in the directory '/etc/apache2'. To learn what is supported by the web server, visit '/mods-enabled'. There several files with a suffix of '.load' are listed. These are the modules themselves, and their configuration files are in the corresponding '.conf' files.

    Some of the basic modules that come with Ubuntu's installation of Apache:

    * alias
    * autoindex
    * cgi
    * dir
    * env
    * mime
    * negotiation
    * status

    This may seem a bit sparse, and it is. To see which modules are available, see the corresponding 'mods-available' directory (/etc/apache2/mods-available). Here you will find a list of all the modules that can be enabled.
    I bet you forgot to enable the module
    When your thread it solved: go to thread tools > Mark this thread as solved
    for SIS 771/671 use xcompmgr to have transparent terminals. just load it at startup.

    And then they asked: what's a pbkac error?

  5. #5
    Join Date
    May 2011
    Location
    Belgium
    Beans
    125
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: /etc/httpd.conf': No such file or directory

    By default, Apache on Ubuntu does not allow the use of user directories (enabled by the UserDir module)
    Sorry to go off topic, but this could also be the cause of a problem with VirtualHosts ?
    Rejoice, and in rejoicings, die.

    Life is music

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Beans
    Hidden!

    Re: /etc/httpd.conf': No such file or directory

    I'm in a nice mood so I reproduced the error using the same conf file
    mhg@mhg-laptop:/etc/apache2/mods-enabled$ sudo service apache2 start
    * Starting web server apache2 Syntax error on line 1 of /etc/apache2/httpd.conf:
    Invalid command 'Userdir', perhaps misspelled or defined by a module not included in the server configuration
    [fail]
    so...
    Code:
    sudo a2enmod
    (you could do a sudo a2enmod userdir, but this way you know how to see the available modules)
    Your choices are: actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgi cgid charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dump_io env expires ext_filter file_cache filter headers ident imagemap include info ldap log_forensic mem_cache mime mime_magic negotiation php5 proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy_scgi reqtimeout rewrite setenvif speling ssl status substitute suexec unique_id userdir usertrack version vhost_alias
    Which module(s) do you want to enable (wildcards ok)?
    userdir
    Enabling module userdir. Run '/etc/init.d/apache2 restart' to activate new configuration!
    mhg@mhg-laptop:/etc/apache2/mods-enabled$ sudo /etc/init.d/apache2 restart
    * Restarting web server apache2 [ OK ]
    seems to work ; and dubble-checked it works
    mhg@mhg-laptop:/etc/apache2/mods-enabled$ sudo /etc/init.d/apache2 force-reload
    * Reloading web server config apache2
    mhg@mhg-laptop:/etc/apache2/mods-enabled$ sudo /etc/init.d/apache2 stop
    * Stopping web server apache2 ... waiting [ OK ]
    mhg@mhg-laptop:/etc/apache2/mods-enabled$ sudo /etc/init.d/apache2 start
    * Starting web server apache2 [ OK ]
    Last edited by mhgsys; May 19th, 2011 at 09:10 PM.
    When your thread it solved: go to thread tools > Mark this thread as solved
    for SIS 771/671 use xcompmgr to have transparent terminals. just load it at startup.

    And then they asked: what's a pbkac error?

  7. #7
    Join Date
    Jul 2009
    Location
    UK
    Beans
    25
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: /etc/httpd.conf': No such file or directory

    wow thanks..... great help again

  8. #8
    Join Date
    Jun 2008
    Location
    Netherlands
    Beans
    Hidden!

    Re: /etc/httpd.conf': No such file or directory

    your welcome, although perhaps it might be a good idea to start reading things a little closer before beginning configurating it

    although the countless times I messed up something while half reading,the errors my mistakes returned, and the nights I used to spend to understand it correctly finally paid off (a little)
    When your thread it solved: go to thread tools > Mark this thread as solved
    for SIS 771/671 use xcompmgr to have transparent terminals. just load it at startup.

    And then they asked: what's a pbkac error?

  9. #9
    Join Date
    Jul 2009
    Location
    UK
    Beans
    25
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: /etc/httpd.conf': No such file or directory

    yeh forgot the module.... doh all working now, thanks mate

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Beans
    Hidden!

    Re: /etc/httpd.conf': No such file or directory

    again ; your welcome
    don't forget to mark your thread as solved
    (it will save some time for people on the forum not reading this thread wanting to help)
    When your thread it solved: go to thread tools > Mark this thread as solved
    for SIS 771/671 use xcompmgr to have transparent terminals. just load it at startup.

    And then they asked: what's a pbkac error?

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •