PHP in "UserDir"ectories
| From: | Julien Bonastre | Date: | Fri, 04 Nov 2005 06:50:38 +0000 |
| Subject: | PHP in "UserDir"ectories | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-16790@lists.php.net to get a copy of this message | ||
I'm having some issues getting PHP files to run under a Userdir
I'm using Apache2.0.55, PHP5.0.6-dev [ http://aries.the-spectrum.org/phpinfo.php ] CGI on OpenBSD3.7 i386 release.
Just off the bad I decided to uncomment the UserDir examples in httpd.conf which results in:
=====
UserDir public_html
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options Indexes FollowSymLinks Indexes SymLinksIfOwnerMatch
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
DirectoryIndex index.php index.html
</Directory>
======
Being OpenBSD like most *nixes the directories do match up of course [meaning /home/~username does exist]
I've played with most of the permissions but still can't seem to find what it is I am supposed to do, possibly some directives? as to enable php files to be executed in the UserDir's..
The UserDir DOES work, as in, if I place some .html files i can view them, it just seems its not wanting to handle .php files..
Is there some particular setup/directives anybody here knows off to enable php scripting in userdirs? [or in the Directory directive?]
Thanks a bunch people!
---oOo---
Allowing users to execute CGI scripts in any directory should only be considered if:
...
You have no users, and nobody ever visits your server.
...
Extracted Quote: Security Tips - Apache HTTP Server
---oOo---
------oOo---------------oOo------ Julien Bonastre [The_RadiX]
The-Spectrum Network CEO
ABN: 64 235 749 494
julien@the-spectrum.org
www.the-spectrum.org
------oOo---------------oOo------