Problems downgrading php

TestUser

Verified User
Joined
Aug 26, 2011
Messages
219
Hi, currently i have PhP 5.5.9
i want to downgrade it to 5.2.17
when i do
./build php n
i get this error
Code:
/usr/bin/ld: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.22-system.so)
/usr/bin/ld: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.22-system.so)
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_sockop_set_option':
xp_ssl.c:(.text+0xd95): undefined reference to `SSLv2_client_method'
xp_ssl.c:(.text+0xdc1): undefined reference to `SSLv2_server_method'
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
Version of linux
Code:
Linux version 3.2.0-4-amd64 ([email protected]) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.54-2
Debian version: 7.4
I have googeled A LOT (im not an expert) didnt find anything that would help.

Can anyone help me?
 
Last edited:
Don't you have openSSL compiled from the source on your system (instead of the default one which comes from OS packages)?

Please try (you just need to do that once):
Code:
cd /usr/local/directadmin/custombuild
mkdir -p custom/ap2
cp -pf configure/ap2/configure.php5 custom/ap2/configure.php5
perl -pi -e "s#[COLOR=#000000]--enable-wddx[/COLOR]#[COLOR=#000000]--enable-wddx\nperl -pi -e 's|[/COLOR]CPPFLAGS = -D_REENTRANT|CPPFLAGS = -D_REENTRANT -DTHREAD=1 -DOPENSSL_NO_SSL2|g' Makefile#g" custom/ap2/configure.php5

After the change "./build php n" should have no problems.
 
I did what you told me... bit the error is 100% same as before

Please try (you just need to do that once):
Code:
cd /usr/local/directadmin/custombuild
mkdir -p custom/ap2
cp -pf configure/ap2/configure.php5 custom/ap2/configure.php5
perl -pi -e "s#[COLOR=#000000]--enable-wddx[/COLOR]#[COLOR=#000000]--enable-wddx\nperl -pi -e 's|[/COLOR]CPPFLAGS = -D_REENTRANT|CPPFLAGS = -D_REENTRANT -DTHREAD=1 -DOPENSSL_NO_SSL2|g' Makefile#g" custom/ap2/configure.php5

After the change "./build php n" should have no problems.
 
May you post the contens of your options.conf file? You might be using suPHP.
 
options.conf
Code:
#PHP settings. default_php possible values - 5 or 6, php5_ver - 5.2, 5.3, 5.4 or 5.5
default_php=5
php5_ver=5.2
php5_cli=yes
php5_cgi=no
php6_cli=no
php6_cgi=no
php_ini=no
#Possible values - recommended or dist
php_ini_type=recommended
ioncube=no
zend=yes

#Possible values - 5.0, 5.1, 5.5, 5.6
mysql=5.1
mysql_inst=no
mysql_backup=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups
mysql_force_compile=no

#Possible values - 1.3, 2.0, 2.2, 2.4
apache_ver=2.2
secure_htaccess=no
harden-symlinks-patch=yes

#Web applications
phpmyadmin=yes
phpmyadmin_ver=3
atmail=no
squirrelmail=no
roundcube=yes
uebimiau=no

#Mail options
exim=yes
eximconf=yes
clamav=yes
mailman=no
spamassassin=yes
mail-header-patch=yes
dovecot=yes

#Statistics
awstats=yes
webalizer=yes

#FTP options
proftpd=yes
pureftpd=no

#Jailed shell
jail=no

#Autoconf/automake/libtool options
autoconf=yes
automake=yes
libtool=yes
curl=yes

#new version of zlib and libxml2 (experts only)
new_zlib=no
new_xml2=no
new_pcre=no
new_suphp=no

#Custombuild options
custombuild=1.2
autover=no
bold=yes
clean=yes
cleanapache=no
clean_old_tarballs=no
clean_old_webapps=yes
downloadserver=files.directadmin.com

#Cron settings
cron=no
cron_frequency=daily
[email protected]
notifications=yes
da_autoupdate=no
updates=no
webapps_updates=yes

#Cloudlinux settings
cloudlinux=no
cagefs=no
old_apr_util=no
What i want is:
1. downgrade php to 5.2.17
OR
1. install additional php 5.2.17
2. have te option for each user to have 5.2.17 OR already installed 5.5.9 PHP version


versions.txt (regarding php)
Code:
php5:5.2.17:04d321d5aeb9d3a051233dbd24220ef1
php5-mail:5.2.17:dc0fdf6da64947285d98dc46a2e350fa
 
Okay, please give the following a try then (and ignore the previous post), this one needs to be executed only one also :):
Code:
cd /usr/local/directadmin/custombuild
mkdir -p custom/ap2
rm -f custom/ap2/configure.php5
cp -pf configure/ap2/configure.php5 custom/ap2/configure.php5
perl -pi -e 's#./configure#patch -p1 < ../disable_SSLv2_for_openssl_1_0_0.patch\n./configure#g' custom/ap2/configure.php5
wget -O disable_SSLv2_for_openssl_1_0_0.patch https://raw.githubusercontent.com/omega8cc/boa/master/aegir/patches/disable_SSLv2_for_openssl_1_0_0.patch

Now "./build php n" should always work (if the patch does the trick on your system).
 
Last edited:
Back
Top