qwerty

Well-Known Member
Jan 21, 2003
215
2
168
More importantly, PHP 4.3.8 is out too and it's a security release. I hope Nick's busy testing that right now
 

XPerties

Well-Known Member
Apr 10, 2003
401
0
166
New Jersey, USA
qwerty said:
More importantly, PHP 4.3.8 is out too and it's a security release. I hope Nick's busy testing that right now

I totally agree.
 

Sinewy

Well-Known Member
May 15, 2004
364
1
168
Sydney, Australia
cPanel Access Level
DataCenter Provider
and i say dont bother trying to compile php 5.0.0 as i just tried twice and it wont compile because layer1's copy of libxml or whatever is too old. then i tried with an updated copy of libxml and it says cant find libxml blah blah.
 

DJ_Max

Member
Nov 18, 2003
15
0
151
Chicago, IL- USA
Sinewy said:
and i say dont bother trying to compile php 5.0.0 as i just tried twice and it wont compile because layer1's copy of libxml or whatever is too old. then i tried with an updated copy of libxml and it says cant find libxml blah blah.
Dang, thats too bad, I guess I have to wait til cPanel fixes this. For the most part I've been using PHP5 RC versions on another server. It has tons of features, and is more powerful then 4.
 

Dreamer

Well-Known Member
Jun 23, 2003
129
0
166
Bulgaria
DJ_Max said:
Dang, thats too bad, I guess I have to wait til cPanel fixes this. For the most part I've been using PHP5 RC versions on another server. It has tons of features, and is more powerful then 4.
Have you experienced any errors with 'old scripts' when running on PHP 5?
 

DJ_Max

Member
Nov 18, 2003
15
0
151
Chicago, IL- USA
Dreamer said:
Have you experienced any errors with 'old scripts' when running on PHP 5?
Not with any of my scripts, as I never used the long arrays, like $HTTP_POST_VARS, instead i use $_POST, and so on.

The only way i could see you having problems, is by default, PHP5 has long arrays set to OFF. So $HTTP_POST_VARS, $HTTP_GET_VARS, $HTTP_SERVER_VARS, etc.. won't work. Unless you go into the php.ini and set it to ON.

But for the most part, ever since RC versions, scripts like phpBB have gotten around this, and still have support for PHP3, as thats the only reason some scripts still use long arrays.
 

r2d3

Member
Jul 5, 2003
9
0
151
London
php5 killed httpd

I just updated to PHP5 on my dev box and one production server and had no trouble at all but then tried the next production box and apache now won't start.

using easyapache i get:

Waiting for httpd to restart..............finished.

22418 22413

httpd has failed, please contact the sysadmin.
./build install
Waiting for httpd to restart..............finished.

22453 22448

httpd has failed, please contact the sysadmin.

If i try to kill all the http processes and then restart with httpd restart i get no decent error messages. It looks like it started but didn't.

[Wed Jul 14 18:42:06 2004] [warn] NameVirtualHost xx.xx.xxx.xxx:80 has no VirtualHosts
/etc/init.d/httpd start: httpd started

/etc/init.d/httpd restart: httpd not running, trying to start
[Wed Jul 14 18:41:53 2004] [warn] NameVirtualHost xx.xx.xxx.xxx:80 has no VirtualHosts
/etc/init.d/httpd restart: httpd started

Not sure if the no virtualhosts warning could be the problem. I have tried to revert to PHP 4.3.8 but httpd still won't start with the same error.

Anyone have any ideas?
 

r2d3

Member
Jul 5, 2003
9
0
151
London
The problem is definitely not the "has no virtual hosts" warning because i have just corrected that (it was just a bad line in the httpd.conf) But appache still won't start :-(

I have recompiled apache with the easyapache script and PHP 4.3.8 but no luck:

service httpd restart
/etc/init.d/httpd restart: httpd restarted

Before i upgarded to PHP5 everything was all working fine.

I am a very unhappy guy right now. Anyone have any advice?
 

pyrosols

Registered
Jun 3, 2004
1
0
151
Apache will not start after php5 install

I upgraded to php5 and apache stopped working.. 'Apparently' the old php4 module can not co-exist with the new php5 module.

If you have similar circumstances I suggest the following:

-Edit you httpd.con file

pico /etc/httpd/conf/httpd.conf

- Find the line "LoadModule php4_module libexec/libphp4.so" and comment it out by putting a # sign infront of it or just delete it.

- Find the line "AddModule mod_php4.c" and comment it out by putting a # sign infront of it or just delete it.

- Restart Apache

service httpd restart

Thats not the exact sequence of steps I followed but it should work. I have php 5 up and running now.