much wow, very thanx.
Just for reference
cd
nano phpopenbasedir
#!/usr/bin/bash
for i in /home/*
do
FILE=$i/php.ini
if [[ -f "$FILE" ]]; then
echo "$FILE exists."
else
echo "open_basedir = $i/:/tmp:/var/tmp:/usr/local/lib/php/" > $i/php.ini
chown root.root $i/php.ini
chmod 555 $i/php.ini
fi
done
(I did not need the second home in "/home/$i/php.ini)
chmod +x phpopenbasedir
Now I need a way to run this at every account creation.
PS. Unfortunately phpinfo() shows open_basedir as empty. Maybe its because I have chosen in cwp the nginx, apache, varnish option with the php-fpm option forced?