FreeBSD 7.x and openssl 1.0.0 issue recompiling php-4.4.9

sistemi_clab

Verified User
Joined
Jun 20, 2012
Messages
3
Hi,
I'm using directadmin 1.41.1 and yesterday I upgraded freetype (as suggested by directadmin itself, from 2.4.9 to 2.4.10).
At the end of recompiling freetype (build update_versions) it suggested to recompile php with build php n.
I'm using php4 as a cli/apache module and php5 as cgi (as you can see from options):
#PHP settings. default_php possible values - 4 or 5, php5_ver - 5.2 or 5.3
default_php=5
php5_ver=5.2
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
zend=no

I've yet installed openssl from ports:
openssl-1.0.0_5 SSL and crypto library

but php failed to recompile due to an openssl issue:
/usr/local/directadmin/custombuild/php-4.4.9/ext/openssl/openssl.c:182: error: expected specifier-qualifier-list before 'LHASH'

/usr/local/directadmin/custombuild/php-4.4.9/ext/openssl/openssl.c:343: error: expected declaration specifiers or '...' before 'LHASH'

/usr/local/directadmin/custombuild/php-4.4.9/ext/openssl/openssl.c: In function 'php_openssl_config_check_syntax':

/usr/local/directadmin/custombuild/php-4.4.9/ext/openssl/openssl.c:348: error: 'config' undeclared (first use in this function)
[...]


Googling around I found this link:
http://www.xinfoline.com/2012/01/11...-4-4-9-and-openssl-version-1-0-0-and-greater/
with an openssl.c patched.

I had to change the openssl.c in the php-4.4.9.tar.gz archive (and I had to modify versions too) and everything went fine.

Could you fix this problem, please (I'm thinking to all future upgrades :/)?

Thanks in advance,
d.
 
It's appening again

After few hours (I think it's because of some cron script) I have the same problem:
root/# /usr/local/etc/rc.d/httpd restart
Stopping httpd: [ FAILED ]
Starting httpd: [ OK ]
root/# ps ax | grep -i httpSyntax error on line 35 of /usr/local/directadmin/data/users/00000001/httpd.conf:
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration

81226 p0 D+J 0:00.00 grep -i http
root/#

So I had to:
root/usr/local/directadmin/custombuild# ./build rewrite_confs
Using XXXXXXXXX for your server IP
Writing data to /etc/httpd/conf/extra/httpd-suphp.conf
Done.
Restarting apache.
Stopping httpd: [ OK ]
Remaining processes: 1
Stopping httpd: [ FAILED ]
Starting httpd: [ OK ]
root/usr/local/directadmin/custombuild#

Any hint?

d.
 
You are running an insecure operating system and insecure php. Time to upgrade outdated things.
 
Back
Top