Koozali.org: home of the SME Server

php5

Offline steever

  • *
  • 185
  • +0/-0
    • Open-Sesame
php5
« on: August 14, 2008, 04:53:25 PM »
Hi.

I would like to install PHP 5 on my 7.3 server so that I can install mahara and a few other PHP 5 web apps.  The instructions for installing on the wiki lead to dependency problems.  Does anyone have an idea of a work around?

Thanks in advance.

Steve
Saving the world ... one server at a time.

Offline arne

  • *****
  • 1,116
  • +0/-4
Re: php5
« Reply #1 on: August 14, 2008, 10:05:03 PM »
This is propebly not an answer, but still some info. After years with sme server I have learned that there is only one way to make a sme server unstable or less dependable and that is to modify it. No modifications will normally mean no problems.

I would guess upgrading to php5 is that kind of modification I would not do with a SME 7.3 installation.

What I actually do instead is to run SME server as a near unmodified virtual server. Then I also have a virtual Ubuntu and a virtual Centos server on the same PC box to do PHP5, if and when required. There has not been any issues or problems with this at all. Actually I am running "only" sme server most of the time. (Centos 64 + Vmware host system + virtual Smoothwall gateway + virtual sme 73, server only + virtual Windows 2000 Pro.)

There has not been a problem at all for the last six monts, and php5 can be done under virtual Ubuntu or virtual Centos, if/when required.
......

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: php5
« Reply #2 on: August 14, 2008, 10:17:03 PM »
Does anyone have an idea of a work around?

well.. the first is to search in the forums..
have you read this http://forums.contribs.org/index.php?topic=37481.0 for example?

HTH
Ciao
Stefano

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: php5
« Reply #3 on: August 14, 2008, 11:15:16 PM »
Does anyone have an idea of a work around?
It would help if you were to give us some pointers for instance the output of the yum command which shows us where it fails.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: php5
« Reply #4 on: August 15, 2008, 01:27:13 AM »
Steve & nenonano

Quote
well.. the first is to search in the forums..

and/or read the wiki Howto articles

http://wiki.contribs.org/PHP

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline steever

  • *
  • 185
  • +0/-0
    • Open-Sesame
Re: php5
« Reply #5 on: August 15, 2008, 01:45:34 AM »
Sorry about my post - I was typing with one hand and holding a 2-year old in the other.  I've used http://forums.contribs.org/index.php?topic=37481.0 but the PHP 5 version it installs in the ibay is a little too old for mahara and a few other web apps.  So I thought I'd try to upgrade the system.

Here's the output of yum ...

Code: [Select]
yum --enablerepo=centosplus install php.i386 php-pear-Net-Socket php-pear-Auth-SASL php-pear-DB php-pear-HTTP php-pear-Mail php-pear-XML-Parser
Result:

Code: [Select]
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Setting up Install Process
Setting up repositories
smeaddons                 100% |=========================|  951 B    00:00     
updates                   100% |=========================|  951 B    00:00     
base                      100% |=========================| 1.1 kB    00:00     
centosplus                100% |=========================|  951 B    00:00     
smeos                     100% |=========================| 1.9 kB    00:00     
smeupdates                100% |=========================| 1.9 kB    00:00     
Determining fastest mirrors
Reading repository metadata in from local files
Excluding Packages from CentOS - updates
Finished
Excluding Packages from CentOS - os
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php-pear-HTTP.noarch 0:1.4.0-7.el4.centos set to be updated
---> Package php.i386 0:5.1.6-3.el4s1.9 set to be updated
---> Package php-pear-DB.noarch 0:1.7.6-6.el4.centos set to be updated
---> Package php-pear-Auth-SASL.noarch 0:1.0.2-4.el4.centos set to be updated
---> Package php-pear-Mail.noarch 0:1.1.14-1.el4.centos set to be updated
---> Package php-pear-XML-Parser.noarch 0:1.2.7-4.el4.centos set to be updated
---> Package php-pear-Net-Socket.noarch 0:1.0.6-5.el4.centos set to be updated
--> Running transaction check
--> Processing Dependency: php-pear(PEAR) >= 1.4.9 for package: php-pear-HTTP
--> Processing Dependency: php-cli = 5.1.6-3.el4s1.9 for package: php
--> Processing Conflict: php5-cgi conflicts php >= 5.0.0
--> Processing Dependency: php-pear(PEAR) for package: php-pear-DB
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-mysql
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-imap
--> Processing Dependency: php-pear(PEAR) >= 1.4.9 for package: php-pear-XML-Parser
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-domxml
--> Processing Dependency: php-pear(PEAR) >= 1.4.9 for package: php-pear-Net-Socket
--> Processing Dependency: php-pear(PEAR) >= 1.4.9 for package: php-pear-Mail
--> Processing Dependency: php-common = 5.1.6-3.el4s1.9 for package: php
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-pear
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-mbstring
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-ldap
--> Processing Dependency: php-pear(Net_SMTP) >= 1.1.0 for package: php-pear-Mail
--> Processing Dependency: php-pear(PEAR) >= 1.4.9 for package: php-pear-Auth-SASL
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-gd
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php-mysql.i386 0:5.1.6-3.el4s1.9 set to be updated
---> Package php-ldap.i386 0:5.1.6-3.el4s1.9 set to be updated
---> Package php-pear-Net-SMTP.noarch 0:1.2.8-5.el4.centos set to be updated
---> Package php-common.i386 0:5.1.6-3.el4s1.9 set to be updated
---> Package php-xml.i386 0:5.1.6-3.el4s1.8 set to be updated
---> Package php-gd.i386 0:5.1.6-3.el4s1.9 set to be updated
---> Package php-pear.noarch 1:1.4.11-1.el4s1.1 set to be updated
---> Package php-cli.i386 0:5.1.6-3.el4s1.9 set to be updated
---> Package php-imap.i386 0:5.1.6-3.el4s1.9 set to be updated
---> Package php-mbstring.i386 0:5.1.6-3.el4s1.9 set to be updated
--> Running transaction check
--> Processing Dependency: php-pdo for package: php-mysql
--> Processing Conflict: php5-cgi conflicts php >= 5.0.0
--> Processing Dependency: libmysqlclient.so.15 for package: php-mysql
--> Processing Dependency: php-common = 5.1.6-3.el4s1.8 for package: php-xml
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: php-mysql
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package mysql-libs.i386 0:5.0.62-1.el4_6 set to be updated
---> Package php-pdo.i386 0:5.1.6-3.el4s1.9 set to be updated
--> Running transaction check
--> Processing Conflict: php5-cgi conflicts php >= 5.0.0
--> Processing Dependency: php-common = 5.1.6-3.el4s1.8 for package: php-xml
--> Finished Dependency Resolution
Error: php5-cgi conflicts with php >= 5.0.0
Error: Missing Dependency: php-common = 5.1.6-3.el4s1.8 is needed by package php-xml

My server's fully up to date.  Any idea what's causing it?  Please help!

Steve
Saving the world ... one server at a time.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: php5
« Reply #6 on: August 15, 2008, 03:35:07 AM »
steever

You could setup a sme v8 beta (which is in quite an advanced stage), and see if mahara runs OK on that.
Then look at the various package versions installed and work backwards to installing them on sme7.3
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline steever

  • *
  • 185
  • +0/-0
    • Open-Sesame
Re: php5
« Reply #7 on: August 15, 2008, 04:43:05 AM »
That's a good idea.  Mary, do you know if SME 8 is going to support ldap authentication?

Steve
Saving the world ... one server at a time.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: php5
« Reply #8 on: August 15, 2008, 04:54:28 AM »
steever

Quote
...do you know if SME 8 is going to support ldap authentication?

That question is best followed up on the bug tracker. I'm sure some work is already underway in that direction so search first.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline sebnet

  • *
  • 18
  • +0/-0
Re: php5
« Reply #9 on: May 21, 2010, 11:26:29 AM »
Hi

I had the same trouble : Error: php5-cgi conflicts with php >= 5.0.0

how to revolved this problem, i need to update in PHP 5.2 minimum, for un Web Developpment

Thanks

Sebastien SCHWARTZ
IT Mananger
Alternatiq SARL