Big huge php problems upon upgrading via DirectAdmin

lingstar

New member
Joined
Apr 11, 2005
Messages
2
Hello,

I have upgraded my server via DirectAdmin. That's the good news.

The bad news is the PHP it installed is 4.3.10 and several user scripts are tailored to 4.3.3.

Is there a way to install PHP 4.3.3?

Thank you,

Barbt
 
I am helping Barbt with this server. The situation is upgrading from one server with 4.3.3 to the directadmin server with 4.3.10 has made the scripts run slower. All the hardware is better and faster that the old.

While being able to install 4.3.3 with directadmin is an option actually the better option would be if someone could tells us what might need to be changed because of switching from 4.3.3 to 4.3.10.

I know that is a generic question with no specifics. But I thought there might be some common "gotchas" in upgrading from one to another.

Thanks
Floyd
 
In these minor upgrades, everything should just run fine. I would recommend install zend, ./build zend

I don't know what kind of scripts he's running and what they do. Changing server and changing php version are two things to consider. Maybe it's the server, maybe the mysql installation that's lagging.

Check your server load.
 
The server load is next to nothing and the scripts do not use mysql.
 
Installed zend ? Don't know if it are heavy scripts.

And in wich way is it loading slow ? All pages or just the PHP files as you mentioned. Check the load (top) and refresh a couple of times when opening a php page. If there aren't any strange load changes, than I would check your network settings of your NIC. Downloading of the internet from your server is going fast ?? or slow??

Just some things to check ;)
 
Ok I installed zend and it seemed to help a little but I don't know why since the php scripts we are using do not use zend.


The script does a search on a remote site to obtain data and builds a cache. After the cache is built for that keyword that was searched for the page loads fast using the same script.

The problems seems to be in getting the data from the remote site. We have set up two servers on the same network one with php 4.3.3 without directadmin and one with php 4.3.10 with directadmin. the one with 4.3.3 is consistantly faster than 4.3.10 despite the 4.3.3 being heavily loaded.

The load on the 4.3.10 is always under 1. Its an active server being accessed all the time.
 
Zend (theoretically) should help the performance of all scripts processed by PHP... the scripts don't need to be modified in order to utilize the engine, they'll automatically use it.

I would be very surprised if the issue is PHP. I'd be more concerned with the apache configuration (what version is on the old machine? Have you looked for differences in httpd.conf?) and with the network (what DNS is being used by the new machine? Can the remote machine easily resolve the new machine's name/IP? etc.)

I would probably test this by moving the remote data to the local filesystem in order to remove the network from the equation.
 
Here is a link to the problem that better describes it. It is specific to 4.3.10 and 5.0.3.

http://www.vbstyles.com/forum/showthread.php?t=445

"This cause of this slow-down has been identified as a problem with the unserialize() function in PHP."

So the question then becomes will php 4.3.11 fix it and will my directadmin installation eventually update itself to to 4.3.11?


Thanks for your help.
 
Indeed you're right. It is known with the unserialization. Only way to fix it is using the Snapshot version (not stable ones currently like 4.3.11).

I know PHP5 does have some improvements in OO way, so I don't know if the current 5 version will help, but that if it isn't a compatiblilty problem with scripts on your server could bridge you until the next stable.
 
Back
Top