You shouldn’t, if you didn’t remove /usr/share/ dir it should be there. Before adding the dir explicity to open_basedir directive, rebuild your web domain and try again
v-rebuild-web-domain YourUser YourDomain yes
You shouldn’t, if you didn’t remove /usr/share/ dir it should be there. Before adding the dir explicity to open_basedir directive, rebuild your web domain and try again
v-rebuild-web-domain YourUser YourDomain yes
Sure. Its there. I confirmed.
Rebuild and even restarted server.
Same error.
No input file specified.
Show the output of these commands (replace HereYourDomain by the actual data):
grep -r 'open_basedir =' /etc/php
grep -F '[open_basedir]' /etc/php/7.4/fpm/pool.d/HereYourDomain.conf
/etc/php/7.4/fpm/php.ini.vst.back:;open_basedir =
/etc/php/7.4/fpm/php.ini:open_basedir = /home/USER/MYCUSTOMFOLDER:/tmp
/etc/php/7.4/cli/php.ini.vst.back:;open_basedir =
/etc/php/7.4/cli/php.ini:;open_basedir =
/etc/php/7.3/fpm/php.ini:open_basedir = /home/USER/MYCUSTOMFOLDER:/tmp
/etc/php/7.3/cli/php.ini:;open_basedir =
/etc/php/8.4/cli/php.ini:;open_basedir =
/etc/php/8.4/phpdbg/php.ini:;open_basedir =
php_admin_value[open_basedir] = /home/USER/MYCUSTOMFOLDER:/home/USER/web/MYDOMAIN.com/public_html:/home/USER/web/MYDOMAIN.com/private:/home/USER/web/MYDOMAIN.com/public_shtml:/home/USER/tmp:/var/www/html:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/phppgadmin:/etc/roundcube:/var/lib/roundcube:/tmp:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt
Edit that file /etc/php/7.4/fpm/php.ini and also the one for php 7.3 /etc/php/7.3/fpm/php.ini and comment the line open_basedir = /home/USER/MYCUSTOMFOLDER:/tmp adding a semicolon in front of the directive:
;open_basedir = /home/USER/MYCUSTOMFOLDER:/tmp
Once edited the php.ini files, restart php services.
systemctl restart php7.4-fpm
systemctl restart php7.3-fpm
Perfecto!!!
Working like a charm.
Thanks again @sahsanu. You are the best.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.