You are not logged in.

#1 2014-09-21 05:05:39

colegui
Member
From: Castellón de la Plana, Spain.
Registered: 2014-07-20
Posts: 64

[SOLVED] Xampp: Error 403

Hello, I installed xampp from AUR and the installation was successful, but I followed the steps to the wiki:

https://wiki.archlinux.org/index.php/Xampp

....and i can not hosting files outside the htdocs directory. When I run a script such as php outside the htdocs directory get the following error:

...."Error 403"..., "....Permission Denied...."


Here my setup :

 # nano /opt/lampp/etc/httpd.conf 

<Directory "/home/hector/webs">
    Options Indexes FollowSymLinks ExecCGI Includes
    AllowOverride All
    Require all granted
</Directory>



<IfModule alias_module>
   .................................................................................
    #
    ScriptAlias /cgi-bin/ "/opt/lampp/cgi-bin/"

Alias /daw /home/hector/webs/

</IfModule>

..Also change conf file for apache (the archlinux wiki does not mention anything about this but I'm trying..).

# nano /opt/lampp/apache2/conf/httpd.conf

Alias /daw "/home/hector/webs"
#Alias /bitnami "/opt/lampp/apache2/htdocs"

<Directory "/home/hector/webs">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

..After :

# /opt/lampp/lampp restart

Restarting XAMPP for Linux 1.8.3-4...
XAMPP: Stopping Apache...ok.
XAMPP: Stopping MySQL...ok.
XAMPP: Stopping ProFTPD...ok.
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.

Apparently everything is Ok, but unfortunately it does not work me ...Any ideas or suggestions ?


http://i273.photobucket.com/albums/jj22 … b63e07.png


Edit: Solution

Change the permission from my "home".

# chmod 755 /home/hector

drwxr-xr-x 38 hector users  4096 sep 21 12:35 hector

Originally my home permissions were these:

drwx------ 38 hector users  4096 sep 21 12:35 hector


Best Regards.

Last edited by colegui (2014-09-21 10:55:45)

Offline

#2 2014-09-22 12:51:08

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: [SOLVED] Xampp: Error 403

You stated this was fixed, but for future reference, the Wiki had the answer as well:

https://wiki.archlinux.org/index.php/Ap … irectories


Matt

"It is very difficult to educate the educated."

Offline

Board footer

Powered by FluxBB