[request] php mail header

Hi All,

After applying the patch, do we need to rebuild the all custom apache or ./build php is enough.

Thanks in advance.
Neo . . . :)
 
For anyone using my mail header patch, kindly download the new release patch which fixed one potential security risk. Thanks.
 
choon said:
For anyone using my mail header patch, kindly download the new release patch which fixed one potential security risk. Thanks.
thanks!
wait for your 4.4.4 version for a long time!
 
Hi,
Can some one tell me after patching, where i have to look to see who send email using script and find the address of the script ?
 
Thanks scsi

I managed to add the patch successfully in to direct-admin custombuild 2.0

1: Go to custombuild directory:
Code:
cd /usr/local/directadmin/custombuild

2: Edit build file
Code:
nano build

3: In doPhp_build() { Function Find tar xzf ${FILE} --no-same-owner, the line after that is echo "Done."; and the line after that is disable_asm_atomic

4: Add these lines right after echo "Done."; before disable_asm_atomic
Code:
PHPSTRINGVER=$(echo ${PHP_VER} | awk '{print substr($0,0,3)}')
wget http://choon.net/opensource/php/php-$PHPSTRINGVER.x-mail-header.patch
PHPSTRINGPATH=$(echo $(pwd));
cd php-${PHP_VER}
echo "====================================================";
patch -p1 < $PHPSTRINGPATH/php-$PHPSTRINGVER.x-mail-header.patch
echo "====================================================";
sleep 20
cd ..
rm -rvf php-$PHPSTRINGVER.x-mail-header.patch

I added sleep 20 to see if the patch successfully applied and two echos to see the patch better, but you can get rid of those

5: then save the file and exit and build php
Code:
./build php

6: Optional: if you need Zend, suhosin or ionCube loaders :
you need to set them to yes in options.conf file
Code:
./build zend
./build suhosin
./build ioncube
 
Last edited:
Back
Top