RE: [PHP] Problems installing smarty on a shared host
| From: | Pablo Gosse | Date: | Sat, 25 Sep 2004 22:41:52 +0000 |
| Subject: | RE: [PHP] Problems installing smarty on a shared host | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-197839@lists.php.net to get a copy of this message | ||
[snip]
> I'm trying to place the smarty directories outside my webroot to
> minimize security risks, however given my experiences thus far, I
don't
> really see that being possible.
It should not matter, unless open_basedir is in effect, but that would
be another error. I would check if the directories are right, you can
start by using relative path.
[/snip]
It appears I've found the problem.
I used passthru(ls -l [dirname],$ret) to start reading from /home all
the way up through the following:
/home/
/home/virtual/
/home/virtual/site357/
/home/virtual/site357/fst/
and all returned complete directory listings and a return code of 0.
Now, when I read through
/home/virtual/site357/fst/var/
/home/virtual/site357/fst/var/www/
/home/virtual/site357/fst/var/www/html/
I see the files that I would see when I SSH in and ls -l the following
paths:
/var/
/var/www/
/var/www/html/
HOWEVER, when I attempt the passthru call on
/home/virtual/site357/fst/home/
I get no results back, and the return code is 1. So it appears scripts
running under the apache user cannot access that folder or anything
beneath it
Any ideas?
Cheers and TIA.
Pablo