Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

403 - Forbidden error

Posted on 2011-02-16
10
1,582 Views
Last Modified: 2012-05-11
Hello friends,

I am new to PHP world. I have gone through the below link and setup and lighthttpd and PHP server in windows XP.
http://www.winstonyw.com/2008/05/28/installing-lighttpd-and-php-on-windows/ 
After successfully restarting the server I can able to see the home page(index.html).
lastly i put testing.php in C:\Program Files\LightTPD\htdocs and after restarting the server i opened the browser and http://localhost/testing.php is giving "403 - Forbidden" error.

Please help me.
0
Comment
Question by:Sumanbabu
  • 5
  • 4
10 Comments
 
LVL 4

Expert Comment

by:andreizz
ID: 34905521
This may be from your .htaccess configuration, please post that so we can see.
You can find it in htdocs, it may be hidden.
0
 
LVL 4

Accepted Solution

by:
andreizz earned 125 total points
ID: 34905572
You should consider using Xampp instead of Lighthttpd, it's easier and better,
http://sourceforge.net/projects/xampp/files/XAMPP%20Windows/1.7.4/xampp-win32-1.7.4-VC6-installer.exe/download
or the light version: http://www.brothersoft.com/xampp-lite-164759.html

To see if your .htaccess file is the problem try renameing it so that the webserver will not use it.
0
 
LVL 2

Author Comment

by:Sumanbabu
ID: 34905604
.htaccess is not there in C:\Program Files\LightTPD\htdocs
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 2

Author Comment

by:Sumanbabu
ID: 34905633
as per requirement i need to use only LightHttpd :(
0
 
LVL 4

Expert Comment

by:andreizz
ID: 34905651
Check to see if the folder and file are not read-only, and search for the .htaccess file.
Put a txt file in the htdocs folder and try to access that.
0
 
LVL 2

Author Comment

by:Sumanbabu
ID: 34905690
yes, I created "hi.txt" and I am able to access http://localhost/hi.txt and can see the out put.
0
 
LVL 2

Author Comment

by:Sumanbabu
ID: 34905729
i just noticed while starting the lightHttpd i got the below warning

WARNING: unknown config-key: cgi.assign (ignored)

i have added the line "
cgi.assign = ( ".php" => "C:/php/php-cgi.exe" )" at the end of lighttpd-inc.conf
0
 
LVL 2

Author Comment

by:Sumanbabu
ID: 34905805
Thanks for your cooperation @andreizz.

 I deleted "mod_cgi" earlier, i put it back. Its working fine.

0
 
LVL 4

Expert Comment

by:andreizz
ID: 34906382
No problem, good luck!
0
 
LVL 8

Assisted Solution

by:rationalboss
rationalboss earned 125 total points
ID: 34907047
Change your installation directory to c:\lighttpd\htdocs.
The forbidden error might be caused by Windows restricting access to c:\Program Files\

This would also save you a lot from more headaches in the future, move it out of Program Files.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dynamic Dropdowns 15 32
Custom Wordpress Loop 22 38
Delete  php pages of a part of our site 8 32
Using Modal's in to Retrieve Data from MySql and Populate Forms 13 38
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question