You are not logged in.

#1 2012-06-01 15:15:17

xorgx3
Member
From: Poland
Registered: 2011-11-29
Posts: 197

[SOLVED]New PHP documents directory

Hi
Now I have to save my files in /srv/http directory if I wanna display page. I would like change this directory to /home/rlk120/php/. Changed line 

open_basedir=/srv/http/:/home/:/tmp/:/usr/share/pear/:/path/to/documentroot

didn't result.
Any ideas how to do it?

Last edited by xorgx3 (2012-06-02 13:26:31)

Offline

#2 2012-06-02 00:34:19

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: [SOLVED]New PHP documents directory

That only tells php what to do. You still have to setup apache (or whatever you are using) to use the new document root. Or set up a new virtualhost for that purpose. BTW since /home is already in open_basedir you need not change that line.

Offline

#3 2012-06-04 13:45:20

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,229
Website

Re: [SOLVED]New PHP documents directory

stryder wrote:

BTW since /home is already in open_basedir you need not change that line.

Hmmm - OOTH I think that '/home/' means that it is not recursive. If you want to allow PHP to have acces to /home/ recursively (I would not recommend this), then you should use '/home' without the trailing slash.
As the above post suggests: edit the configfile for your virtualhost-app (or subfolder-app), move the files and double check the permissions.

Zl.

Offline

Board footer

Powered by FluxBB