PHP-FPM

Post Reply
rogero
Posts: 8
Joined: Thu Apr 01, 2021 2:56 pm

I have generated custom Web Template APACHE 2 to point a subdomain to the
directory of the main domain. I had issues with open basedir restrictions.

i have edit as a example:
/etc/php/7.3/fpm/pool.d/test.rentacarcompany.com.conf and add the path
/home/rental in the open_basedir

See screenshot: https://ibb.co/8jCHYMM

Is there a way to get this standard inside the template? for open basedir
. I have 72 subdomains on a change of php version the settings are gone.

Any ideas or solution for this?
User avatar
myVesta
Site Admin
Posts: 932
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

different vesta accounts?

i have some script for open_basedir moldification, but doing some other things - it will add the same path but with /hdd/ prefix.

Code: Select all

http://dl.myvestacp.com/vesta/add_path_to_open_basedir.sh
the key line is:

Code: Select all

openbasedir=$(grep 'open_basedir' $file | cut -c 33- | cut -d':' -f1)
so if you can take home dir from it, you solved the problem.
Post Reply