I am wanting to use 1 PHP installation for my server but I have several virtual hosts each with their own directories. I want each host to only be able to access inside it's directory...open_basedir is what I want to use. Can I specify open_basedir when launching the PHP interpreter for each virtual host? I would prefer that over creating a .ini file for each host and using -c "path/to/host.ini".
If anyone is curious, no I do not use Apache and PHP as a module. I use PHP in FastCGI with Abyss Web Server.
Can open_basedir be specified as an argument?
Moderator: General Moderators
Re: Can open_basedir be specified as an argument?
-d open_basedir=/path/to/vhost/dir
In this way you may specify (and override) any option from php.ini
In this way you may specify (and override) any option from php.ini
Re: Can open_basedir be specified as an argument?
Thanks, it works.