Access forbidden 403 error in xampp

Posted by Ramvignesh on Ask Ubuntu See other posts from Ask Ubuntu or by Ramvignesh
Published on 2014-07-29T16:07:12Z Indexed on 2014/08/24 22:33 UTC
Read the original article Hit count: 369

Filed under:
|
|
|

I am very new to xampp. I have made a fresh xampp install with the following commands.

sudo su
cd /tmp
wget bit.ly/1cmyrUo -O xampp-32bit.run
chmod 777 ./xampp-32bit.run
sudo ./xampp-32bit.run

Then I made a perl file to check whether my xampp works. The following is my sample.pl file content.

#!usr/bin/perl
print "content-type:text/html\n";
print(header());
use CGI qw(:standard);
print(start_html());
print "Hello. I am ram";
print(end_html());

After copying my perl file from /home/vicky/desktop to /opt/lampp/cgi-bin.

I started my xampp with the following command.

/opt/lampp/lampp start

Then I ran my sample.pl in the localhost with the help of the http://localhost/cgi-bin/sample.pl in my mozilla browser. I just got the following window. Error 403 window

I found only answers relating to the 'new security concept error' and 'accessing virtual host issue'.

I did came across an askubuntu query, a bid similar to that of mine. It had no answers but some comments. One comment suggested to change the file permissions. It directed to get help from here.

It said to change the directory permission as 755 and file permission as 644 to resolve this kind of issue. When I tried to do that, I came to know that my cgi-bin directory already had 755 permission and my sample.pl had 644 permission. I have no solutions now.


PostScript: I have attached the content of my /opt/lampp/apache2/conf/httpd.conf file. Hope this will help the answer-providers to understand my problem completely.

Alias /bitnami/ "/opt/lampp/apache2/htdocs/"
Alias /bitnami "/opt/lampp/apache2/htdocs"

<Directory "/opt/lampp/apache2/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory> 

© Ask Ubuntu or respective owner

Related posts about server

Related posts about permissions