store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Wed Jun 19, 2013 7:05 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 7 posts ] 
Author Message
 Post subject: PHP 5.3
Unread postPosted: Thu Aug 05, 2010 12:05 pm 
Offline
Forum Regular
Forum Regular

Joined: Wed Aug 04, 2010 2:52 pm
Posts: 257
Howdy,

I know PHP 5.3 isn't live because of reasons, but I just figured I'd share why I think it would be great to get it up to speed.

1. Native ability to log mail() commands. This means you can track exactly what script on what domain is being used to spam from your system.
2. PHP 5.2 is no longer in development.

That's all.


Top
 Profile  
 
 Post subject: Re: PHP 5.3
Unread postPosted: Thu Aug 05, 2010 6:20 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7454
Location: earth
The atomic version has had that feature since 5.2.5 if I recall.


Top
 Profile  
 
 Post subject: Re: PHP 5.3
Unread postPosted: Thu Aug 05, 2010 7:38 pm 
Offline
Forum Regular
Forum Regular

Joined: Wed Aug 04, 2010 2:52 pm
Posts: 257
For serious? Where's the log?


Top
 Profile  
 
 Post subject: Re: PHP 5.3
Unread postPosted: Fri Aug 06, 2010 4:29 am 
Offline
Forum Regular
Forum Regular

Joined: Wed Aug 04, 2010 2:52 pm
Posts: 257
It would be great to find this. I see email going through the queue with a foreign from address, and unless the ASL qmail is an open relay, I think some PHP script is allowing this.


Top
 Profile  
 
 Post subject: Re: PHP 5.3
Unread postPosted: Fri Aug 06, 2010 9:27 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7454
Location: earth
Its actually the exact same feature that was merged into 5.3, so the same documentation applies. There are ini settings that let you either add a header into the message, or log the use of the function. One thing to be aware of with plesk is that the open_basedir restriction would effect where that log will go, so generally i add them on a per vhost.conf basis.


Top
 Profile  
 
 Post subject: Re: PHP 5.3
Unread postPosted: Fri Aug 06, 2010 1:03 pm 
Offline
Forum Regular
Forum Regular

Joined: Wed Aug 04, 2010 2:52 pm
Posts: 257
For everyone's enjoyment:

Adding to the mail section in /etc/php.ini

Code:
mail.log = /var/log/mail_php.log


Then...

Code:
touch /var/log/mail_php.log
chown apache.apache /var/log/mail_php.log
service httpd restart


It works great. I'm not seeing any open_basedir restrictions.

Is this an ART or an ASL patch? Either way, it's beautiful, thank you!


Top
 Profile  
 
 Post subject: Re: PHP 5.3
Unread postPosted: Fri Aug 06, 2010 1:09 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7454
Location: earth
I dont recall the original author, but that patch ultimately was merged into 5.3 as a main-line feature.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 7 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group