1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

After Update 403 access forbidden wrong permissions

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by GunFood, Dec 22, 2009.

  1. GunFood

    GunFood Basic Pleskian

    21
    73%
    Joined:
    Aug 28, 2009
    Messages:
    49
    Likes Received:
    0
    Location:
    Berlin
    As metioned in the horde stoped working thread, here is me other problem.

    I did the Base Packaged Update (Dez 10, 2009). After it, every newly created Domain isn't accessable. I get a 403 forbidden error.

    I fixed it by running

    chmod 755 /var/www/vhosts/domain/httpdocs

    But I can't do this every time a customer creates a new Domain or Subdomain!

    Skeleton looks ok:
    cgi-bin 4.00 KB rwx r-x r-x Okt 16, 2009 root root
    error_docs 4.00 KB rwx r-x r-x Okt 16, 2009 root root
    httpdocs 4.00 KB rwx r-x r-x Okt 16, 2009 root root
    httpsdocs 4.00 KB rwx r-x r-x Okt 16, 2009 root root

    but it doesn't have the correct permissions:

    # ls -la
    total 28K
    drwxr-xr-x 7 root root 4.0K Dec 22 15:28 .
    drwxr-xr-x 5 root psaserv 4.0K Dec 22 15:28 ..
    drwxr-x--- 3 web0 psaserv 4.0K Dec 22 15:28 cgi-bin
    drwxr-x--- 2 root psaserv 4.0K Dec 22 15:28 conf
    drwxr-x--- 2 root psaserv 4.0K Dec 22 15:28 error_docs
    drwxr-x--- 5 web0 psaserv 4.0K Dec 22 15:28 httpdocs
    drwxr-x--- 5 web0 psaserv 4.0K Dec 22 15:28 httpsdocs

    Any suggestions?

    Thanks for your help.
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Try to install with autoinstaller all available latest updates, then run 'websrvmng -v -a' and check it again. Update thread with results.
     
  3. GunFood

    GunFood Basic Pleskian

    21
    73%
    Joined:
    Aug 28, 2009
    Messages:
    49
    Likes Received:
    0
    Location:
    Berlin
    Hi,

    thanks for your answer.
    I did:
    autoinstaller --reinstall-patch

    I got:

    Downloading the file PSA_9.2.3/update-rpm-CentOS-5-x86_64/update-9.2.3-cos5-x86_64.hdr.gz: 10%..20%..30%..40%..50%..60%..70%..80%..90%..100% done.
    Downloading the file PSA_9.2.3/dist-rpm-CentOS-5-x86_64/build-9.2.3-cos5-x86_64.hdr.gz: 10%..20%..30%..40%..50%..60%..70%..80%..90%..100% done.
    Downloading the file PSA_9.2.3/thirdparty-rpm-CentOS-5-x86_64/thirdparty-9.2.3-cos5-x86_64.hdr.gz: 11%..22%..31%..40%..52%..60%..72%..81%..93%..100% done.
    Determining the packages that need to be installed.
    Installing patches...
    Downloading the file PSA_9.2.3_MU/microupdates/common/get_password.php: skipped because of md5 checksum match.
    The packages were installed successfully.

    But it didn't help.
    I created a new domain and got:

    total 28K
    drwxr-xr-x 7 root root 4.0K Dec 23 08:54 .
    drwxr-xr-x 5 root psaserv 4.0K Dec 23 08:54 ..
    drwxr-x--- 3 web0 psaserv 4.0K Dec 23 08:54 cgi-bin
    drwxr-x--- 2 root psaserv 4.0K Dec 23 08:54 conf
    drwxr-x--- 2 root psaserv 4.0K Dec 23 08:54 error_docs
    drwxr-x--- 5 web0 psaserv 4.0K Dec 23 08:54 httpdocs
    drwxr-x--- 5 web0 psaserv 4.0K Dec 23 08:54 httpsdocs

    This night, I think a cronjob, changed all permissions. Many of my old domains didn't work. I fixed the permissions by hand. But I will run the cronjob daily again, to see if it will changed back again.
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Very strange. I never heard about such problem. Seems it is your specific issue and I can suggest you check all crontab scripts if you think that problem is there.
     
  5. MaxZ

    MaxZ Guest

    0
     
    Hello Gunfood,

    sorry I have no actual solution to your problem, I just wanted to ask you to please keep us posted in this thread, because I probably won't do the upgrade until your issue is resolve. Have had too many problems with plesk autoupdates already!

    Thanks,

    Max
     
  6. MariusP

    MariusP Guest

    0
     
    Try adding "apache" to the psaserv group in /etc/group

    It should look something like this:
     
  7. RegisteredU

    RegisteredU Guest

    0
     
    Same problem here.

    "Access forbidden!

    You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

    If you think this is a server error, please contact the webmaster.
    Error 403"

    Every created domain on the server shows this error. Nothing else has been installed nor configured. It's a pretty naked system. So the error MUST come from plesk.
     
Loading...