View Full Version : PHP 5.2.3 installation....
sathtek
15th August 2007, 02:03 PM
Hello....
How can i install php 5.2.3 on plesk 8.2, currently i have php5.1.6, kindly guide me how to update php to version 5.2.3 through plwsk 8.2 control panel...
atomicturtle
15th August 2007, 04:26 PM
Covered here:
http://www.atomicorp.com/wiki/index.php/PHP
sathtek
16th August 2007, 06:30 AM
Sir...
This article is related to OS Centos and if my current version is 4.3.x
but my OS is Fedore core 6
and my currnet php version is 5.1.6
kindly tell me if it is possible to do through my plesk 8.2 control panel....
atomicturtle
16th August 2007, 08:04 AM
I make packages for CentOS 3/4, RHEL 3/4, Fedora 4-7
Corin
30th August 2007, 06:53 AM
Hi
I have the same problem (trying to upgrade php from 5.1.6 to 5.2.3 on Plesk 8.2.0), but I am using CentOS 5.
How can I do this?
Cheers
atomicturtle
30th August 2007, 09:19 AM
Same way outlined above
Corin
30th August 2007, 09:23 AM
Originally posted by atomicturtle
Same way outlined above
You said you only make packages for CentOS 3/4, surely it wont work with CentOS 5?
poke
14th September 2007, 06:16 AM
ART's repo does have a centos 5 channel.
atomicturtle
14th September 2007, 08:13 AM
yep, Ive even got Fedora 8 packages too.
slubby10
23rd October 2007, 11:47 AM
I followed the wiki from ART. I get the following after "yum install php-pear"
Error: Missing Dependency: php = 4.3.9-3.22.9 is needed by package php-pear
Error: Missing Dependency: php-common = 5.2.3-1.el4.art is needed by package php-xml
Error: Missing Dependency: php-common = 5.2.3-4.el4.art is needed by package php-pdo
Not sure what I'm missing or need to do.
atomicturtle
23rd October 2007, 11:57 AM
Ah those could be the swsoft php rpms in the way. Whats the output of:
rpm -qa |grep ^php-
slubby10
23rd October 2007, 12:00 PM
bash-3.00# rpm -qa |grep ^php-
php-domxml-4.3.9-3.18.1.swsoft
php-mbstring-4.3.9-3.18.1.swsoft
php-pear-4.3.9-3.18.1.swsoft
php-sqlite2-1.0.2-200611091324
php-gd-4.3.9-3.18.1.swsoft
php-mysql-4.3.9-3.18.1.swsoft
php-pgsql-4.3.9-3.18.1.swsoft
php-ioncube-loader-3.0-06101816
php-4.3.9-3.18.1.swsoft
php-imap-4.3.9-3.18.1.swsoft
php-ncurses-4.3.9-3.18.1.swsoft
php-snmp-4.3.9-3.18.1.swsoft
php-devel-4.3.9-3.18.1.swsoft
php-ldap-4.3.9-3.18.1.swsoft
php-odbc-4.3.9-3.18.1.swsoft
php-xmlrpc-4.3.9-3.18.1.swsoft
atomicturtle
24th October 2007, 08:35 AM
ok you'll need to remove all those with rpm -e <package name> --nodeps, and then install the 5.2.3 versions through yum.
slubby10
24th October 2007, 02:14 PM
I removed all the packages listed. When I went to run the yum it failed because it wanted the php-4.3... I found a copy of php-4.3. I tried to install it but it complained about needint php-pear. I found a copy of it and installed it using rpm -ivh --nodeps. Finally I was able to do the yum install php-pear. Restarted http and works fine.
Now I have the following installed.
bash-3.00# rpm -q|grep ^php-
rpmq: no arguments given for query
-bash-3.00# rpm -qa|grep ^php-
php-cli-5.2.3-5.el4.art
php-common-5.2.3-5.el4.art
php-pear-1.5.0-5.el4.art
php-5.2.3-5.el4.art
How do I get the correct version of these other extensions that I removed?
Also, what is the best way to update mysql?
-bash-3.00# rpm -qa|grep mysql-
dummymysql-2-1.swsoft
mysql-4.1.20-1.RHEL4.1
mysql-4.1.20-1.RHEL4.1
mysql-devel-4.1.20-1.RHEL4.1
libdbi-dbd-mysql-0.6.5-10.RHEL4.1
mysql-server-4.1.20-1.RHEL4.1
psa-ruby-mysql-2.7-200703301206
Thanks!
atomicturtle
25th October 2007, 10:13 AM
yum install <packagename>, to see a list you can either use yum search <searchstring> or yum list
zorrito
7th November 2007, 05:47 PM
hi guys, in my centos 4.2 server I had the same problem with yum
[goofy ~]# rpm -qa |grep ^php-
php-4.3.9-3.22.9
php-mysql-5.2.3-4.el4.art
php-pdo-5.2.3-4.el4.art
php-domxml-4.3.9-3.22.9
php-imap-4.3.9-3.22.9
php-common-5.2.3-4.el4.art
php-pgsql-4.3.9-3.22.9
php-gd-4.3.9-3.22.9
php-ioncube-loader-3.0-06101212
php-mbstring-4.3.9-3.22.9
php-pear-4.3.9-3.22.9
[goofy ~]# rpm -e php --nodeps
[goofy ~]# yum install php
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php.i386 0:5.2.3-4.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php-cli = 5.2.3-4.el4.art for package: php
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php-cli.i386 0:5.2.3-4.el4.art set to be updated
--> Running transaction check
Dependencies Resolved
================================================== ===========================
Package Arch Version Repository Size
================================================== ===========================
Installing:
php i386 5.2.3-4.el4.art atomic 3.7 M
Installing for dependencies:
php-cli i386 5.2.3-4.el4.art atomic 2.6 M
Transaction Summary
================================================== ===========================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 6.3 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): php-5.2.3-4.el4.ar 100% |=========================| 3.7 MB 00:03
(2/2): php-cli-5.2.3-4.el 100% |=========================| 2.6 MB 00:02
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: php-cli ######################### [1/2]
Installing: php ######################### [2/2]
Installed: php.i386 0:5.2.3-4.el4.art
Dependency Installed: php-cli.i386 0:5.2.3-4.el4.art
Complete!
but now i got this
[goofy ~]# rpm -qa |grep ^php-
php-mysql-5.2.3-4.el4.art
php-pdo-5.2.3-4.el4.art
php-domxml-4.3.9-3.22.9
php-imap-4.3.9-3.22.9
php-common-5.2.3-4.el4.art
php-cli-5.2.3-4.el4.art
php-pgsql-4.3.9-3.22.9
php-gd-4.3.9-3.22.9
php-ioncube-loader-3.0-06101212
php-mbstring-4.3.9-3.22.9
php-pear-4.3.9-3.22.9
php-5.2.3-4.el4.art
[goofy ~]#
and it is not working the mysql interfase... HELPª
HostingGuy
7th November 2007, 05:56 PM
http://atomicorp.com/wiki/index.php/PHP
wget -q -O - http://www.atomicorp.com/installers/atomic.sh |sh
yum install php-pear
Do these if needed
mv /etc/php.ini.rpmnew /etc/php.ini
mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.conf
zorrito
7th November 2007, 06:04 PM
yep, I read that link too....
searching the /etc/httpd/conf.d/php.conf.rpmnew
zorrito
7th November 2007, 06:28 PM
I didnt get those last file, in my web server i got this:
Database Error: Unable to connect to the database:The MySQL adapter "mysql" is not available.
mysql 5 was updated fine before php... :eek:
HostingGuy
7th November 2007, 06:31 PM
where does that error come from?
Does running this work?
mysql -uadmin -p`cat /etc/psa/.psa.shadow`
Those are ` (next to the 1 key) and not '
zorrito
7th November 2007, 07:09 PM
well, I got workind php and mysql back, but no at all...
it was I got a new php.ini after the upgrading but I had to touch it to get the correct path to modules for php 5 (/usr/lib/php/modules), now at domains webmail I got this:
Auth_imp: hace falta la extensión IMAP.
in that path I dont have any imap module, I think there are more to update...
[goofy modules]# rpm -qa |grep ^php-
php-mysql-5.2.3-4.el4.art
php-pdo-5.2.3-4.el4.art
php-domxml-4.3.9-3.22.9
php-imap-4.3.9-3.22.9
php-common-5.2.3-4.el4.art
php-cli-5.2.3-4.el4.art
php-pgsql-4.3.9-3.22.9
php-gd-4.3.9-3.22.9
php-pear-1.5.0-5.el4.art
php-ioncube-loader-3.0-06101212
php-mbstring-4.3.9-3.22.9
php-5.2.3-4.el4.art
zorrito
7th November 2007, 09:13 PM
solved!
I just tried with:
[goofy ~]# yum install php-imap
Setting up Install Process
Setting up repositories
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
atomic 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php-imap.i386 0:5.2.3-4.el4.art set to be updated
--> Running transaction check
Dependencies Resolved
================================================== ===========================
Package Arch Version Repository Size
================================================== ===========================
Updating:
php-imap i386 5.2.3-4.el4.art atomic 101 k
Transaction Summary
================================================== ===========================
Install 0 Package(s)
Update 1 Package(s)
Remove 0 Package(s)
Total download size: 101 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): php-imap-5.2.3-4.e 100% |=========================| 101 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : php-imap ######################### [1/2]
Cleanup : php-imap ######################### [2/2]
Updated: php-imap.i386 0:5.2.3-4.el4.art
Complete!
[goofy php.d]# yum install php-domxml php-pgsql php-gd php-mbstring
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php-gd.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-mbstring.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-pgsql.i386 0:5.2.3-4.el4.art set to be updated
--> Running transaction check
Dependencies Resolved
================================================== ===========================
Package Arch Version Repository Size
================================================== ===========================
Updating:
php-gd i386 5.2.3-4.el4.art atomic 317 k
php-mbstring i386 5.2.3-4.el4.art atomic 1.3 M
php-pgsql i386 5.2.3-4.el4.art atomic 149 k
Transaction Summary
================================================== ===========================
Install 0 Package(s)
Update 3 Package(s)
Remove 0 Package(s)
Total download size: 1.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): php-gd-5.2.3-4.el4 100% |=========================| 317 kB 00:00
(2/3): php-mbstring-5.2.3 100% |=========================| 1.3 MB 00:01
(3/3): php-pgsql-5.2.3-4. 100% |=========================| 149 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : php-pgsql ######################### [1/6]
Updating : php-gd ######################### [2/6]
Updating : php-mbstring ######################### [3/6]
Cleanup : php-gd ######################### [4/6]
Cleanup : php-mbstring ######################### [5/6]
Cleanup : php-pgsql ######################### [6/6]
Updated: php-gd.i386 0:5.2.3-4.el4.art php-mbstring.i386 0:5.2.3-4.el4.art php-pgsql.i386 0:5.2.3-4.el4.art
Complete!
Now, its just php-domxml missing....:cool:
HostingGuy
7th November 2007, 10:07 PM
if I remember correctly php-domxml is only for php4, in php5 its just xslt (or xsl) I think
zorrito
7th November 2007, 10:17 PM
thanks a lot man, it was php-xml :p
# rpm -qa |grep ^php-
php-mysql-5.2.3-4.el4.art
php-pdo-5.2.3-4.el4.art
php-pgsql-5.2.3-4.el4.art
php-common-5.2.3-4.el4.art
php-cli-5.2.3-4.el4.art
php-imap-5.2.3-4.el4.art
php-xml-5.2.3-4.el4.art
php-pear-1.5.0-5.el4.art
php-mbstring-5.2.3-4.el4.art
php-ioncube-loader-3.0-06101212
php-gd-5.2.3-4.el4.art
php-5.2.3-4.el4.art
nelisx
28th November 2007, 09:58 PM
I followed the instructions from the php wiki link. i am new to the SSH thing and had a hell of a time figuring out how to log in as root....anyways, here were my results, it does not appear to have installed php 5 on my server.
any help would be more than appriciated.
]# yum install php-pear
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php-pear.noarch 1:1.5.0-5.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php >= 5.1.0-1 for package: php-pear
--> Processing Dependency: php-cli for package: php-pear
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-cli.i386 0:5.2.3-4.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-mysql
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-gd
--> Processing Dependency: php-common = 5.2.3-4.el4.art for package: php-cli
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-imap
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-mbstring
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-odbc
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-domxml
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-devel
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-ldap
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-xmlrpc
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-ncurses
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-snmp
--> Processing Dependency: php-common = 5.2.3-4.el4.art for package: php
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php-mbstring.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-devel.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-xmlrpc.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-common.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-snmp.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-gd.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-imap.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-ncurses.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-mysql.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-odbc.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-ldap.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-xml.i386 0:5.2.3-2.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php-pdo for package: php-mysql
--> Processing Dependency: php-common = 5.2.3-2.el4.art for package: php-xml
--> Processing Dependency: php-pdo for package: php-odbc
--> Processing Dependency: autoconf for package: php-devel
--> Processing Dependency: automake for package: php-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package autoconf.noarch 0:2.59-5 set to be updated
---> Package automake.noarch 0:1.9.2-3 set to be updated
---> Package php-pdo.i386 0:5.2.3-4.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php-common = 5.2.3-2.el4.art for package: php-xml
--> Finished Dependency Resolution
Error: Missing Dependency: php-common = 5.2.3-2.el4.art is needed by package php-xml
atomicturtle
29th November 2007, 07:30 AM
you might want to try the PHP 5.2.5 packages in the [atomic-testing] channel. The one test Ive run on those so far resolved the above problem.
nelisx
29th November 2007, 03:25 PM
thank you for your help.
I can see the atomic-testing it says [DISABLED] i am very new to SSH and command line...could you please explain to me how to change channels?
Thanks again
HostingGuy
29th November 2007, 03:33 PM
go into yum.conf
nano -w /etc/yum.conf
and then add this in
# Almost Stable, release candidates for [atomic]
[atomic-testing]
name = CentOS / Red Hat Enterprise Linux $releasever - atomicrocketturtle.com - (Testing)
baseurl = http://www.atomicorp.com/channels/atomic-testing/centos/4/$basearch/
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
gpgcheck = 1
then re-run
yum update php
Scott, Is that php build a high FD build?
nelisx
29th November 2007, 03:49 PM
Atomic Archive installer, version 0.9.13
Configuring the [atomic] yum archive for this system
Installing the Atomic GPG key: OK
Downloading atomic-release-1.0-6.el4.art.noarch.rpm: OK
The Atomic Rocket Turtle archive has now been installed and configured for your system
The following channels are available:
atomic - [ACTIVATED] - contains the stable tree of ART packages
atomic-testing - [DISABLED] - contains the testing tree of ART packages
atomic-bleeding - [DISABLED] - contains the development tree of ART packages
[root@ip-xxxxx.com]#
this is where i sit..can u guys just tell me exactly what to type?
i tried the above, thanks for the attempt but that was all over my head and my attempts failed...command not found for everything i typed trying to follow the above instructions.
thanks again
HostingGuy
29th November 2007, 05:25 PM
Im not sure how much clearer it can be. Open the file that I mentioned previously with a text editor of your choice.
Go to the bottom of the file and paste in the contents that I gave you word for word.
Then re-run yum.
You can also try running the command
yum --enablerepo=atomic-testing update php
nelisx
29th November 2007, 05:35 PM
[root@ip-xxxx.com]# yum --enablerepo=atomic-testing update php
Setting up Update Process
Setting up repositories
update 100% |=========================| 951 B 00:00
atomic-testing 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
atomic 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 23 kB 00:00
atomic-tes: ################################################## 90/90
Added 90 new packages, deleted 0 old in 0.72 seconds
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for php to pack into transaction set.
http://www.atomicorp.com/channels/atomic-testing/centos/4/i386/RPMS/php-5.2.5-2. el4.art.i386.rpm: [Errno 4] IOError: <urlopen error (11, 'Resource temporarily u navailable')>
Trying other mirror.
Error: failure: RPMS/php-5.2.5-2.el4.art.i386.rpm from atomic-testing: [Errno 25 6] No more mirrors to try.
[root@ip-xxx.com]#
well that worked so far, but the resource isn't available i guess.
Thanks for the help, I guess I will keep trying and hope it comes back up
nelisx
29th November 2007, 05:41 PM
more spam:
now this happens:
The Atomic Rocket Turtle archive has now been installed and configured for your system
The following channels are available:
atomic - [ACTIVATED] - contains the stable tree of ART packages
atomic-testing - [DISABLED] - contains the testing tree of ART packages
atomic-bleeding - [DISABLED] - contains the development tree of ART packages
[root@ip-xxx.com]# yum --enablerepo=atomic-testing update php
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php.i386 0:5.2.5-2.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-mysql
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-gd
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-odbc
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-imap
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-mbstring
--> Processing Dependency: /usr/bin/php for package: psa-mnemo
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-pear
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-devel
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-ldap
--> Processing Dependency: php-common = 5.2.5-2.el4.art for package: php
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-xmlrpc
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-ncurses
--> Processing Dependency: php-cli = 5.2.5-2.el4.art for package: php
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-snmp
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-domxml
--> Processing Dependency: /usr/bin/php for package: psa-horde
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php-common.i386 0:5.2.5-2.el4.art set to be updated
---> Package php-ldap.i386 0:5.2.5-2.el4.art set to be updated
---> Package php-ncurses.i386 0:5.2.5-2.el4.art set to be updated
---> Package php-pear.noarch 1:1.5.0-5.el4.art set to be updated
---> Package php-xmlrpc.i386 0:5.2.5-2.el4.art set to be updated
---> Package php-mysql.i386 0:5.2.5-2.el4.art set to be updated
---> Package php-odbc.i386 0:5.2.5-2.el4.art set to be updated
---> Package php-cli.i386 0:5.2.5-2.el4.art set to be updated
---> Package php-gd.i386 0:5.2.5-2.el4.art set to be updated
---> Package php-imap.i386 0:5.2.5-2.el4.art set to be updated
---> Package php-mbstring.i386 0:5.2.5-2.el4.art set to be updated
---> Package php-xml.i386 0:5.2.3-2.el4.art set to be updated
---> Package php-devel.i386 0:5.2.5-2.el4.art set to be updated
---> Package php-snmp.i386 0:5.2.5-2.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php-common = 5.2.3-2.el4.art for package: php-xml
--> Processing Dependency: php-pdo for package: php-mysql
--> Processing Dependency: autoconf for package: php-devel
--> Processing Dependency: php-pdo for package: php-odbc
--> Processing Dependency: automake for package: php-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package automake.noarch 0:1.9.2-3 set to be updated
---> Package autoconf.noarch 0:2.59-5 set to be updated
---> Package php-pdo.i386 0:5.2.5-2.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php-common = 5.2.3-2.el4.art for package: php-xml
--> Finished Dependency Resolution
Error: Missing Dependency: php-common = 5.2.3-2.el4.art is needed by package php-xml
[root@ip-xxx.com]#
same thing as when i started with the other channel it seems.
HostingGuy
29th November 2007, 05:49 PM
its most likely just a temp problem, but you could do it manually if you want.
from shell type these in - anything that starts with # do not type in
#Download the packages
wget http://www.atomicorp.com/channels/atomic-testing/centos/4/i386/RPMS/php-5.2.5-2.el4.art.i386.rpm
#download the commoon package
wget http://www.atomicorp.com/channels/atomic-testing/centos/4/i386/RPMS/php-common-5.2.5-2.el4.art.i386.rpm
#Install the package, force it to install and not care about dependancies
rpm -Uvh --force --nodeps php-5.2.5-2.el4.art.i386.rpm
rpm -Uvh --force --nodeps php-common-5.2.5-2.el4.art.i386.rpm
#Then retry yum
yum --enablerepo=atomic-testing update php
nelisx
29th November 2007, 05:57 PM
thanks for all your help!
atomicturtle
29th November 2007, 06:09 PM
Oh man dont tell people to use --nodeps, they're going to get stuck with seeing that error forever.
I'll bet if you had disabled the atomic repo it would have worked fine:
yum --disablerepo=atomic update
HostingGuy
29th November 2007, 06:10 PM
if it works ;)
nelisx
29th November 2007, 07:51 PM
honestly guys i ended up spending $3/m for a shared hosting account with php5 enabled. i dont want to mess anything up on my VDS, i have client web sites running
i need to learn all this stuff and even though i didnt get it installed, i did learn a little from all this. enough so next time i will get it right.
thanks again, till next time :p
atomicturtle
30th November 2007, 10:59 AM
A ha, I think Ive got it. For anyone getting this message is there a line in /etc/yum.repos.d/atomic.repo that defines the Priority?
Set the priority for each atomic channel to 1 like this:
priority = 1
and let me know if it resolves the problem for you.
ThrasH
24th May 2008, 05:01 AM
Hi
I would like to update my php 4.3.9 to php 5 cli. ( Plesk 8.2.0 on CentOs 4.5 )
rpm -qa | grep ph
php-mbstring-4.3.9-3.22.5
phpBB-2.0.22-82016
phpMoney-1.3-80030
phpsurveyor-0.98-80031
php-imap-4.3.9-3.22.5
php-domxml-4.3.9-3.22.5
phpBook-1.50-80023
phpMyFamily-1.4.1-80023
phpwebsite-0.10.2-80016
php-ioncube-loader-3.0-06101212
php-sqlite2-1.0.2-200608291848
php-pear-4.3.9-3.22.5
php-mysql-4.3.9-3.22.5
psa-php4-configurator-1.3.0-cos4.build82070807.17
phpBugTracker-1.19-80023
phpWiki-1.3.11-80031
php5-ioncube-php52-4.0-rhas4.07041615
php-4.3.9-3.22.5
php-gd-4.3.9-3.22.5
phpAds-2.0.8-82029
phpDig-1.85-80019
phpmyvisites-2.3-82017
php5sb-5.2.1-10swsoft
I found description how do this on http://www.romantika.name/v2/php-5-in-centos-45/
1. Open up /etc/yum.repos.d/CentOS-Base.repo and look for the section centosplus:
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/…
#baseurl=http://mirror.centos.org/…
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=2
protect=1
2. Change enabled=0 to enabled=1
3. Save the file
4. Run yum update php*
Is this will work with my plesk 8.2 or should I update my php with http://www.atomicorp.com/wiki/index.php/PHP
Thank You for help
poke
24th May 2008, 05:37 AM
Don't use the first link mentioned, it may break plesk.
I would use ART's method.
http://www.atomicorp.com/wiki/index.php/PHP
ThrasH
24th May 2008, 06:05 AM
Should I first update plesk to 8.3 or 8.4 ?
poke
24th May 2008, 06:20 AM
This would be a personal preference. You may open up a new can of worms by upgrading Plesk, who knows. If you have a nice backup/restore strategy in place, backup and update to 8.4.
The Plesk version doesn't matter for you. The only issues I can think of with psa 8.2 or 8.3 is Horde messing up, but the fix is listed in ART's wiki.
ThrasH
24th May 2008, 06:44 AM
after instalation when I am in step 4
mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.conf
I have this error:
mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.conf
mv: cannot stat `/etc/httpd/conf.d/php.conf.rpmnew': No such file or directory
after service httpd restart I got
rpm -qa | grep ph
phpBB-2.0.22-82016
phpMoney-1.3-80030
phpsurveyor-0.98-80031
phpBook-1.50-80023
phpMyFamily-1.4.1-80023
phpwebsite-0.10.2-80016
php-ioncube-loader-3.0-06101212
php-sqlite2-1.0.2-200608291848
psa-php4-configurator-1.3.0-cos4.build82070807.17
phpBugTracker-1.19-80023
phpWiki-1.3.11-80031
php5-ioncube-php52-4.0-rhas4.07041615
php-domxml-4.3.9-3.22.9
php-gd-4.3.9-3.22.9
php-mbstring-4.3.9-3.22.9
php-mysql-4.3.9-3.22.9
php-4.3.9-3.22.9
phpAds-2.0.8-82029
phpDig-1.85-80019
phpmyvisites-2.3-82017
php5sb-5.2.1-10swsoft
php-pear-4.3.9-3.22.9
php-imap-4.3.9-3.22.9
hm... there is still php 4.3.9. What I made wrong?
poke
24th May 2008, 06:55 AM
step 4: (if applicable)
what does the below output:?
php -v
ThrasH
24th May 2008, 06:56 AM
PHP 4.3.9 (cgi) (built: Sep 20 2007 19:31:11)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
poke
24th May 2008, 06:57 AM
How did you update? YUM? it seems the update didn't work..
ThrasH
24th May 2008, 07:00 AM
http://www.atomicorp.com/wiki/index.php/PHP
hmm something was installing 252 MB, but I think yum install 4.3.9
ok I think I didn't add
| sh
at the end of
wget -q -O - http://www.atomicorp.com/installers/atomic.sh
I will try one more time.
what a stupid mistake
poke
24th May 2008, 07:16 AM
no biggie, you just didn't install the repo ;)
ThrasH
24th May 2008, 07:37 AM
Ok I think now is ok
rpm -qa | grep ph
php-ioncube-loader-3.1-2.el4.art
php-xml-5.2.5-4.el4.art
php-pdo-5.2.5-4.el4.art
psa-appvault-phpmoney-1.3-82036
psa-appvault-phprojekt-5.2-82003
psa-appvault-phpbb-2.0.22-82019
psa-appvault-phpads-2.0.8-82031
php-5.2.5-4.el4.art
php-mbstring-5.2.5-4.el4.art
php-pear-1.5.0-5.el4.art
psa-appvault-phpmyvisites-2.3-82020
psa-appvault-phpdig-1.85-82023
php5-ioncube-php52-4.0-rhas4.07041615
php-cli-5.2.5-4.el4.art
php-gd-5.2.5-4.el4.art
psa-php4-configurator-1.3.0-cos4.build83071218.20
psa-appvault-phpbugtracker-1.19-82030
psa-appvault-phpmyfamily-1.4.1-82027
psa-appvault-phpbook-1.50-82026
php5sb-5.2.1-10swsoft
php-common-5.2.5-4.el4.art
php-imap-5.2.5-4.el4.art
php-mysql-5.2.5-4.el4.art
psa-appvault-phpwebsite-0.10.2-82027
psa-appvault-phpsurveyor-0.98-82036
psa-appvault-phpwiki-1.3.11-82037
php -v
PHP 5.2.5 (cli) (built: Jan 19 2008 10:08:24)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with the ionCube PHP Loader v3.1.32, Copyright (c) 2002-2007, by ionCube Ltd.
but now I don't have Zend Optimizer, and I thnik CLI is not working. How can I install Zend Optimizer and activate CLI?
poke
24th May 2008, 07:43 AM
yum install php-zend-optimizer
ThrasH
24th May 2008, 08:48 AM
Thanks Zend is working but I still have problem with CLI, scripts don't see it, maybe I should enable it or something?
vBulletin® v3.6.12, Copyright ©2000-2008, Jelsoft Enterprises Ltd.