Koozali.org: home of the SME Server

php read access to folders

Jean-Guy

php read access to folders
« on: May 03, 2001, 06:44:07 PM »
Hi, I setup my website on my e-smith machine and it works great but when I install php scripts they tell me to put the include files out of the http path (I assume not under the ./http folder) so I put them in ./files (each website has cgi-bin,files and http) but nothing seems to be able to access those files I even tried putting the .htpassword files there and .htaccess doesn't work. in the config paths I tried pointing the the full name /home/e-smith/files/primary/files/.htpassword but this doesn't work, my question is does e-smith restrict the apache www server from these folders?

Jean-Guy

jason

Re: php read access to folders
« Reply #1 on: May 03, 2001, 09:09:59 PM »
the files directory is only for ftp access.  I dont believe you will be able to use php there.  I would assume that you could create a directory under the http directory "php" or whatever and that should work.

Alejandro

Re: php read access to folders
« Reply #2 on: May 04, 2001, 02:19:09 AM »
Try to upload files via ftp rather  than copying there,
the place could be ok (in files or in cgi-bin) I would upload them to cgi-bin folder
Alejandro

jason

Re: php read access to folders
« Reply #3 on: May 07, 2001, 10:06:26 AM »
if you put your php files under the files directory you will not be able to access them via http , that directory if for ftp only.   I just installed phpBB under the http directory in a folder called forum and it works fine.  You just need to make sure that the file that needs to be accessed will have permissions of 644, atleast that is what was required of phpBB, and that is a php file.

hope this helps.
Jason