Php 4.4.2 is finally out

Just want to post this, but a little bit slower then you, lol.

Here is the update steps:

#cd /usr/local/directadmin/customapache
#wget {ADDRESSOF PHP 4.4.2}
#./build clean
#vi ./build
>> change PHPVERSION to 4.4.2

If you have a coffee and prefer compiling all PHP packages such as curl, zlib, etc. use:

#./build php y

If you have no coffee or falling asleep, use:

#./build php n

Both will work, but someone may want to use the 1st to ensure php "linkage" between those packages.

Now restart apache:
#/etc/init.d/apache restart

Done!

:p
 
Last edited:
yeah they should have rlsed this quicker because of the 4.4.1 problems but good news it is out now.
 
I been trying to find a changelog but zend site is poor and cant find it.

Anyone know the diff between zend 1.5.x and 1.6.x and is 1.6.x only needed for php5?
 
backusnetcom said:
I advise you to run this under 'screen' (yum install screen + screen ./build php y). If you ssh crashes then you have a chance to continue installing..
And if you didn't, the whole server is messed up.
Now I'm unable to access it trough SSH and directadmin panel is also not accesible.
I'm waiting for my DC now to enable the SSH part again, so I can finish the compile and restart apache.
A hard reboot didn't work either (so that's no option).
So it's a wise idea to keep the second screen.
 
And if you didn't, the whole server is messed up.
Now I'm unable to access it trough SSH and directadmin panel is also not accesible.
I'm waiting for my DC now to enable the SSH part again, so I can finish the compile and restart apache.
A hard reboot didn't work either (so that's no option).
So it's a wise idea to keep the second screen.

Are "./build php y" causing your system to mess up?

:eek:
 
indeed, the command ./build php y caused my ssh to hang.
It closed the connection and I was unable to get back in again.

It's mhash by the way that is causing trouble.

Done. Making mhash-0.9.1...
Trying to make mHash...
make all-recursive
make[1]: Entering directory `/usr/local/directadmin/customapache/mhash-0.9.1'
Making all in lib
make[2]: Entering directory `/usr/local/directadmin/customapache/mhash-0.9.1/lib'
if /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT mhash.lo -MD -MP -MF ".deps/mhash.Tpo" \
-c -o mhash.lo `test -f 'mhash.c' || echo './'`mhash.c; \
then mv -f ".deps/mhash.Tpo" ".deps/mhash.Plo"; \
else rm -f ".deps/mhash.Tpo"; exit 1; \
fi
mhash.c:105: warning: initialization from incompatible pointer type
mhash.c:105: warning: initialization from incompatible pointer type
mhash.c:105: warning: initialization from incompatible pointer type
mhash.c:107: warning: initialization from incompatible pointer type
mhash.c:107: warning: initialization from incompatible pointer type
mhash.c:107: warning: initialization from incompatible pointer type
mhash.c:112: warning: initialization from incompatible pointer type
mhash.c:112: warning: initialization from incompatible pointer type
mhash.c:112: warning: initialization from incompatible pointer type
mhash.c:117: warning: initialization from incompatible pointer type
mhash.c:117: warning: initialization from incompatible pointer type
mhash.c:117: warning: initialization from incompatible pointer type
mhash.c:122: warning: initialization from incompatible pointer type
mhash.c:122: warning: initialization from incompatible pointer type
mhash.c:122: warning: initialization from incompatible pointer type
mhash.c:127: warning: initialization from incompatible pointer type
mhash.c:127: warning: initialization from incompatible pointer type
mhash.c:127: warning: initialization from incompatible pointer type
mhash.c:127: warning: initialization from incompatible pointer type
mhash.c:132: warning: initialization from incompatible pointer type
mhash.c:132: warning: initialization from incompatible pointer type
mhash.c:132: warning: initialization from incompatible pointer type
mhash.c:132: warning: initialization from incompatible pointer type
mhash.c:134: warning: initialization from incompatible pointer type
mhash.c:134: warning: initialization from incompatible pointer type
mhash.c:134: warning: initialization from incompatible pointer type
mhash.c:134: warning: initialization from incompatible pointer type
mhash.c:139: warning: initialization from incompatible pointer type
mhash.c:139: warning: initialization from incompatible pointer type
mhash.c:139: warning: initialization from incompatible pointer type
mhash.c:139: warning: initialization from incompatible pointer type
mhash.c:141: warning: initialization from incompatible pointer type
mhash.c:141: warning: initialization from incompatible pointer type
mhash.c:141: warning: initialization from incompatible pointer type
mhash.c:141: warning: initialization from incompatible pointer type
mhash.c:146: warning: initialization from incompatible pointer type
mhash.c:146: warning: initialization from incompatible pointer type
mhash.c:146: warning: initialization from incompatible pointer type
mhash.c:148: warning: initialization from incompatible pointer type
mhash.c:148: warning: initialization from incompatible pointer type
mhash.c:148: warning: initialization from incompatible pointer type
mhash.c:150: warning: initialization from incompatible pointer type
mhash.c:150: warning: initialization from incompatible pointer type
mhash.c:150: warning: initialization from incompatible pointer type
and then it kills the connection trough ssh.
 
Last edited:
I will forward this thread to John, see if he has any suggestions.
 
Hello,

One thing you could try, if you are updating the other libraries, is to compile them on their own, eg:
Code:
./build mhash
Then do "./build php n" afterwards. I don't think that any errors the script itself would cause ssh or your system to hang, my thoughts are that it's either the high system load, or memory usage that is causing it (possible overheat and shutdown to protect the cpu). Hence, doing the compiled once at a time with a short break in between might solve the issue.

We used to have a build system that had a tendancy to overheat and die. The workaround was whever compiling, I used "ctrl-z" to pause the script.. wait a while, then run "fg" to continue. (when paused, you also get a command prompt if you want to run anything in the meantime).

Possibly running the script though "nice" will slow it down too:
Code:
nice -n 19 ./build php n
John
 
I tried to update to version 4.4.2 but it gives me the following error:

In file included from /usr/local/directadmin/customapache/php-4.4.2/ext/mhash/mhash.c:30:
/usr/local/include/mhash.h:4:30: mutils/mincludes.h: No such file or directory
In file included from /usr/local/include/mutils/mtypes.h:24,
from /usr/local/include/mhash.h:6,
from /usr/local/directadmin/customapache/php-4.4.2/ext/mhash/mhash.c:30:
/usr/local/include/mutils/mutils.h:124: error: syntax error before "n"
/usr/local/include/mutils/mutils.h:127: error: syntax error before "n"
/usr/local/include/mutils/mutils.h:129: error: syntax error before "c"
/usr/local/include/mutils/mutils.h:130: error: syntax error before "n"
/usr/local/include/mutils/mutils.h:131: error: syntax error before "n"
/usr/local/include/mutils/mutils.h:132: error: syntax error before "n"
/usr/local/include/mutils/mutils.h:134: error: syntax error before "mutils_strlen"
/usr/local/include/mutils/mutils.h:134: error: syntax error before '*' token
/usr/local/include/mutils/mutils.h:135: error: syntax error before '*' token
/usr/local/include/mutils/mutils.h:135: error: syntax error before '*' token
/usr/local/include/mutils/mutils.h:136: error: syntax error before '*' token
/usr/local/include/mutils/mutils.h:136: error: syntax error before '*' token
/usr/local/include/mutils/mutils.h:137: error: syntax error before '*' token
/usr/local/include/mutils/mutils.h:137: error: syntax error before '*' token
/usr/local/include/mutils/mutils.h:138: error: syntax error before '*' token
/usr/local/include/mutils/mutils.h:138: error: syntax error before '*' token
/usr/local/include/mutils/mutils.h:139: error: syntax error before '*' token
/usr/local/include/mutils/mutils.h:140: error: syntax error before '*' token
/usr/local/include/mutils/mutils.h:141: error: syntax error before '*' token
/usr/local/include/mutils/mutils.h:143: error: syntax error before "mutils_word32swap"
/usr/local/include/mutils/mutils.h:143: error: syntax error before "x"
/usr/local/include/mutils/mutils.h:144: error: syntax error before '*' token
/usr/local/include/mutils/mutils.h:144: error: syntax error before '*' token
/usr/local/include/mutils/mutils.h:146: error: syntax error before '*' token
/usr/local/include/mutils/mutils.h:146: error: syntax error before '*' token
/usr/local/include/mutils/mutils.h:147: error: syntax error before '*' token
In file included from /usr/local/include/mhash.h:6,

from /usr/local/directadmin/customapache/php-4.4.2/ext/mhash/mhash.c:30:
/usr/local/include/mutils/mhash.h:52: error: syntax error before "mhash_count"
/usr/local/include/mutils/mhash.h:53: error: syntax error before "mhash_get_block_size"
/usr/local/include/mutils/mhash.h:54: error: syntax error before '*' token
/usr/local/include/mutils/mhash.h:57: error: syntax error before '*' token
/usr/local/include/mutils/mhash.h:61: error: syntax error before "mhash_init"
/usr/local/include/mutils/mhash.h:65: error: syntax error before "mhash_cp"
/usr/local/include/mutils/mhash.h:65: error: syntax error before "from"
/usr/local/include/mutils/mhash.h:69: error: syntax error before "thread"
/usr/local/include/mutils/mhash.h:73: error: syntax error before "thread"
/usr/local/include/mutils/mhash.h:74: error: syntax error before "thread"
/usr/local/include/mutils/mhash.h:74: error: syntax error before ')' token
/usr/local/include/mutils/mhash.h:75: error: syntax error before "thread"
/usr/local/include/mutils/mhash.h:79: error: syntax error before "mhash_get_hash_pblock"
/usr/local/include/mutils/mhash.h:80: error: syntax error before "tmp"
/usr/local/include/mutils/mhash.h:84: error: syntax error before "mhash_hmac_init"
/usr/local/include/mutils/mhash.h:84: error: syntax error before "uint32_t"
/usr/local/include/mutils/mhash.h:85: error: syntax error before "thread"
/usr/local/include/mutils/mhash.h:85: error: syntax error before ')' token
/usr/local/include/mutils/mhash.h:86: error: syntax error before "thread"
/usr/local/include/mutils/mhash.h:87: error: syntax error before "thread"
/usr/local/include/mutils/mhash.h:91: error: syntax error before "thread"
/usr/local/include/mutils/mhash.h:92: error: syntax error before "mhash_restore_state_mem"
/usr/local/include/mutils/mhash.h:96: error: syntax error before "mhash_keygen"
/usr/local/include/mutils/mhash.h:97: error: syntax error before "uint64_t"
/usr/local/include/mutils/mhash.h:102: error: syntax error before "mhash_keygen_ext"
/usr/local/include/mutils/mhash.h:102: error: syntax error before "KEYGEN"
/usr/local/include/mutils/mhash.h:106: error: syntax error before '*' token
/usr/local/include/mutils/mhash.h:108: error: syntax error before "mhash_get_keygen_salt_size"
/usr/local/include/mutils/mhash.h:109: error: syntax error before "mhash_get_keygen_max_key_size"
/usr/local/include/mutils/mhash.h:110: error: syntax error before "mhash_keygen_count"
/usr/local/directadmin/customapache/php-4.4.2/ext/mhash/mhash.c: In function `zm_startup_mhash':
/usr/local/directadmin/customapache/php-4.4.2/ext/mhash/mhash.c:71: warning: assignment from incompatible pointer type
/usr/local/directadmin/customapache/php-4.4.2/ext/mhash/mhash.c: In function `zif_mhash_get_hash_name':
/usr/local/directadmin/customapache/php-4.4.2/ext/mhash/mhash.c:132: warning: assignment from incompatible pointer type
/usr/local/directadmin/customapache/php-4.4.2/ext/mhash/mhash.c: In function `zif_mhash':
/usr/local/directadmin/customapache/php-4.4.2/ext/mhash/mhash.c:147: error: syntax error before "td"
/usr/local/directadmin/customapache/php-4.4.2/ext/mhash/mhash.c:165: error: `td' undeclared (first use in this function)
/usr/local/directadmin/customapache/php-4.4.2/ext/mhash/mhash.c:165: error: (Each undeclared identifier is reported only once
/usr/local/directadmin/customapache/php-4.4.2/ext/mhash/mhash.c:165: error: for each function it appears in.)
/usr/local/directadmin/customapache/php-4.4.2/ext/mhash/mhash.c:170: error: syntax error before numeric constant
/usr/local/directadmin/customapache/php-4.4.2/ext/mhash/mhash.c: In function `zif_mhash_keygen_s2k':
/usr/local/directadmin/customapache/php-4.4.2/ext/mhash/mhash.c:197: error: syntax error before "keystruct"
/usr/local/directadmin/customapache/php-4.4.2/ext/mhash/mhash.c:225: error: `keystruct' undeclared (first use in this function)
make: *** [ext/mhash/mhash.lo] Error 1

I did ./build mhash before recompiling. Any thoughts?
 
Broke Webmail

Hi there

After upgrading php to php4.4.2 the UEbimiau webmail is broken, gove the login error:

ERROR (2): Header may not contain more than a single header, new line detected. (/var/www/html/webmail/inc/inc.php:169)

Anyone is experiencing this?
 
Re: Broke Webmail

jodasi said:
Hi there

After upgrading php to php4.4.2 the UEbimiau webmail is broken, gove the login error:

ERROR (2): Header may not contain more than a single header, new line detected. (/var/www/html/webmail/inc/inc.php:169)

Anyone is experiencing this?
hoops
me too:eek:

just change the line 169 to
PHP:
Header("Expires: Wed, 11 Nov 1998 11:11:11 GMT");
header("Cache-Control: no-cache");
header("Cache-Control: must-revalidate");
 
Last edited:
Back
Top