LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-19-2005, 08:44 PM   #1
cackley
LQ Newbie
 
Registered: Dec 2004
Distribution: Red Hat Enterprise Linux 4, Solaris 10
Posts: 12

Rep: Reputation: 0
SELinux & PHP


Whenever I have SELinux enabled in RHEL4 on my web server, PHP files cannot be accessed and a 403 is encountered. To have it work, I can simply disable SELinux. I'd prefer to have it active and let PHP applications run. I'd appreciate any suggestions...thanks.
 
Old 02-19-2005, 09:14 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i believe you should just need to enable httpd_enable_cgi within the selinux configuration, but seeing as all i really know about selinux is a talk i attended by one of the lead developers the other day, i can't really say much more, and as you ahve probably seen, google isn't much more use. this did look relatively useful. http://www.redhat.com/archives/fedor.../msg00097.html you i think you'll will also want to check the security context of the php directory too, with ls -z
 
Old 02-19-2005, 11:17 PM   #3
cackley
LQ Newbie
 
Registered: Dec 2004
Distribution: Red Hat Enterprise Linux 4, Solaris 10
Posts: 12

Original Poster
Rep: Reputation: 0
I have CGI scripting enabled...it hasn't helped the issue.

That post from the Fedora list seemed useful; however, I have no idea what 'httpd_php_t' is or how to utilize that to allow PHP scripts to execute.
 
  


Reply



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
PHP exec() and shell_exec() and SELinux Cottsay Programming 1 06-25-2005 09:47 PM
SELinux + Apache + MySQL + PHP SADANA Fedora 6 03-28-2005 10:06 PM
SElinux & php4 & interbase & apache maxut Linux - Security 0 03-15-2005 04:57 AM
Linux 2.6.11 selinux & grsec info jtshaw Linux - Security 4 03-02-2005 08:21 PM
Apache/PHP problems with Selinux enforcing.... maxie_fc3 Fedora 0 01-11-2005 07:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:05 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