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

subdomains folder not writable for PHP

Discussion in 'Plesk 11.x for Linux' started by WimVel, Oct 26, 2012.

  1. WimVel

    WimVel New Pleskian

    10
     
    Joined:
    Oct 26, 2012
    Messages:
    1
    Likes Received:
    0
    Hi,

    I have a problem with Plesk and PHP. PHP isn't able to write to a directory in de subdomains folder.
    e.g.

    is_writable( /var/www/vhosts/domainname ) results in FALSE, with file permissions 755
    is_writable( /var/www/vhosts/domainname/subdomains ) results in FALSE, with file permissions 755
    is_writable( /var/www/vhosts/domainname/subdomains/www2 ) results in FALSE, with file permissions 755
    is_writable( /var/www/vhosts/domainname/subdomains/www2/upload ) results in FALSE, with file permissions 777
    while
    is_writable( /var/www/vhosts/domainname/httpdocs ) results in TRUE, with file permissions 750

    All directories have the owner userX and group psaserv

    There must be a setting preventing PHP form writing to that folder.

    My PHP settings (listed in PHPINFO() ) are:
    Server API: CGI/FastCGI
    Safe_mode: OFF
    open_basedir: /var/www/vhosts/domainname/:/tmp/

    How do I tell PLESK that PHP is allowed to write so the subdomainsfolder..

    Please help
     
  2. Dx3webs

    Dx3webs Basic Pleskian

    20
    23%
    Joined:
    Oct 11, 2010
    Messages:
    78
    Likes Received:
    1
    Same issue here.. anyone come across this bug?

    plesk 11..

    affects mod_php + fast_cgi

    files can be 777 / apache:apache does not matter still no access
     
  3. joaquinm

    joaquinm New Pleskian

    10
    30%
    Joined:
    Jun 14, 2012
    Messages:
    4
    Likes Received:
    1
    Same for me in new server. Noticed after migrating a working domain from a Plesk10 box. The issue was detected when uploading images with jbimage (TinyMCE plugin).

    (is_writable) http://www.domain.com/file_777 OK
    /var/www/vhosts/domain.com/httpdocs/file_777

    (is_writable) http://subdomain.domain.com/file_777 FAIL
    /var/www/vhosts/domain.com/subdomain/file_777

    But same site with same config works on another server with Plesk 11 but using old Plesk subdomains paths.

    (is_writable) http://subdomain.domain.com/file_777 OK
    /var/www/vhosts/domain.com/subdomains/subdomain/httpdocs/file_777
     
    Last edited: Feb 14, 2013
Loading...