Results 1 to 5 of 5

Thread: Empty httpd.conf in /etc/apache2

  1. #1
    Join Date
    May 2008
    Beans
    51

    Empty httpd.conf in /etc/apache2

    Hi

    I have installed mysql, php, and apache2.
    I did test php file put it in /var/www/ and then opened up firefox and http://localhost/testphp.php

    It worked. I didn't even have to add php to the httpd.conf.
    Since then I have installed Netbeans 6.5.
    Now I can't read php files. I tried with html and it does work, so I know it's not picking up php files.
    So I go to /etc/apache2/ and I vi httpd.conf
    It's empty. I tried opening it with gedit after that and it's empty.
    Where do I find this file so I can add php files? Or how do I fix this?

  2. #2
    Join Date
    Mar 2007
    Location
    London
    Beans
    65
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Empty httpd.conf in /etc/apache2

    I 'think' apache2 doesn't use httpd.conf. It uses apache.conf instead - try looking in that file instead (the httpd.conf file is probably there for histrical reasons).
    ---
    AMD Athlon 4200+ Dual Core 3GB RAM Nvidia 8800GT

  3. #3
    Join Date
    Jan 2007
    Location
    CA
    Beans
    846
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Empty httpd.conf in /etc/apache2

    Code:
    sudo a2enmod 
    php5
    should take care of that.

  4. #4
    Join Date
    Jan 2007
    Location
    CA
    Beans
    846
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Empty httpd.conf in /etc/apache2

    httpd.conf is deprecated.

    the apache 2 configuration is kept in
    /etc/apache2/apache2.conf

    Configuration files for individual sites (1 per site) should be kept in
    /etc/apache2/sites-available/

    and then enabled with

    Code:
    sudo a2enmod
    filename (usually the name of the site)
    (which just places a link in the /etc/apache2/sites-enabled folder)

    or disabled with

    Code:
    sudo a2dissite
    filename

  5. #5
    Join Date
    Mar 2007
    Beans
    9

    Re: Empty httpd.conf in /etc/apache2

    In Jaunty, it seems to be /etc/httpd/conf/httpd.conf

    Ken

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
  •