Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How To Configure Server to use var instead of usr for public files

    I am using Apache CentOS 6 and it wants to serve all the private files from a few folders within the usr folder, which isn't what I am used to. I have looked for ways to configure it so it gets straight from var/home/theusername/public_html/, but I don't remember how to do that.


    The server wants to serve files from usr/, but I can't upload to that area via ftp, since my security is too tight and I don't remember what setting I changed in what file to make it impossible to access any folder and file via FTP. Any help would be appreciated.

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    1,902
    Thanks
    15
    Thanked 226 Times in 226 Posts
    Open a console, su to root, and open the httpd.conf file, usually found here:

    scite /etc/httpd/conf/httpd.conf

    scite is my editor.

    Look for two lines, one says Document Root, the other says <Directory

    Change the entries for both. Then restart you server.

    #service httpd restart

    Make sure you have full permissions in the directory.
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.


    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.


  •  

    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
    •