473,756 Members | 7,817 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Solutions for can't use mail() in php 4.3.11 in Redhat Fedora 3 when SElinux is enabled

Looks like this is a common issue:

If you installed linux Fedora 3 with the default configuration and latest
patches, you will have Apache/2.0.53 (Fedora) and PHP 4.3.11 in your box.

Without any change you can use sendmail, that means you can use mail under
Terminal, but probably you can not use mail() in php.

The error message in maillog will looks like:
"SYSERR(APACHE) , Can't write, ... Permission denied."

I spent several days to search Google and manual, no result. With the help
of ¨¢lvaro G. Vicario in this group, the solution is SELinux. Simply disable
SELinux or Check the "Disable SELinux protection for httpd daemon" in
SElinux config solves the problem within 1 second.

Thanks Alvaro.

Not sure if this will effect FC4 or not. I remember the php mail() works in
my FC4(php5), but I can not remember during the linux install did I disable
the SELinux or not. But looks like this is SELinux thing not PHP's so the
version of PHP will not effect this. I have deleted the FC4 so I can not try
now.

Ben
Toronto, Canada
Aug 30 '05 #1
0 1504

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2898
by: razorfold | last post by:
Hi, I've been trying to run gpg through proc_open() and have failed all weekend. I keep getting this error from stderr: "/usr/bin/gpg: error while loading shared libraries: cannot restore segment prot after reloc: Permission denied" Im running php 4.3.11 on fedora 3. Here is the method i've been debugging. It should just run '/usr/bin/gpg --version' and display the
7
5575
by: atlasyeo | last post by:
Hi, my first time posting on a newsgroup. anyway, let's cut to the chase. I'm trying to migrate mysql database form one server to another server. So I copied the data from /var/lib/mysql to the other one.. and use INSERT INTO from the old database to the new one..so the Top level 'mysql' database has all the correct users and password and priviledge. however, when one of the php website trying to load..it'll say
3
1694
by: Ben Xia | last post by:
I am programming a website with php+linix+mysql+apache, I used 2 days to fighting with the php's mail() function. This is a new linux Fedora 3 system, clean install. Apache/2.0.53 (Fedora) PHP 4.3.11 Sendmail works fine from the linux system, I mean in linux, I can send mail out.
1
1828
by: Geoff Blake | last post by:
I'm new to linux and I'm trying to set up a LAMP server using Fedora 4 I installed all the relevant packages and have Apache serving static pages ok, however I am unable to access MySql. PHPinfo() tells me that PHP was built using "--without mysql" in the configure command. Is there a logical reason why they would do this? Will all PHP packages be built like this - how will I know without going through an install?
4
2316
by: D. Dante Lorenso | last post by:
This isn't entirely PG related, but... Does anyone know what the natural upgrade path from RedHat 9 is? I'm wondering if anyone on the PostgreSQL team is working with redhat to package and bundle versions of PostgreSQL for the latest redhat. Is there going to be a RedHat 10? Or are we all supposed to choose a path of RH Enterprise vs Fedora Core? I have about 10 to 20 Redhat 9 machines in dev/qa/production that
4
2660
by: Philip Wright | last post by:
Can we install the admin client for DB2 7.2 on Fedora Core 4? Thanks, PW
8
1606
by: David Lee | last post by:
Hi, all I got the following code from http://builder.com.com/5100-6370_14-5079969.html, but it can't compile, neither can I figure out how to fix it. Anyone pls give me an explanation? 1 #include <string> 2 #include <sstream> 3 #include <iostream>
1
3397
by: Phil Sherman | last post by:
A recent HD failure and next year's first quarter release of Red Hat's EL5 made me decide to temporarily use FC6 on my sandbox system, an IBM Thinkpad T40. UDB 8.1 (FP14) and a UDB 9 Express-C were successfully installed after resolving some problems. Fedora Core 4 is mentioned in the UDB install documentation as a acceptable base for development systems and it appears that FC6 will support running DB2. 1. Neither UDB version will...
5
15588
by: Brian | last post by:
Hi I have a problem in opening url using 'file'. I searched many other discussion groups and tried suggestions, but could not resolve this problem. e.g <?php $myfile = file('http://google.com'); foreach ( $myfile as $vals){
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9873
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9713
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5142
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3806
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3359
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.