Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
I have just installed Ubuntu server 7.04 and I am having problems with the permissions? I have changed the DocumentRoot in the /etc/apache2/sites-enabled/000-Default to "/home/jeff/public_html" but I am getting "Forbidden ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Posts
    7

    Forbidden


    I have just installed Ubuntu server 7.04 and I am having problems with the permissions? I have changed the DocumentRoot in the /etc/apache2/sites-enabled/000-Default to "/home/jeff/public_html" but I am getting "Forbidden - You don't have permission to access this server" when I open up Firefox/IE to test. I have used the chmod command and +'d rwx for ugo for the directories/file (/home, /jeff, /public_html, test.html) with no luck. Does anyone have any ideas?

  2. #2
    Linux Newbie objuan's Avatar
    Join Date
    Jul 2006
    Location
    california
    Posts
    234
    Apache needs to have the directory permissions set to 777

  3. #3
    Just Joined!
    Join Date
    Jun 2007
    Posts
    7
    Thanks.....I am very new to Linux so can you please tell me how to do this?

  4. #4
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,133
    Quote Originally Posted by objuan View Post
    Apache needs to have the directory permissions set to 777
    Shouldn't that be 755? You don't want to give others write permission. You can do this by running
    Code:
    chmod 755 /jeff
    And so on for the others. Is your 'jeff' folder on the root partition?

  5. #5
    Just Joined!
    Join Date
    Jun 2007
    Posts
    7
    I have tried switching to 777 and 775 for the following:

    /etc
    /etc/apache2
    /etc/apache2/sites-enabled
    /etc/apache2/sites-enabled/000-default (This is where I changed the DocumentRoot to /home/jeff/public_html")
    /home
    /home/jeff
    /home/jeff/public_html
    /home/jeff/public_html/test.html (Test page I created with front page)

    I have stoped thae apache2 process and started and I am still getting the page "403 Forbidden - You don't have permission to access / on this server" page. Any other ideas?

  6. #6
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414
    It seems like something else has gone wrong, but I'm not sure what.....

    From the same computer as you're running your server, what happens when you type "localhost" in the address bar of your browser. Also, try "127.0.0.1".
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  7. #7
    Just Joined!
    Join Date
    Jun 2007
    Posts
    7
    I have tried typing "localhost" and "127.0.0.1" directly on the Ubuntu box and I still run into the same Forbidden msg using Firefox.

  8. #8
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414
    Are there any error messages reported when you start Apache? Are their any messages in /var/log/apache2/access_log or /var/log/apache2/error_log?
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  9. #9
    Just Joined!
    Join Date
    Jun 2007
    Posts
    7
    jeff@ubuntu:~$ sudo service apache2 start
    * Starting web server (apache2)... apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.1.102 for ServerName
    [Tue Jun 19 07:16:49 2007] [warn] NameVirtualHost (My Domain):0 has no VirtualHosts



    error.log


    [Sun Jun 17 07:35:14 2007] [notice] Apache/2.2.3 (Ubuntu) PHP/5.2.1 configured -- resuming normal operations
    [Sun Jun 17 23:46:05 2007] [error] [client 24.137.120.232] Directory index forbidden by Options directive: /home/jeff/public_html/
    [Mon Jun 18 03:17:11 2007] [notice] Apache/2.2.3 (Ubuntu) PHP/5.2.1 configured -- resuming normal operations
    [Mon Jun 18 12:53:31 2007] [error] [client 24.226.1.232] Directory index forbidden by Options directive: /home/jeff/public_html/
    [Mon Jun 18 12:53:31 2007] [error] [client 24.226.1.232] File does not exist: /home/jeff/public_html/favicon.ico
    [Mon Jun 18 12:53:31 2007] [error] [client 24.226.1.232] File does not exist: /home/jeff/public_html/favicon.ico
    [Mon Jun 18 12:54:10 2007] [error] [client 24.141.134.230] script '/home/jeff/public_html/1.php' not found or unable to stat
    [Mon Jun 18 13:45:01 2007] [notice] caught SIGTERM, shutting down
    [Mon Jun 18 13:45:25 2007] [notice] Apache/2.2.3 (Ubuntu) PHP/5.2.1 configured -- resuming normal operations
    [Mon Jun 18 13:45:31 2007] [error] [client 24.141.134.230] Directory index forbidden by Options directive: /home/jeff/public_html/
    [Mon Jun 18 13:45:31 2007] [error] [client 24.141.134.230] File does not exist: /home/jeff/public_html/favicon.ico
    [Mon Jun 18 14:05:27 2007] [error] [client 24.226.1.232] Directory index forbidden by Options directive: /home/jeff/public_html/
    [Mon Jun 18 15:12:37 2007] [error] [client 192.168.1.100] Directory index forbidden by Options directive: /home/jeff/public_html/
    [Mon Jun 18 15:12:37 2007] [error] [client 192.168.1.100] File does not exist: /home/jeff/public_html/favicon.ico
    [Mon Jun 18 15:33:00 2007] [error] [client 66.90.81.8] File does not exist: /home/jeff/public_html/a1b2c3d4e5f6g7h8i9
    [Mon Jun 18 15:33:00 2007] [error] [client 66.90.81.8] script '/home/jeff/public_html/adxmlrpc.php' not found or unable to stat
    [Mon Jun 18 15:33:00 2007] [error] [client 66.90.81.8] File does not exist: /home/jeff/public_html/adserver
    [Mon Jun 18 15:33:00 2007] [error] [client 66.90.81.8] File does not exist: /home/jeff/public_html/phpAdsNew
    [Mon Jun 18 15:33:00 2007] [error] [client 66.90.81.8] File does not exist: /home/jeff/public_html/phpadsnew
    [Mon Jun 18 15:33:00 2007] [error] [client 66.90.81.8] File does not exist: /home/jeff/public_html/phpads
    [Mon Jun 18 15:33:00 2007] [error] [client 66.90.81.8] File does not exist: /home/jeff/public_html/Ads
    [Mon Jun 18 15:33:00 2007] [error] [client 66.90.81.8] File does not exist: /home/jeff/public_html/ads
    [Mon Jun 18 15:33:01 2007] [error] [client 66.90.81.8] script '/home/jeff/public_html/xmlrpc.php' not found or unable to stat
    [Mon Jun 18 15:33:01 2007] [error] [client 66.90.81.8] File does not exist: /home/jeff/public_html/xmlrpc
    [Mon Jun 18 15:33:01 2007] [error] [client 66.90.81.8] File does not exist: /home/jeff/public_html/xmlsrv
    "error.log" [readonly] 48 lines, 5286 characters

  10. #10
    Banned
    Join Date
    Jun 2007
    Posts
    3
    I'm new to Linux so can you please tell me how to do this ?

Page 1 of 2 1 2 LastLast

Posting Permissions

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