For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > November 2005 > PHP in "UserDir"ectories









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP in "UserDir"ectories
Julien Bonastre

2005-11-04, 3:56 am

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------
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com