Results 1 to 6 of 6

Thread: Permission error into apache var/www folder on Linux mint

  1. #1
    Join Date
    Jun 2011
    Posts
    84

    Permission error into apache var/www folder on Linux mint

    Recently I have installed Linux mint and enjoying it. My issue is with Permission error into apache var/www folder. The /etc/httpd folder does not exist. I wanted to copy my projects into the /var/www folder. Help me to solve this problem by locating the /etc/httpd folder. Also how can I retrieve/ move it etc and fix the permissions as I currently set the var folder to 755?

  2. #2
    Join Date
    Nov 2009
    Posts
    1,292

    Re: Permission error into apache var/www folder on Linux mint

    According to me you must have misplaced the folder. Just have a look around in /etc folder if its not there in /etc/httpd/ folder. It can also be in /etc/apache or etc/apache2 . The path may me not appropriate because I don’t know what browse address you have allocated to your projects. So try searching in different folders, it may take some time. The permission 755 regarding should be fine for /var or else you should try getting to /var/www directory.

  3. #3
    Join Date
    Nov 2009
    Posts
    687

    Re: Permission error into apache var/www folder on Linux mint

    If you want to check the permission on on /var/www then use the below code and if you want to work inside the /var/www then you would need to have correct permission on the /var/www directory.
    Code:
    ls -ld /var/www/
    or
    Code:
    drwxr-xr-x 2 root root 4096 2011-04-29 09:50 /var/www

  4. #4
    Join Date
    Apr 2009
    Posts
    970

    Re: Permission error into apache var/www folder on Linux mint

    Here is an option. You can use this, I am sure it will work.
    Code:
    mkdir ~/public_html
    sudo ln -s ~public_html /var/www/$USER
    After that command make a test.php in public_html. Also you can create folders and files w/o having to be root. Then edit the link as below:
    Code:
    $USER = equals my username
    localhost/klyxmaster/test.php

  5. #5
    Join Date
    Apr 2009
    Posts
    994

    Re: Permission error into apache var/www folder on Linux mint

    If you want to write files into /var/www as a user rather than root, the permission is required. Try the option- Add the user to a group, then change the owner of the group of the directory to www. After that set the 775 permission on /var/www. Follow the code:

    Code:
    groupadd www
    chown -R :www /var/www
    chmod -R 775 /var/www
    To allow users to edit the file:
    Code:
    chmod -R 777 /var/www/
    There are many other ways but the above two mentioned are the quicker ones.

  6. #6
    Join Date
    Apr 2009
    Posts
    1,107

    Re: Permission error into apache var/www folder on Linux mint

    To reside the php applications in “/var/ www”, to the linked “/var/www” which is apache2's default web directory. You have to create the www directory by giving the ownership to the apache user and allow other users to access group using:
    Code:
    sudo mkdir /var/rails
    sudo chown www-data:www-data /var/rails
    sudo chmod 775 /var/rails

Similar Threads

  1. Replies: 4
    Last Post: 05-05-2012, 05:59 PM
  2. Want to delete "/windows_Old" folder from Linux Mint
    By Wadee in forum Operating Systems
    Replies: 5
    Last Post: 17-01-2011, 11:10 AM
  3. Linux Mint: Shortcut for a folder on the desktop
    By Calandar in forum Operating Systems
    Replies: 5
    Last Post: 16-01-2011, 10:26 PM
  4. Replies: 5
    Last Post: 05-04-2010, 11:55 AM

Tags for this Thread

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
  •  
Page generated in 1,713,880,440.05684 seconds with 17 queries