open_basedir restriction in effect - CentOS 6.8, NginX, ISPconfig 3.1

Discussion in 'ISPConfig 3 Priority Support' started by inside83, Oct 14, 2016.

  1. inside83

    inside83 Member HowtoForge Supporter

    Hello!
    I know this has been addressed before but none of the previous solutions work for me :(
    My error.log file
    Code:
    /var/log/ispconfig/httpd/mydomain.com/error.log
    is full of errors like:
    Code:
    2016/10/14 09:24:29 [error] 4569#0: *1580 FastCGI sent in stderr: "da/thumbnail/pdf/) is not within the allowed path(s): (/var/www/clients/client1/web7/web:/var/www/clients/client1/web7/private:/var/www/clients/client1/web7/tmp:/var/www/mydomain.com/web:/srv/www/mydomain.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/var/www/clients/client1/web7) in /var/www/clients/client1/web7/web/phpfn10.php on line 4876
    PHP message: PHP Warning:  is_dir(): open_basedir restriction in effect. File(/var/www/clients/client1/web7/web/_uploads_/temp__t19a81bvb16gas9g49pr3msbd2/x_obrazac_apif/pdf/) is not within the allowed path(s): (/var/www/clients/client1/web7/web:/var/www/clients/client1/web7/private:/var/www/clients/client1/web7/tmp:/var/www/mydomain.com/web:/srv/www/mydomain.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/var/www/clients/client1/web7) in /var/www/clients/client1/web7/web/phpfn10.php on line 4876
    PHP message: PHP Warning:  is_dir(): open_basedir restriction in effect. File(/var/www/clients/client1/web7/web/_uploads_/temp__t19a81bvb16gas9g49pr3msbd2/x_obrazac_aimcs/pdf/) is not within the allowed path(s): (/var/www/clients/client1/web7/web:/var/www/clients/client1/web7/private:/var/www/clients/client1/web7/tmp:/var/www/mydomain.com/web:/srv/www/mydomain.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/var/www/clients/client1/web7) in /var/www/clients/client1/web7/web/phpfn10.php on line 4876" while reading response header from upstream, client: 89.111.234.30, server: mydomain.com, request: "GET /z_p_edit.php?id_=736 HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web7.sock:", host: "mydomain.com", referrer: "http://mydomain.com/z_list.php?showmaster=aktivni&sifra=318"
    
    I added
    ':/var/www/clients/client1/web7' in PHP open_basedir field on the Options tab even though it already contained '/var/www/clients/client1/web7/web' but the errors remain.
    Please help.
     

Share This Page