Configuring Apache
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2010
    Location
    India
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Configuring Apache

    Hi guys,

    I have a small problem...

    I have succesfully installed Apache... It works fine with PHP-MySQL support... I love it too...

    But the thing is that I have to store all my files in
    /var/www/html/ which sort of annoys me... I was wondering of there is any methord to reconfigure the httpd.conf file to do it...

    All the mods I tried crashed the server....

    Any ideas?

  2. #2
    Join Date
    Oct 2007
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Configuring Apache

    Open httpd.conf, and search this line, and change it:

    Code:
    DocumentRoot "/var/www/html"
    Then change this line as well. The path should be the same as the 'DocumentRoot' line:

    Code:
    <Directory "/var/www/html">

  3. #3
    Join Date
    Aug 2010
    Location
    India
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Configuring Apache

    I tried that... Not working

    ---------- Post added at 11:01 PM CDT ---------- Previous post was at 10:40 PM CDT ----------

    Anyway, thanks... I sort of solved the problem temporarly with soft link

  4. #4
    Join Date
    Aug 2009
    Location
    Waldorf, Maryland
    Posts
    7,345
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Configuring Apache

    Don't forget to also set the security label on the document root (make it the same
    as the original), make the owner/group the same as that used by the apache server.

    There are other things you can do if you just want something personal for
    test/development - you can enable the UserDir options for "public_html" directory
    for every user (you also have to enable the users for apache). The security
    label on the user directory has type "httpd_user_content_t", and must have
    world rx permissions. You will also have to enable the user home directories
    in the SELinux apache options too.

    Multiple layers of safety...

Similar Threads

  1. Configuring Apache Mysql PHP -- help
    By eskay_karthik in forum Using Fedora
    Replies: 13
    Last Post: 1st July 2008, 07:26 PM
  2. configuring apache
    By cyberakash in forum Servers & Networking
    Replies: 6
    Last Post: 9th February 2007, 08:46 AM
  3. Problem configuring Apache
    By Cole in forum Servers & Networking
    Replies: 1
    Last Post: 22nd January 2007, 07:54 AM
  4. Installing and configuring Apache
    By pribeiro in forum Installation, Upgrades and Live Media
    Replies: 3
    Last Post: 14th December 2004, 03:57 AM

Tags for this Thread

Posting Permissions

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