PDA

View Full Version : Php 4.3.11



boonchuan
05-30-2005, 08:21 PM
Will Directadmin release an auto update or do we need to update the PHP ourselves?

toml
05-30-2005, 08:55 PM
Software like Apache, Php, Perl, Exim, ... all needs to be updated by the admin. One good side effect of that way, is you don't have to install it, until you are sure there won't be any problems for the upgrade. The prefered method of upgrade is to

cd /usr/local/directadmin/customapache
./build update
./build all
and follow all the prompts.

boonchuan
05-30-2005, 08:57 PM
Is it normally safe to do such updates on Directadmin?

toml
05-30-2005, 09:11 PM
Normally yes, but every so often you might run into a glitch. Also, if you use any 3rd party tools like mmcache, you need to take extra steps to make sure thing work properly after updating php. Other than that, things usually are pretty smooth, I always do a build on my test machine before updating live sites, just to be on the safe side.

boonchuan
05-30-2005, 09:13 PM
Normally my friends in the hosting industry always say if it is not spoilt , don't touch it , how true is it for the upgrade from 4.3.10 to 4.3.11? Crucial to update?

toml
05-30-2005, 09:20 PM
php is one of those things you really should update. Mostly because the latest versions contain security updates. You won't know it's broke until someone breaks into your server due to an unpatched application. Just read the Changelog and Release notes on the new version(s) and if they mention security update, it is a good idea to do the update, otherwise it is your call.

boonchuan
06-06-2005, 05:05 AM
I have done the steps but php -v still gives me 4.3.10?

plugin
06-06-2005, 05:34 AM
Originally posted by boonchuan
I have done the steps but php -v still gives me 4.3.10?

service httpd restart like the installer already told you to do :)

boonchuan
06-06-2005, 05:43 AM
Yeap I have done that.

plugin
06-06-2005, 07:33 AM
Are you sure you have downloaded the new phpversion + you have changed the php version in the 'build' file?

boonchuan
06-06-2005, 07:34 AM
I just did all below
cd /usr/local/directadmin/customapache
./build update
./build all

Anything I need to change?

toml
06-06-2005, 10:24 AM
Originally posted by boonchuan
I have done the steps but php -v still gives me 4.3.10?

php -v only reports on the cli version of php. Try creating a web page with a call to phpinfo() in it.

If that is reporting 4.3.10, then a few things to try, delete all the php files and directories in your customapache directory, then redo the build update and build all. If you are still seeing 4.3.10, make sure that the directory in customapache is 4.3.11, if it isn't then there is something else wrong with your build script.

plugin
06-06-2005, 10:40 AM
http://www.directadmin.com/forum/showthread.php?s=&threadid=7601

boonchuan
06-07-2005, 05:08 AM
Tried that it still give me 4.3.10


Originally posted by toml
php -v only reports on the cli version of php. Try creating a web page with a call to phpinfo() in it.

If that is reporting 4.3.10, then a few things to try, delete all the php files and directories in your customapache directory, then redo the build update and build all. If you are still seeing 4.3.10, make sure that the directory in customapache is 4.3.11, if it isn't then there is something else wrong with your build script.

toml
06-07-2005, 08:29 AM
Originally posted by boonchuan
Tried that it still give me 4.3.10

Are you sure your build script contains the version number 4.3.11? Did you check which php directory you have in your customapache directory?

boonchuan
06-07-2005, 08:43 AM
Sure

#####################################################
# User Variables

APACHE_VER=1.3.33
MODSSL_VER=2.8.22
APACHE2_VER=2.0.52
PHP_VER=4.3.11
GD_VER=2.0.33
#CURL_VER=7.12.2
CURL_VER=7.13.0
ZLIB_VER=1.2.2
PNG_VER=1.2.8
FRONTPAGE_VER=1.6.1
MCRYPT_VER=2.5.7
MODPERL_FILE=mod_perl-1.0-current.tar.gz
MODPERL2_FILE=mod_perl-2.0-current.tar.gz
MODPERL_DIR=mod_perl-1.29
MODPERL2_DIR=modperl-2.0
MHASH_VER=0.9.1

boonchuan
06-07-2005, 04:22 PM
Stupid me , the command should be

cd /usr/local/directadmin/customapache
./build clean
./build update
./build php

plugin
06-08-2005, 01:34 AM
hehehe didnt even look to that part ;)

macross7ra
06-26-2005, 08:24 PM
When i ./build php
it show me
checking for CRYPTO_free in -lcrypto... no
configure: error: libcrypto not found!

and i vi the config.log file..
it say

configure:17440: gcc -o conftest -g -O2 conftest.c -lcrypto -lresolv -lm -ldl -lnsl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err 1>&5
/usr/bin/ld: cannot find -lcom_err
collect2: ld returned 1 exit status
configure: failed program was:
#line 17429 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char CRYPTO_free();



what can i do now@@?
thx..><

toml
06-26-2005, 09:33 PM
Originally posted by macross7ra
When i ./build php
it show me
checking for CRYPTO_free in -lcrypto... no
configure: error: libcrypto not found!

and i vi the config.log file..
it say

configure:17440: gcc -o conftest -g -O2 conftest.c -lcrypto -lresolv -lm -ldl -lnsl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err 1>&5
/usr/bin/ld: cannot find -lcom_err
collect2: ld returned 1 exit status
configure: failed program was:
#line 17429 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char CRYPTO_free();



what can i do now@@?
thx..><
you need to install openssl. How to do that depends on the OS distro you are using. If you use yum, try:
yum install openssl
yum install openssl-devel

macross7ra
06-26-2005, 11:51 PM
Originally posted by toml
you need to install openssl. How to do that depends on the OS distro you are using. If you use yum, try:
yum install openssl
yum install openssl-devel

openssl
openssl-devel

already installed...
still get this error..

toml
06-27-2005, 09:29 AM
Sorry, I should have read your whole error before responding. You are missing libcom_err.so which is located in e2fsprogs on my system (CentOS 4.1).

macross7ra
06-27-2005, 12:02 PM
Originally posted by toml
Sorry, I should have read your whole error before responding. You are missing libcom_err.so which is located in e2fsprogs on my system (CentOS 4.1).

i using fedoar core 1
i installed e2fsprogs ..
still error..:(

toml
06-27-2005, 12:34 PM
Originally posted by macross7ra
i using fedoar core 1
i installed e2fsprogs ..
still error..:(
I think I remember reading that the libcom_err.so library does not ship with Fedora. Try searching for the compat-libcom rpm or something similar to that.

macross7ra
06-27-2005, 06:44 PM
Yeah^^..it is ok
after i install http://people.redhat.com/~nalin/testing/compat-libcom_err-0.0-0.src.rpm

albatroz
08-29-2005, 09:12 AM
Hi!
I tried to update php from version 4.3.9 to 4.3.11 according to the document
http://help.directadmin.com/item.php?id=26
however I got this error.

checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.
*** There was an error while trying to configure php. Check the configure.php file

Where can I find the config.log file?
My configure.php file seems normal.

Thanks in advance

toml
08-29-2005, 09:46 AM
The config.log will be in /usr/local/directadmin/customapache/php-4.3.11, at the very bottom, it should tell you why it failed.

albatroz
08-29-2005, 10:25 AM
This is an extract of what I got :(

................

configure:58970: gcc -o conftest -g -O2 -Wl,-rpath,/usr/kerberos/lib -L/usr/ke
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 58959 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_close();

int main() {
mysql_close()
; return 0; }
configure:59175: checking for mysql_error in -lmysqlclient
configure:59194: gcc -o conftest -g -O2 -Wl,-rpath,/usr/kerberos/lib -L/usr/ke
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 59183 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_error();

int main() {
mysql_error()
; return 0; }

toml
08-29-2005, 11:13 AM
It can't find your libmysqlclient.so file. Do you have MySQL-devel installed? You should also have MySQL-client and MySQL-server installed as well.

albatroz
08-29-2005, 11:59 AM
After updating, my webmail apps became broke.

I am getting these errors in squirrel and horde

*** Horde errors
Warning: Illegal offset type in /var/www/html/horde-2.2.6/lib/Registry.php on line 126

Warning: array_key_exists(): The second argument should be either an array or an object in /var/www/html/horde-2.2.6/lib/Registry.php on line 126

Warning: Illegal offset type in /var/www/html/horde-2.2.6/lib/Registry.php on line 132

Warning: Illegal offset type in /var/www/html/horde-2.2.6/lib/Registry.php on line 126

Warning: array_key_exists(): The second argument should be either an array or an object in /var/www/html/horde-2.2.6/lib/Registry.php on line 126

Warning: Illegal offset type in /var/www/html/horde-2.2.6/lib/Registry.php on line 132

Warning: Illegal offset type in /var/www/html/horde-2.2.6/lib/Registry.php on line 126

Warning: array_key_exists(): The second argument should be either an array or an object in /var/www/html/horde-2.2.6/lib/Registry.php on line 126

Warning: Illegal offset type in /var/www/html/horde-2.2.6/lib/Registry.php on line 132



** Squirrelmail errors **
Warning: Illegal offset type in /var/www/html/squirrelmail144/src/redirect.php on line 180

Warning: Illegal offset type in /var/www/html/squirrelmail144/src/redirect.php on line 181

Warning: Illegal offset type in /var/www/html/squirrelmail144/src/redirect.php on line 180

Warning: Illegal offset type in /var/www/html/squirrelmail144/src/redirect.php on line 181

Warning: Illegal offset type in /var/www/html/squirrelmail144/src/redirect.php on line 180

Warning: Illegal offset type in /var/www/html/squirrelmail144/src/redirect.php on line 181

Warning: Illegal offset type in /var/www/html/squirrelmail144/src/redirect.php on line 180

Warning: Illegal offset type in /var/www/html/squirrelmail144/src/redirect.php on line 181

Warning: Illegal offset type in /var/www/html/squirrelmail144/src/redirect.php on line 180

Warning: Illegal offset type in /var/www/html/squirrelmail144/src/redirect.php on line 181

Warning: Illegal offset type in /var/www/html/squirrelmail144/src/redirect.php on line 180

Warning: Illegal offset type in /var/www/html/squirrelmail144/src/redirect.php on line 181

Warning: Illegal offset type in /var/www/html/squirrelmail144/src/redirect.php on line 180

Warning: Illegal offset type in /var/www/html/squirrelmail144/src/redirect.php on line 181

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/squirrelmail144/src/redirect.php:180) in /var/www/html/squirrelmail144/src/redirect.php on line 157
*************

nobaloney
08-29-2005, 06:01 PM
Install the latest version of Zend Optimizer.

Search on the forums for some recent posts.

Jeff

webone
09-01-2005, 02:54 PM
Hi,

I'm running the latest version of DA 1.24.4 but my build script says that php is at 4.3.10:

APACHE_VER=1.3.33
MODSSL_VER=2.8.22
APACHE2_VER=2.0.52
PHP_VER=4.3.10
GD_VER=2.0.33
CURL_VER=7.12.2
ZLIB_VER=1.2.1
PNG_VER=1.2.7
FRONTPAGE_VER=1.6.1
MCRYPT_VER=2.5.7
MODPERL_FILE=mod_perl-1.0-current.tar.gz
MODPERL2_FILE=mod_perl-2.0-current.tar.gz
MODPERL_DIR=mod_perl-1.29
MODPERL2_DIR=modperl-2.0
MHASH_VER=0.9.1
ZZIP_VER=0.10.82
ZEND_VER=2.5.7

Should the build script be reading 4.3.11 for me to use ./build ./clean to update from 4.3.10 to 4.3.11?

Thanks!

GoranTornqvist
11-08-2005, 03:12 AM
Hey guys and gals,
I got the same problem on my FreeBSD box.

Get this error when doing configure for php-4.4.0:

checking for OpenSSL version... >= 0.9.6
checking for CRYPTO_free in -lcrypto... no
configure: error: libcrypto not found!

My config.log:

configure: failed program was:
#line 17679 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char CRYPTO_free();

int main() {
CRYPTO_free()
; return 0; }


I got OpenSSL and libcom_err.so:

bash-2.05b# ll /usr/lib/libcom_err.so*
lrwxrwxrwx 1 root wheel - 15B Jan 27 2004 /usr/lib/libcom_err.so@ -> libcom_err.so.2
-r--r--r-- 1 root wheel - 4K Oct 27 2003 /usr/lib/libcom_err.so.2

Any ideas what to do?

Thanks...

edit: get same thing on php 4.3.11

GoranTornqvist
11-08-2005, 05:19 AM
edit: wrong by me.
libcrypto.so is in /usr/lib

This is what I got, its identical to another server...

bash-2.05b# ll /usr/local/ssl/lib/
total 3638
drwxr-xr-x 3 root wheel - 512B Nov 8 14:01 ./
drwxr-xr-x 9 root wheel - 512B Nov 8 13:28 ../
-rw-r--r-- 1 root wheel - 1M Nov 8 13:28 libcrypto.a
-rw-r--r-- 1 root wheel - 1M May 26 15:21 libcrypto.a.backup
-rw-r--r-- 1 root wheel - 250K Nov 8 13:28 libssl.a
drw-r--r-- 2 root wheel - 512B Feb 1 2004 pkgconfig/


bash-2.05b# ll /usr/lib/libcrypt*
-r--r--r-- 1 root wheel - 33K Oct 27 2003 /usr/lib/libcrypt.a
lrwxrwxrwx 1 root wheel - 13B Jan 27 2004 /usr/lib/libcrypt.so@ -> libcrypt.so.2
-r--r--r-- 1 root wheel - 27K Oct 27 2003 /usr/lib/libcrypt.so.2
-r--r--r-- 1 root wheel - 1M Oct 27 2003 /usr/lib/libcrypto.a
lrwxrwxrwx 1 root wheel - 14B Jan 27 2004 /usr/lib/libcrypto.so@ -> libcrypto.so.3
-r--r--r-- 1 root wheel - 1000K Nov 8 14:13 /usr/lib/libcrypto.so.3
-r--r--r-- 1 root wheel - 999K Nov 8 14:13 /usr/lib/libcrypto.so.3.backup
-r--r--r-- 1 root wheel - 1M Oct 27 2003 /usr/lib/libcrypto_p.a

I've also tried --with-openssl without dir and tried setting LD_LIBRARY_PATH...no go.

Am I missing something here...?