To go ahead with my question, I shall give a brief introduction about myself, on what I know and what I don't know.
I am a web developer, mainly developing with php/mysql for the last year. My development was completely on Micro$oft, but now I am trying to completly switch over to Linux and have choosen Mandrake over Redhat simply because of the GUI being better than RedHat.
ok going on to my question, I am trying to configure my user account to run apache/php/mysql/progresql through my user account.
Right now I can put stuff in /var/www/html and I can access them via http://localhost
What I am trying to do is be able to put my contents into my home directory /home/jeffery/public_html and access it via http://localhost/~jeffery <-- being my username on the machine
I have used Drake Wizard from Control Panel and configured my Web Server for this purpose. Then I created a folder named public_html in my home directory /home/jeffery/public_html I have then put a php file in that folder and tried to access it via http://localhost/~jeffery/phpinfo.php but all I get is:
QUOTE
Forbidden
You don't have permission to access /~jeffery/index.htm on this server.
You don't have permission to access /~jeffery/index.htm on this server.
I check my log file in /var/log/httpd and here is the last line:
QUOTE
[Thu Oct 02 23:36:35 2003] [error] [client 127.0.0.1] (13)Permission denied: access to /~jeffery/phpinfo.php denied
The config file under /etc/httpd/conf/commonhttpd.conf reads like this:
QUOTE
### Common server configuration
#
User apache
Group apache
#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents.
#
ServerAdmin root@localhost
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
# DO NOT MODIFY THIS ONE, USE httpd.conf and httpd-perl.conf
#DocumentRoot /var/www/html
#
# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# permissions.
#
# Also, for security, we disable indexes globally
#
#<Directory />
# Options -Indexes FollowSymLinks
# AllowOverride None
#</Directory>
#Restricted set of options
<Directory />
Options -All -Multiviews
AllowOverride None
<IfModule mod_access.c>
Order deny,allow
Allow from all
</IfModule>
</Directory>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>
#
User apache
Group apache
#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents.
#
ServerAdmin root@localhost
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
# DO NOT MODIFY THIS ONE, USE httpd.conf and httpd-perl.conf
#DocumentRoot /var/www/html
#
# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# permissions.
#
# Also, for security, we disable indexes globally
#
#<Directory />
# Options -Indexes FollowSymLinks
# AllowOverride None
#</Directory>
#Restricted set of options
<Directory />
Options -All -Multiviews
AllowOverride None
<IfModule mod_access.c>
Order deny,allow
Allow from all
</IfModule>
</Directory>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>
Thats not all of it... I just pasted the first few configuration options thinking my configuration might be wrong in one of them. Or perhaps I have to change some user permissions for the folder/files/group etc in my home directory ?
If anyone have any experience in this area, your help would be much appreciated. Thanks
Jeffery