Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

how to configure Apache to run PHP from public_html?

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Project/Program Management Newsletter  
Author Message
seba

External


Since: Oct 08, 2003
Posts: 1



(Msg. 1) Posted: Wed Oct 08, 2003 1:01 pm
Post subject: how to configure Apache to run PHP from public_html?
Archived from groups: alt>apache>configuration (more info?)

Hello,

as far as I know, I have to add a special <directory/> - Entry to my
httpd.conf if I want to allow my users to run PHP-scripts from their
home-directories. So I have created a folder named "public_html" in each
/home/<username>/. The goal is that each user´s public_html should be
reachable by the URL:
http://myserver.con/~username
Normally I am using SuSe Linux 8.2 where everything is done
automatically Wink. This time I had to install the apache.rpm on a RedHat
7.1 box where these things are not that simple. So I cannot figure out,
how this <directory/>-entry must look like. Can anybody send me his
configuration? I would be quite thankful.

thanx
Sebastian

--
Rent a PACS GmbH - Multimediale Archive
Dipl. Inform (FH) Sebastian Galonska
Zwinglistr. 38
D-10555 Berlin

Fon.: +49 30 3980665-14
Fax.: +49 30 3980665-19

seba.TakeThisOut@rentapacs.de
ICQ: 11524202

 >> Stay informed about: how to configure Apache to run PHP from public_html? 
Back to top
Login to vote
user2431

External


Since: Aug 21, 2003
Posts: 23



(Msg. 2) Posted: Wed Oct 08, 2003 3:39 pm
Post subject: Re: how to configure Apache to run PHP from public_html? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Sebastian Galonska" <seba.DeleteThis@rentapacs.de> escribió en el mensaje
news:bm0gbs$h8ver$1@ID-20796.news.uni-berlin.de...
 > as far as I know, I have to add a special <directory/> - Entry to my
 > httpd.conf if I want to allow my users to run PHP-scripts from their
 > home-directories. So I have created a folder named "public_html" in each
 > /home/<username>/. The goal is that each user´s public_html should be
 > reachable by the URL:
<font color=purple> > <a style='text-decoration: underline;' href="http://myserver.con/~username</font" target="_blank">http://myserver.con/~username</font</a>>

I don't think you need any special config for PHP if it already works
globally.
This is the default configuration taken form httpd.conf:

LoadModule userdir_module modules/mod_userdir.so
AddModule mod_userdir.c

#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid. This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden" message.
#
# See also: <a style='text-decoration: underline;' href="http://httpd.apache.org/docs/misc/FAQ.html#forbidden" target="_blank">http://httpd.apache.org/docs/misc/FAQ.html#forbidden</a>
#
#<IfModule mod_userdir.c>
# UserDir public_html
#</IfModule>

#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
# AllowOverride FileInfo AuthConfig Limit
# 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>
#</Directory>


I can tell you it works for me just this way (you probably don't need the
Directory directives unless you want to user a folder called "web" instead
of "public_html".
Check filesystem permissions!<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: how to configure Apache to run PHP from public_html? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
How to configure Apache to work with ISS - I've installed Apache 2 on Windows 2000 Professional and it's called alpha (my computer name) and I can also access it via http://localhost Now I want to install IIS 5 on the same machine, so it can work together with Apache, so that I can access Apache...

How to configure log files ? - Hello, Sorry for my poor english, I'm french. My Apache 1.3.19 (running on Red Hat), is configured to create one log file per virtual site (it's described in the httpd.conf). But the log I get are not complete enougth, I'd like to have the referrer, the....

how to configure Apache2 with mod_mono - I' working on Debian, and i have problems how to configure apache2, to work with mod_mono. Sitation is something like that, mono is installed from deb, also apache2. I tried to confugure mod_mono-0.4 and 0.3.7, but without success. I was working on..

Configure upload directory - Hello, I would like to know what/where I can configure the httpd.conf to tell apache where the upload directory is. By upload I mean files I transmit via GET or POST method in HTML. I'm using Apache2. Thx SvT

Configure error on Debian - Hello all, When I try to compile my Apache source, I get the following error: [/quote] + Warning: Configuring Apache with default settings. + This is probably not what you really want. + Please read the README.configure and INSTALL files + firs...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]