Jump to content

open_basedir


Recommended Posts

Posted

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?

Posted

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.

Posted
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?

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...