• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

PHP 5.2.3 installation....

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:

Code:
Auth_imp: hace falta la extensión IMAP.

in that path I dont have any imap module, I think there are more to update...

Code:
[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
 
solved!

I just tried with:

Code:
[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:
 
if I remember correctly php-domxml is only for php4, in php5 its just xslt (or xsl) I think
 
thanks a lot man, it was php-xml :p

Code:
# 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
 
problems with install

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
 
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.
 
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
 
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?
 
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


[[email protected]]#


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
 
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
 
[[email protected]]# 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.
[[email protected]]#

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
 
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


[[email protected]]# 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
[[email protected]]#


same thing as when i started with the other channel it seems.
 
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/a...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
 
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
 
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
 
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.
 
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
 
Back
Top