Suhosin php 5.3.11

ssgill

Verified User
Joined
May 9, 2012
Messages
168
Hello all, i am building my test server and trying to install php 5.3.11 and would like to have suhosin patch installed. So i used steps listed in this guide

options.conf

php5_cli=no
php5_cgi=yes

http://help.directadmin.com/item.php?id=275

versions.txt
php5:5.2.10:
php5-mail:5.2.10:
./build update_data
./build php n

Result

Wrote PEAR system config file at: /usr/local/php5/etc/pear.conf
You may want to add: /usr/local/php5/lib/php to your php.ini include_path
/usr/local/directadmin/custombuild/php-5.3.10/build/shtool install -c ext/phar/phar.phar /usr/local/php5/bin
ln -s -f /usr/local/php5/bin/phar.phar /usr/local/php5/bin/phar
Installing PDO headers: /usr/local/php5/include/php/ext/pdo/
PHP 5.3.10 with suPHP Installed.
Writing data to /etc/httpd/conf/extra/httpd-suphp.conf
Done.
Rewriting all users httpd.conf files, please wait...
Debug mode. Level 10

dataskq: command: action=rewrite&value=httpd
Restarting apache.
Stopping httpd: [ OK ]
Starting httpd: [ OK ]


/usr/local/etc/php5/cgi/php.ini
include_path = ".:/php/includes:/usr/local/php5/lib/php"
extension=suhosin.so

when i do php -v i get this message
PHP Warning: PHP Startup: suhosin: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP 5.3.10 (cli) (built: May 11 2012 11:44:37)


Any ideas how to get this working. Thanks in advance.
 
Hello,

If you want to use PHP 5.3 you should run this instead:

Code:
cd /usr/local/directadmin/custombuild
./build set php5_ver 5.3
./build php d

Are you sure you want to use patch? Or extension would be enough?
 
Hello,

If you want to use PHP 5.3 you should run this instead:

Code:
cd /usr/local/directadmin/custombuild
./build set php5_ver 5.3
./build php d

Are you sure you want to use patch? Or extension would be enough?

I had mistake in post, PHP version desired would be 5.3.11 but i not able to find suphp extension for that so sticking with version 5.3.10.

versions.txt

php5:5.3.10:
php5-mail:5.3.10:

options.conf
php5_ver 5.3
php5_cli=no
php5_cgi=yes

Yes, i am planning to run sushion as extension.

Thanks
 
Back
Top