You are not logged in.

#1 2009-02-13 02:54:21

kingheaven
Member
From: China
Registered: 2009-02-13
Posts: 17
Website

Why do I always get a 403 problem when using LAMP ?

Hey , guys

I just installed Archlinux recently , and want to configure an development enviroment for my php developing.I followed the wiki page in wiki.archlinux.org to install lamp and configure it, but why do I always get a 403 permission problem ?

Configuration in /etc/httpd/conf/httpd.conf :

#LoadModule unique_id_module modules/mod_unique_id.so
#LoadModule ssl_module modules/mod_ssl.so
#LoadModule cgi_module modules/mod_cgi.so
#LoadModule cgid_module modules/mod_cgid.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule userdir_module modules/mod_userdir.so

I disabled these module , i don't need them.
Configuration in /etc/httpd/conf/extra/httpd-vhost.conf :

NameVirtualHost *:80
NameVirtualHost *:81
NameVirtualHost *:88
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "/home/icefox/webroot"
    <Directory "/home/icefox/webroot">
        Options FollowSymlinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    ErrorLog "/home/icefox/webroot/log/error_log"
</VirtualHost>

<VirtualHost *:81>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "/home/icefox/vidiscript/app/webroot"
    <Directory "/home/icefox/vidiscript/app/webroot">
        Options FollowSymlinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    ErrorLog "/home/icefox/webroot/log/error_log"
</VirtualHost>

<VirtualHost *:88>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "/home/icefox/phpMyAdmin"
    <Directory "/home/icefox/phpMyAdmin">
        Options FollowSymlinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    ErrorLog "/home/icefox/webroot/log/error_log"
</VirtualHost>

What i want to do is setup 3 vhost by using ports :
port 80 for common php page
port 81 for my recent project
port 88 for my phpmyadmin

when I vist http://localhost:80/index.html , i got a 403 permission , then I checked the error_log , i found this :

[Fri Feb 13 10:34:37 2009] [crit] [client 127.0.0.1] (13)Permission denied: /home/icefox/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

I have no ideas about this . When I ust this configuration on Ubuntu and Fedora , it goes well . I dont know why it happends to get this problem on archlinux .

P.S. : I have added a httpd user , do I need to add a httpd group ?


Archlinux is the best choice for using linux !!!

Offline

#2 2009-02-13 03:43:42

kingheaven
Member
From: China
Registered: 2009-02-13
Posts: 17
Website

Re: Why do I always get a 403 problem when using LAMP ?

Can any body help me ?


Archlinux is the best choice for using linux !!!

Offline

#3 2009-02-13 04:03:34

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Why do I always get a 403 problem when using LAMP ?

kingheaven wrote:
[Fri Feb 13 10:34:37 2009] [crit] [client 127.0.0.1] (13)Permission denied: /home/icefox/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

That seems like your problem there - I'm guessing the http user can't access the /home/icefox/ path

Offline

#4 2009-02-13 05:45:29

kingheaven
Member
From: China
Registered: 2009-02-13
Posts: 17
Website

Re: Why do I always get a 403 problem when using LAMP ?

fukawi2 wrote:
kingheaven wrote:
[Fri Feb 13 10:34:37 2009] [crit] [client 127.0.0.1] (13)Permission denied: /home/icefox/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

That seems like your problem there - I'm guessing the http user can't access the /home/icefox/ path

Hello , fukawi2
Thanks for your help , you made me realized that , I did change the permission for /home/icefox directory.

What I did for resolving this problem is , modify the /home/icefox permission , make icefox group can access this folder and add http user to icefox group , then , problem resolved.

thanks , fukawi2 !


Archlinux is the best choice for using linux !!!

Offline

Board footer

Powered by FluxBB