LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-25-2005, 01:23 AM   #1
Cottsay
Member
 
Registered: Feb 2004
Location: Chaska, MN
Distribution: Fedora
Posts: 195

Rep: Reputation: 31
Post FC3, PHP 4.3.9, and fopen PERMISSION DENIED


I've been using PHP for years with RedHat 9 - I recently switched to Fedora Core 3 and all of my scripts with fopen for write died...it says permission denied. Yes I CHMOD'd the file and the containing folder to 777 and it still won't work. Someone said it might have to do with SELinux but I dunno. I'm sure the scripts are fine - I even tried them on an old machine. PHP fopen's a file for read just fine. It just won't write. Is there a .htaccess file or something in httpd.conf that I am missing?

Thanks much!

cottsay
 
Old 06-25-2005, 06:02 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
It could be to do with SELinux. Are you using it?

Where are you trying to save the file?
 
Old 06-25-2005, 11:05 AM   #3
Cottsay
Member
 
Registered: Feb 2004
Location: Chaska, MN
Distribution: Fedora
Posts: 195

Original Poster
Rep: Reputation: 31
RedHat 9 didn't have anything to do with SELinux. I just switched to Fedora about 3 months ago. I have no idea what SELinux does but I did a full installation with SELinux enabled. I have no idea how to control SELinux either.
 
Old 06-25-2005, 11:54 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
It depends on the policy you are using. Take a look at this document:
http://fedora.redhat.com/docs/selinux-apache-fc3/
 
Old 06-25-2005, 02:39 PM   #5
Cottsay
Member
 
Registered: Feb 2004
Location: Chaska, MN
Distribution: Fedora
Posts: 195

Original Poster
Rep: Reputation: 31
Alright - I set SELinux into permissive mode and the write worked. SELinux is the problem. Is there any way I can fix it JUST for HTTPD without setting SELinux to permissive?
 
  


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
fc3 /proc/net permission denied adem0rdna Fedora 15 05-25-2005 11:08 PM
java n fc3, error permission denied AVD_ZM Linux - Software 1 05-23-2005 03:46 AM
PHP fopen question ? antony_csf Programming 2 02-15-2005 05:16 AM
Uploading files using PHP giving Permission Denied error MatthewG Programming 4 05-27-2004 03:38 PM
File Permission Error in PHP fopen() function tuka Linux - Software 2 08-12-2003 08:16 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:53 AM.

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