Web Hosting Talk







View Full Version : PHP4.06.pkg upgrade to 4.1.0


cyrusTvirus
02-14-2002, 04:23 PM
Hey Experts,

I have a question, one client from my company is runnning a dedicated cobalt raq4. He installed php4.06 from a pkg file. Now he wants to upgrade to the newest (4.1.0) version.

He asked me to do the job.

What is the best way to go to short ? Uninstall and then reinstall ?
Or is there anyway to upgrade the existing installation ? Basically he only needs MYSQL support from php.

Any pointers ?

Thanks Robbert

jks
02-14-2002, 04:41 PM
Originally posted by cyrusTvirus
Hey Experts,

I have a question, one client from my company is runnning a dedicated cobalt raq4. He installed php4.06 from a pkg file. Now he wants to upgrade to the newest (4.1.0) version.

He asked me to do the job.

What is the best way to go to short ? Uninstall and then reinstall ?
Or is there anyway to upgrade the existing installation ? Basically he only needs MYSQL support from php.

Any pointers ?

Thanks Robbert

If he just needs MySQL support, then why not simply enable that? (is most probably just removing a comment-char in the php.ini file)

If you want to upgrade, just do so - there should be no need to remove the existing installation (as long as you put the new installation in the same prefix - that way you would simply overwrite the old installation). Remember to stop/start Apache afterwards.

cyrusTvirus
02-14-2002, 04:48 PM
Yeah I told him that but he insists on upgrading to 4.1.0 well here in our company the customer is the king.

I will give it a shot first on a non production server first.
Robbert

jks
02-14-2002, 04:56 PM
Originally posted by cyrusTvirus
Yeah I told him that but he insists on upgrading to 4.1.0 well here in our company the customer is the king.

I will give it a shot first on a non production server first.
Robbert

It should give no problems... (I've done it a few billion times already) :-)

phuture
02-15-2002, 03:41 AM
Originally posted by jks


It should give no problems... (I've done it a few billion times already) :-)

Attention if there is something like webalizer which uses old GD with GIF support installed. There could be a few of problems, because as far as I know php 4.1.1 comes with new GD and no GIF support anymore.

Regards,
Felix-Gabriel

mlx
02-15-2002, 06:53 AM
Originally posted by phuture


Attention if there is something like webalizer which uses old GD with GIF support installed. There could be a few of problems, because as far as I know php 4.1.1 comes with new GD and no GIF support anymore.

Regards,
Felix-Gabriel

PHP uses the GD version which is installed. So if you don't install a new GD version there should be no problem.

cyrusTvirus
02-15-2002, 10:50 AM
I just visited the website www.php.net and saw a patch to help upgrading from 4.06 tot 4.1.0 (http://www.php.net/do_download.php?download_file=php-4.0.6-to-4.1.1.patch.gz)

Did someone here already tried it out ??

I did try to upgrade the php installation from pkg to 4.1.0 but get some errors.

Is someone willing to share the steps he/she took to get it running properly ? MYSQL support needed and old GD support rest is optional i think the old GD support is needed because of the webalizer requirement.....

Robbert

mlx
02-15-2002, 11:17 AM
I would just download the source and compile it myself. It's quite easy, the following worked fine for me:

./configure --libdir=/usr/local --with-apxs=/usr/sbin/apxs --with-gd --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib --enable-magic-quotes --enable-track-vars --with-regex=system --with-pgsql=shared --disable-debug --with-zlib --with-mysql --enable-ftp
make
make install

Note: remove "--with-png(...) --with-jpeg(...) --with-zlib(...)" if you did not install these libraries.

After that re-start Apache and it should work.

I still don't get what this has to do with GD and webalizer. If you have a webalizer version up and running which needs GIF support, do not update GD, just install PHP.
If you update GD, re-install webalizer to use PNG.

ellebi
02-15-2002, 12:16 PM
An how-to for php 4.1.0 with PDF, MySQL, FTP, GD (JPEG & PNG) was posted to the cobalt-users list.
You can get it here:
http://list.cobalt.com/pipermail/cobalt-users/2001-December/058330.html

You can also find an how to install PHP (4.1.1) with Zen Optimizer, JPEG, PNG, IMAP, FTP, TTF support at the following address:
http://www.uk2raq.com/raqfaq/raqfaqshow.php?faq=43