Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: thefff-fr on December 27, 2005, 11:56:43 AM

Title: How to install Php 5 ?
Post by: thefff-fr on December 27, 2005, 11:56:43 AM
Hi,

Is there a way to install PHP 5 on SME 7 ?

I can't find any RPM for this.
Title: How to install Php 5 ?
Post by: ergozd on December 28, 2005, 10:07:03 AM
Check out centosplus repository in your nearest centos-mirror

http://mirror.nsc.liu.se/CentOS/4.2/centosplus/i386/RPMS/
Title: How to install Php 5 ?
Post by: thefff-fr on December 28, 2005, 10:54:44 AM
Hi,

Thanks for the link, but, i download the rpm php-5*, install it, and crash my server  :cry:

I'm noob in SEM (2 month) can you tell me if i can found a How To for php 5 on centos ?

Thanks you
Title: How to install Php 5 ?
Post by: ergozd on December 28, 2005, 06:53:04 PM
Hi!

I don't think only upgrading PHP4 to PHP5 would crash your server... Anyway best way to upgrade would be via YUM

To enable CentOSPlus edit /etc/yum.repos.d/CentOS-Base.repo. After [centosplus] heading, you’ll see a line that currently says “enabled=0″. Change that to “enabled=1″ to enable CentOSPlus. Once the CentOSPlus repo is enabled, “yum update” will search the repository and offer to upgrade any packages to newer versions from CentOSPlus. If you had PHP installed previously, this will upgrade you to PHP 5.0.x.

Good luck.
Title: How to install Php 5 ?
Post by: thefff-fr on December 28, 2005, 07:47:06 PM
I read your answer, and meabe it's so easy, but, in etc/yum.repos.d/ i've got nothing to edit. It's empty.
Title: How to install Php 5 ?
Post by: ergozd on December 28, 2005, 08:09:21 PM
Sorry for the missleading...
You either create /etc/yum.repos.d/CentOS-Base.repo or add following lines into /etc/yum.conf

Code: [Select]
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirror.nsc.liu.se/CentOS/4.2/centosplus/$basearch/
gpgcheck=1
enabled=1


I hope this'll help.
Title: How to install Php 5 ?
Post by: thefff-fr on December 29, 2005, 03:38:21 PM
Hello,

After add the line ton yum.conf, i run a "yum update".

But, at the final, i've got a erro message :

--> Processing Dependency: php-domxml for package: e-smith-horde
--> Finished Dependency Resolution
Error: Missing Dependency: php-domxml is needed by package e-smith-horde

I look on the CentOsPlus server, and the file no found.
Title: How to install Php 5 ?
Post by: ergozd on December 29, 2005, 03:50:55 PM
There is no php-domxml package for php version 5.0.x (PS: I hade to do the same when I created php-5.0.x RPMS for SME6)

0domxml support should be "bundled" within php so what you could is to uninstall php-domxml and then run update

# yum remove php-domxml
# yum update
Title: How to install Php 5 ?
Post by: thefff-fr on December 29, 2005, 06:42:07 PM
....................

Error in line 109 in http.conf..........and crachs server. Juste this error on the screen, nothing to do.

Php 5 is not for me
Title: How to install Php 5 ?
Post by: ergozd on December 30, 2005, 07:08:52 AM
Quote from: "thefff-fr"
....................

Error in line 109 in http.conf..........and crachs server. Juste this error on the screen, nothing to do.

Php 5 is not for me


Can you post what you've got in line 109 of your httpd.conf file
Title: How to install Php 5 ?
Post by: thefff-fr on December 30, 2005, 10:05:55 AM
Sorry, i can't.

After upgrade with yum, the server reboot.

And, at the reboot, it say error in...... and i can't do anything. No acces to server.
Title: How to install Php 5 ?
Post by: ergozd on December 31, 2005, 10:30:04 AM
Hi!

I had to find out what was wrong so I installed a test server SME7b9, line 109 is
Code: [Select]
LoadModule php4_module modules/libphp4.so

This shows that some modifications needs to be done, pls read
http://ergin.dyndns.org/download/RPMS/contribs/PHP/php505_experimental/php5_howto.txt

make sure to make changes in STEP 5 before you reboot...
Title: How to install Php 5 ?
Post by: thefff-fr on January 01, 2006, 03:01:30 PM
hi,

I'm afraid to install this.

Now, my server is in perfect condition (web site, mail, and samba run great) and i'm afraid to crash it now.