LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   mail error in centOS, SMTP possibly php-curl error (https://www.linuxquestions.org/questions/linux-server-73/mail-error-in-centos-smtp-possibly-php-curl-error-922952/)

GreggT 01-09-2012 08:17 PM

mail error in centOS, SMTP possibly php-curl error
 
So I recently started to run new forum software, of course, it broke something.. maybe I broke something

I run the latest version of all the php repo's
I run the latest version of CentOS
I'm using IPB forum software (no one on that site has any slightest idea how to fix this)

Could not open a socket to the SMTP server (13:Permission denied)

that's the error I get, now I believe the first half is the php error and the second half: (13:Permission denied) is an apache error, but IPB combines them

so I have an apache permission error, possibly.. also I noticed a fedora server I run for other stuff has:

Quote:

Protocols dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp
In Curl for phpinfo.. but my CentOS server looks like this:

Quote:

Protocols tftp, ftp, telnet, dict, ldap, ldaps, http, file, https, ftps, scp, sftp
so I am thinking if I get curl to have the smtp support it might work? I have no idea.. I'm in between noob linux user and pro.. some things I know how to do extremely well and others I have no idea about, this is one of them.

I have been searching for about 3 days, in those 3 days I have acquired all the information above, I am unable to find how to install php-curl with smtp support, I haven't been able to find it anywhere on google nor yum search

thank you for any help..

dkm999 01-18-2012 01:35 PM

I have foutht with error 13 quite a bit. Does your CentOS server run with SELinux enabled? If so, you may need to set the security context of the folder that should contain the SMTP socket so that Apache can complete its mail transfer.

HTH

GreggT 01-18-2012 04:26 PM

Quote:

Originally Posted by dkm999 (Post 4578106)
I have foutht with error 13 quite a bit. Does your CentOS server run with SELinux enabled? If so, you may need to set the security context of the folder that should contain the SMTP socket so that Apache can complete its mail transfer.

HTH

Yes I had a guy help me with it 2 days ago finally fixed it... it was a combination of SELinux and a little apache permission (mostly SELinux) the error was obvious after SELinux was disabled it told me exactly what file to give permission to (within my forums directory, so it was forum specific not linux)

looks like you were headed in the exact way he headed too so probably would have fixed it, thanks a bunch I'm good now


All times are GMT -5. The time now is 04:39 PM.