LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-22-2009, 09:56 PM   #1
raport
Member
 
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, 10:29 PM   #2
gergely89
Member
 
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:
Quote:
chmod a+w A
linux

Last edited by gergely89; 02-27-2009 at 11:45 PM.
 
Old 02-23-2009, 01:00 AM   #3
raport
Member
 
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.

127.0.0.1 - - [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"
 
  


Reply


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 06:46 PM
403 Forbidden patpawlowski Linux - Newbie 1 04-26-2005 10:20 AM
403 Forbidden JanDeMan Linux - Newbie 7 04-12-2004 04:02 PM
403 forbidden Flawless Slackware 4 03-04-2003 08:24 AM
403 Forbidden??? morbo Linux - Networking 11 07-04-2002 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:10 PM.

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