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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-25-2005, 01:23 AM
|
#1
|
Member
Registered: Feb 2004
Location: Chaska, MN
Distribution: Fedora
Posts: 195
Rep:
|
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
|
|
|
06-25-2005, 06:02 AM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
It could be to do with SELinux. Are you using it?
Where are you trying to save the file?
|
|
|
06-25-2005, 11:05 AM
|
#3
|
Member
Registered: Feb 2004
Location: Chaska, MN
Distribution: Fedora
Posts: 195
Original Poster
Rep:
|
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.
|
|
|
06-25-2005, 11:54 AM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
It depends on the policy you are using. Take a look at this document:
http://fedora.redhat.com/docs/selinux-apache-fc3/
|
|
|
06-25-2005, 02:39 PM
|
#5
|
Member
Registered: Feb 2004
Location: Chaska, MN
Distribution: Fedora
Posts: 195
Original Poster
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 01:38 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|