Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Morgin Posted March 5, 2016 Posted March 5, 2016 So I'm a super n00b with web admin, but plodding along and hopefully not mucking it up too much. My open_basedir is set in /etc/php5/apache2/php.ini to the directory that ips is installed in, which is /home/user/domain.tld/. IPS is the only thing on my VPS. If I ever wanted to host another site on this VPS, would it be a good idea to move the open_basedir setting into my httpd.ini file (or another file tied to my domain)? I'm on ubuntu, and my apache virtual hosts have been set up in a domain.tld file at /etc/apache2/sites-available/. This file has my <VirtualHost> ... </VirtualHost> settings for my domain. Thoughts on how I should be doing this?
Taddei Jean-Baptiste Posted March 6, 2016 Posted March 6, 2016 If you're gonna use multiple sites, with differents folders, you should set open_basedir in the domaine.tld file in /etc/apache2/sites-available. Doing so will set this PHP settings only for domain.tld, and allows you to set differents open_basedir.
Morgin Posted March 7, 2016 Author Posted March 7, 2016 On 3/6/2016 at 9:50 AM, Camille Ollier said: If you're gonna use multiple sites, with differents folders, you should set open_basedir in the domaine.tld file in /etc/apache2/sites-available. Doing so will set this PHP settings only for domain.tld, and allows you to set differents open_basedir. Do you know the syntax for doing this?
Taddei Jean-Baptiste Posted March 17, 2016 Posted March 17, 2016 Check the PHP doc, everything you may want is in it : <Directory /docroot> php_admin_value open_basedir /docroot </Directory>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.