PHP 5.1.2 Experience

Support/Development for PHP
indoracer
New Forum User
New Forum User
Posts: 3
Joined: Sat May 20, 2006 4:17 am

PHP 5.1.2 Experience

Unread post by indoracer »

I followed the instructions in this post about upgrading PHP to version 5. I used the unstable repo instead and had no major problems upgrading my FC2 VDS. I haven't been able to test all my websites but so far it seems that everything is running alright. One thing I had to do was to change the /etc/httpd/conf.d/php.conf file. I changed the first line from:

LoadModule php4_module modules/libphp4.so

to:

LoadModule php5_module modules/libphp5.so

After doing this everything worked.
Last edited by indoracer on Fri Nov 20, 2009 2:49 pm, edited 1 time in total.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Thanks for the update, please keep us posted on any incompatibilities you run into. I'd be especially interested on how the app vault packages handle 5.1.
indoracer
New Forum User
New Forum User
Posts: 3
Joined: Sat May 20, 2006 4:17 am

Unread post by indoracer »

So far I haven't run into any. I did test a couple php websites on our server (including a Joomla install) and so far no problems. I would like to get the latest version installed (php 5.1.4). Is the best way for me to do this to compile the source using make? It's a little tricky and I want to make sure everything gets put in the right folders. I found this statement for a FC2 server posted by someone (I'm running FC2 with plesk 7.5.4):

./configure --host=i386-redhat-linux --build=i386-redhat-linux --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --with-openssl --enable-ftp --enable-sockets --with-mysql=shared,/usr --with-apxs2=/usr/sbin/apxs --with-mysqli=/usr/bin/mysql_config

make
make install

I'm confused by these options:

--program-prefix=
Should program-prefix be blank?

--with-mysql=shared,/usr
I think the right path is /var/lib.

--sharedstatedir=/usr/com
I don't have the directory /usr/com on my machine but suppose I can make it.

I plan to uninstall all php 5.1.2 related rpms before doing this.
Last edited by indoracer on Fri Nov 20, 2009 2:47 pm, edited 1 time in total.
michaelfavia
Forum User
Forum User
Posts: 9
Joined: Tue Feb 28, 2006 12:31 pm

still humming along?

Unread post by michaelfavia »

i dont know what's more distrubing the fact that someone referenced my post as a resource to upgrade php or that i didnt recongize that it was my post until i was well more than halfway through reading it (apparently for the first time, proofreading is so overrated).

That aside i was considering upgrading to the 5.1 rpms and wanted to know if there are any known issue these days? If not ill forge ahead and report back. thx, -mf
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Ive been hearing a lot of good things about it, but I cant really say they've had a lot of testing across a wide range of applications. I've heard there are some horde issues, which people have been able to fix without a lot of hassle, and some applications like oscommerce that dont work with it. Also fixable alledgedly.

I have had some inconsistant reports that PSA breaks. This could be distribution related, since the older ones need to have a few dependencies upgraded on top of PHP 5.1, so if you have the option to test this out on something more modern, like FC4 or CentOS4, I'd recommend starting there.
Post Reply