Koozali.org: home of the SME Server

Any update on a PHP5 rpm?

splunk

Any update on a PHP5 rpm?
« on: September 11, 2005, 04:40:01 PM »
I'm running sme 6.x and have recently come across a script that requires PHP5.  I've run a few searches and couldn't come up with anything.  Is there an upgrade to use PHP5?

ergozd

Any update on a PHP5 rpm?
« Reply #1 on: September 11, 2005, 05:05:44 PM »
Hi splunk!

Just for the fun of it I've compiled PHP5 (version 5.0.4), I've installed on a test machine, never used them in production. If you want to give them a try grab them from
http://ergin.dyndns.org/download/RPMS/contribs/php/php504_experimental/

Appriciate any feedback, if they work I can compile to latest version  of PHP5 (v5.0.5)

splunk

Any update on a PHP5 rpm?
« Reply #2 on: September 12, 2005, 06:31:52 AM »
I would try installing them but I can't figure out the order in which to install them...and they fail because they need each other heh.  I just don't know the command or I'd be trying as I've done a complete backup of my sme box.

thecat

Any update on a PHP5 rpm?
« Reply #3 on: September 12, 2005, 07:01:01 AM »
just make a directory and move the php5 rpms into that directory. Then make certain you are inside that newly created directory and rpm -Uvh *

That should work the order out for you automatically

splunk

Any update on a PHP5 rpm?
« Reply #4 on: September 12, 2005, 01:40:42 PM »
Quote
error: failed dependencies:
        libmcrypt.so.4   is needed by php-mcrypt-5.0.4-1eo
        libmhash.so.2   is needed by php-mhash-5.0.4-1eo
        postgresql is needed by php-pgsql-5.0.4-1eo
        libpq.so.2   is needed by php-pgsql-5.0.4-1eo


Offline raem

  • *
  • 3,972
  • +4/-0
Any update on a PHP5 rpm?
« Reply #5 on: September 12, 2005, 02:18:31 PM »
splunk

> libmcrypt.so.4   is needed by php-mcrypt-5.0.4-1eo
> libmhash.so.2   is needed by php-mhash-5.0.4-1eo
> postgresql is needed by php-pgsql-5.0.4-1eo
> libpq.so.2   is needed by php-pgsql-5.0.4-1eo


So then you go to
http://www.rpmfind.net/
and search for those rpms, being careful to download the correct version for your OS eg sme 6.x RH7.3, sme 7 CentOS4.1

Then install all those rpms & the php rpms at the same time using rpm -Uvh *.rpm
...

splunk

Any update on a PHP5 rpm?
« Reply #6 on: September 13, 2005, 12:02:52 AM »
OK, I downloaded the modules for redhat 7.3 and installed them, but now httpd wouldn't restart.  It was erroring on the following in the httpd.conf file...

libphp4.so
mod_php4.c
php_value
php_flag
php_admin_value

So now I'm stuck.  When the new php rpms installed, they created a php.ini.newrpm...I tried restarting everyting with the php.ini, and then by renaming that and changing the "newrpm" one to php.ini.  I'm stuck.  ;)

Just for a temp fix I got httpd to restart by commenting out each instance of the above in the httpd.conf file.  Now PHP doesn't seem to be on at all as it acts like a download when I go to a page.

ergozd

Any update on a PHP5 rpm?
« Reply #7 on: September 13, 2005, 06:45:49 AM »
In order to test modify your httpd.conf and change
LoadModule php4_module /usr/lib/apache/libphp4.so
TO
LoadModule php4_module /usr/lib/apache/libphp5.so

AddModule mod_php4.c
TO
AddModule mod_php5.c

Good luck...

splunk

Any update on a PHP5 rpm?
« Reply #8 on: September 13, 2005, 01:15:02 PM »
ergzod, with those changes I'm now getting

Starting httpd: Syntax error on line 138 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/libphp5.so into server: /usr/lib/apache/libphp5.so: undefined symbol: xmlSchemaFreeValidCtxt

ergozd

Any update on a PHP5 rpm?
« Reply #9 on: September 13, 2005, 02:27:12 PM »
I don't know why that happens, my best guess is if you have libxm2 installed...

Check this thread from Zend
http://www.zend.com/lists/php-dev/200310/msg00049.html

splunk

Any update on a PHP5 rpm?
« Reply #10 on: September 14, 2005, 02:44:15 AM »
ergozd, getting so close now ;)  Thank you all so much for your help.  I installed the rpm for libxml2 for redhat 7.3 and php is up and running now.  My only problem is it doesn't seem to be working with mysql...when I try and load my wordpress, instead of the page, I get
Quote
Your PHP installation appears to be missing the MySQL which is required for WordPress.
.  I wonder if I just need to upgrade mysql?

Offline Smitro

  • *
  • 349
  • +0/-0
Any update on a PHP5 rpm?
« Reply #11 on: September 14, 2005, 05:37:55 AM »
This may help...
Quote
PHP5+
MySQL is not enabled by default, nor is the MySQL library bundled with PHP. Read this FAQ for details on why. Use the --with-mysql[=DIR] configure option to include MySQL support. You can download headers and libraries from MySQL.

Found Here.
http://www.php.net/mysql
.........

splunk

Any update on a PHP5 rpm?
« Reply #12 on: September 15, 2005, 03:46:21 AM »
Any chance we could get a build of php with mysql enabled ergozd?

ergozd

Any update on a PHP5 rpm?
« Reply #13 on: September 15, 2005, 06:54:13 AM »
I think mysql is enabled, check .spec file (line 301)
Code: [Select]
--with-mysql=shared,/usr \

Make sure you have php-mysql installed and php.ini modified with extension=mysql.so and restart your httpd service to activate changes.

Offline treyh

  • ***
  • 116
  • +0/-0
    • http://www.wilnet1.com
problems
« Reply #14 on: September 27, 2005, 01:44:14 PM »
good morning,

I follow the above steps for upgrade php.

I tried to reload httpd and I get:

[root@content /]# httpd restart
Syntax error on line 138 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/libphp5.so into server: /usr/lib/apache/libphp5.so: undefined symbol: xmlSchemaFreeValidCtxt

Here is line 138
LoadModule php5_module /usr/lib/apache/libphp5.so

Here were my steps
1. mkdir /installs/php
2. cd /installs/php
3. downloaded all the RPMs from http://ergin.dyndns.org/download/RPMS/contribs/php/php504_experimental/
4. rpm -Uvh *.rpm
5. had to install 4 extra libraries (rpm's listed below)
libmcrypt-2.5.7-1.dag.rh73.i386.rpm  postgresql-7.2.4-5.73.i386.rpm
libmhash-0.9.1-1.rh73.dag.i386.rpm   postgresql-libs-7.2.1-5.i386.rpm

6. rpm -Uvh *.rpm (everything installed)
7. updated /etc/httpd/conf/httpd.conf
Quote from: "ergozd"

In order to test modify your httpd.conf and change
LoadModule php4_module /usr/lib/apache/libphp4.so
TO
LoadModule php4_module /usr/lib/apache/libphp5.so

AddModule mod_php4.c
TO
AddModule mod_php5.c

8. cd /etc
9. mv php.ini php.ini.old
10. mv php.ini.rpmnew php.ini
11. /sbin/e-smith/signal-event reboot
12. httpd restart, and then I get the same error message listed above.

1 thing I do not understand was this

Quote from: "ergozd"

I don't know why that happens, my best guess is if you have libxm2 installed...

Check this thread from Zend
http://www.zend.com/lists/php-dev/200310/msg00049.html


It would appear to be a patch and it seems like my missing information. Any Ideas?
Trey - Network Specialist......