Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-22-2009, 08:56 PM   #1
Registered: Aug 2004
Location: Legazpi City, Philippines
Posts: 77

Rep: Reputation: 15
403 forbidden

dear friends,

i'm using fedora 9 on my hp laptop. i created a folder named A inside a folder called pcnation in /var/www/html/. i made a php script that downloads the file uploaded to A folder. when i run the php script, a 403 forbidden message appeared in the page.

how can i solve this problem so that i can enable downloading of file?

thank you for your kind attention.

God bless!
Old 02-22-2009, 09:29 PM   #2
Registered: Feb 2009
Posts: 100

Rep: Reputation: 21
My first guess is that the web server software does not have permissions to access your folder A. If you have created as a common user and the web server is not set to act on behalf of that user, then you have to give write permissions to directory A, something like:
chmod a+w A

Last edited by gergely89; 02-27-2009 at 10:45 PM.
Old 02-23-2009, 12:00 AM   #3
Registered: Aug 2004
Location: Legazpi City, Philippines
Posts: 77

Original Poster
Rep: Reputation: 15
thanks gergeley89!

i actually tried chmod 777 /var/www/html/pcnation/A and all the paths going to folder A. but the problem persists. i tried your suggestion chmod a+w /var/www/html/pcnation/A. but still the problem is there.

may i show you the error log where folder upload is equivalent to folder A. - - [23/Feb/2009:17:30:14 +0800] "GET /pcnation/upload/ HTTP/1.1" 403 328 "http://localhost/pcnation/pcnation_customer.php" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5) Gecko/2008043010 Fedora/3.0-0.60.beta5.fc9 Firefox/3.0b5"


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
403 Forbidden 1veedo Linux - Newbie 2 11-27-2005 05:46 PM
403 Forbidden patpawlowski Linux - Newbie 1 04-26-2005 09:20 AM
403 Forbidden JanDeMan Linux - Newbie 7 04-12-2004 03:02 PM
403 forbidden Flawless Slackware 4 03-04-2003 07:24 AM
403 Forbidden??? morbo Linux - Networking 11 07-04-2002 10:17 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration