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?
PHP-FPM
- 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.
the key line is:
so if you can take home dir from it, you solved the problem.
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
Code: Select all
openbasedir=$(grep 'open_basedir' $file | cut -c 33- | cut -d':' -f1)