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.
PHP 5.3
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
Re: PHP 5.3
The atomic version has had that feature since 5.2.5 if I recall.
-
- Forum Regular
- Posts: 257
- Joined: Wed Aug 04, 2010 2:52 pm
Re: PHP 5.3
For serious? Where's the log?
-
- Forum Regular
- Posts: 257
- Joined: Wed Aug 04, 2010 2:52 pm
Re: PHP 5.3
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.
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
Re: PHP 5.3
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.
-
- Forum Regular
- Posts: 257
- Joined: Wed Aug 04, 2010 2:52 pm
Re: PHP 5.3
For everyone's enjoyment:
Adding to the mail section in /etc/php.ini
Then...
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!
Adding to the mail section in /etc/php.ini
Code: Select all
mail.log = /var/log/mail_php.log
Code: Select all
touch /var/log/mail_php.log
chown apache.apache /var/log/mail_php.log
service httpd restart
Is this an ART or an ASL patch? Either way, it's beautiful, thank you!
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
Re: PHP 5.3
I dont recall the original author, but that patch ultimately was merged into 5.3 as a main-line feature.