Learn about Centmin Mod LEMP Stack today
Register Now

Nginx PHP-FPM PHP 7.0 auto_prepend Operation not permitted

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Cryptso, Aug 27, 2017.

  1. Cryptso

    Cryptso New Member

    3
    1
    3
    Aug 27, 2017
    Ratings:
    +1
    Local Time:
    7:20 AM
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.13.4
    • PHP Version Installed: 7.0.18
    tail /var/log/php_myadmin_error.log
    [26-Aug-2017 21:31:29 UTC] PHP Fatal error: Unknown: Failed opening required '/home/nginx/domains/mydomain.net/public/xyz_file.php' (include_path='.:/usr/local/lib/php') in Unknown on line 0
    [26-Aug-2017 21:32:20 UTC] PHP Warning: Unknown: open_basedir restriction in effect. File(/home/nginx/domains/mydomain.net/public/xyz_file.php) is not within the allowed path(s): (/usr/local/nginx/html/5352_mysqladmin4431:/tmp) in Unknown on line 0
    [26-Aug-2017 21:37:56 UTC] PHP Fatal error: Unknown: Failed opening required '/home/nginx/domains/mydomain.net/public/xyz_file.php' (include_path='.:/usr/local/lib/php') in Unknown on line 0
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,581
    6,854
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,275
    Local Time:
    4:20 PM
    Nginx 1.13.x
    MariaDB 5.5
    You installed phpmyadmin.sh addon and it's /usr/local/nginx/conf/phpfpmd/phpfpm_myadmin.conf php-fpm pool config has open_basedir set via directive php_admin_value[open_basedir]

    but other vhosts shouldn't have open_basedir set anymore with 123.09beta01. Also check open_basedir messages read FAQ item 26

    what are you specifically doing auto_prepend wise ?
     
    • Like Like x 1
  3. Cryptso

    Cryptso New Member

    3
    1
    3
    Aug 27, 2017
    Ratings:
    +1
    Local Time:
    7:20 AM
    With auto_prepend i'm loading MySQL connection for my multi-lvl domains.

    Thanks for advice. Fixed this problem - additionally i had to change user and group privileges for phpmyadmin
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,581
    6,854
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,275
    Local Time:
    4:20 PM
    Nginx 1.13.x
    MariaDB 5.5
    Glad to hear :)