Forum Moderators: phranque
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
Order allow,deny
Allow from all
</Directory>
when i open the [lcolhost,...] i got the error:
403 forbidden:
Forbidden
You don't have permission to access / on this server.
i check the /var/log/httpd/ for errors, the error was asking for .htaccess file to read, so i crated one in the html directory:
Options +Includes
AddType text/html shtml
AddHandler server-parsed shtml
Options +ExecCGI
AddHandler cgi-script cgi pl
now there is the same error when trying to open the [localhost:...]
403 forbidden
and the /var/log/httpd/error is at the time:
[Tue Nov 21 07:04:47 2006] [crit] [client ::1] (13)Permission denied: /home/ahmad/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Tue Nov 21 07:06:34 2006] [crit] [client ::1] (13)Permission denied: /home/ahmad/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
these are the permissions:
drwxr-xr-x www users user_u:object_r:httpd_sys_content_t www
then:
-halZ www
drwxr-xr-x www users user_u:object_r:httpd_sys_content_t .
drwx------ ahmad ahmad system_u:object_r:user_home_dir_t ..
drwxr-xr-x www users user_u:object_r:httpd_sys_content_t html
then:
-rwxr-xr-x www users user_u:object_r:httpd_sys_content_t .htaccess
-rwxr-xr-x www users user_u:object_r:httpd_sys_content_t index.html
any one can help plase?
[edited by: jdMorgan at 4:39 am (utc) on Nov. 21, 2006]
[edit reason] Disabled smiley-faces in permissions list. [/edit]