Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Bruce on January 05, 2004, 02:08:44 PM
-
Has anyone created an RPM for upgrading SME/e-Smith 6.0 to the latest version of PHP? I've searched the Forum and found tons of faiures and extensive dialog to follow, but I haven't found a "here's the solution in a nutshell."
-
Hi there!
1 - Find out which PHP RPMs you have installed on your system
[root@xxxxxx root]# rpm -qa|grep php-
Then download those RPMS you want to upgrade from (Dan Brown's contrib)
http://www.ibiblio.org/pub/Linux/distributions/e-smith/contrib/DanBrown/RPMS/i386/
Then run
#rpm -Uvh php-*
Good luck.
-
I tried Dan's RPM for 6.0 and found that there were other "pieces" missing, indicating that the RPM has not been done for 6.0. Since I'm not near my server right now, I can't provide the specific error message, but I'll try to gather it when I get back to the server room.
-
This sounds like an easy solution, but that doesn't tell me all the things I need to update. When starting with 4.1.2-7.3.6es1, do I only have to update PHP or should I also update php-imap, php-ldap and php-mysql?
-
You should update the all...
-
Good try, but no cigar!
When attempting to install 4.3.4, I get:
Failed discrepencies errors. The screen looks like this:
error: failed depencencies:
BEGIN is needed by php-devel-4.3.4-1db
mkinstalldirs is needed by php-dev-4.3.4-1db
unixODBC is need by php-odbc-4.3.4-1db
libodbc.so.1 is needed by php-odbc-4.3.4-1db
postgresql is needed by is needed by pgsql-4.3.4-1db
libpg.so.2 is needed by pgsql-4.3.4-1db
Are there any updated RPMs out there?
-
Ergin's first answer (from 1/5) should do it. I'm running those RPMs on my SME 6 server right now, and have been since November.
-
:-x There appears to be a gap somewhere.
The version of e-smith released included php-4.1.2-7.3.6es1 with the variences for imap, ldap and mysql. The olders version of PHP supported is php-4.1.2-2es, and then jumps to php-4.2.1-3db. In any case, I receive multiple errors that libcrypto.so.1, libdb-3.1so. and libssl.so.1 are needed when attempting to run rmp -Uvh php*
Are there any other ideas? :-?
-
Ergin's first answer (from 1/5) should do it. I'm running those RPMs on my SME 6 server right now, and have been since November.
don't suppose you have have a later 2++ version of GD working there Dan?
there are a few of us ( http://forums.contribs.org/index.php?topic=20283.0 ) wanting some other areas of PHP upgraded oh mighty php upgrading Guru :lol: ... any advice would be much appreciated!!!!!
Thanks
T
-
I too used the same approach as Ergin and all worked fine except I had to install the pear Log module (pear install Log) to get IMP working properly (this may be because I'm still running 6beta3 - must update one of these days...).
Also upgraded to MySQL 4.0.17 without issues.
Trevor B
-
More information.
The RPM's I installed (via rpm -Uvh) are:
php-4.3.4-1db.i386.rpm
php-imap-4.3.4-1db.i386.rpm
php-ldap-4.3.4-1db.i386.rpm
php-mysql-4.3.4-1db.i386.rpm
The command to install the pear Log module is:
pear install Log
Trevor B
-
So the real answer here is that all the responders installed on the beta or upgraded version, and nobody wants to do a clean install and test for the upgrade working. :pint: Maybe someone will just step back, read the messages, install 6.0.0 with no patches and try the PHP patches to determine what the problem is. ;-)
-
Bruce,
have now installed a new system with sme6.0 clean and done an upgrade to PHP 4.3.4 & MySQL 4.0.17 at the same time (I needed MySQL 4.0.17).
For complete clarity I have also added phpmyadmin.
RPM's installed as per earlier post:
php-4.3.4-1db.i386.rpm
php-imap-4.3.4-1db.i386.rpm
php-ldap-4.3.4-1db.i386.rpm
php-mysql-4.3.4-1db.i386.rpm
(I did them all as an single install - ie. put them in their own drectory and did a rpm -Uvh php*.rpm)
And added pear Log module to ensure that Webmail still works.
pear install Log
The only other things I did was restart httpd & httpd-e-smith via
/etc/init.d/httpd restart
/etc.init.d/httpd-e-smith restart
Good Luck
Trevor B
-
The problem appears to be in excess. There were more RPMs in (like the manual), and when I only installed the 4 necessary (and followed the rest of Trevor's steps), the install went smoothly.
Thanks for the patience and understanding.
-
have now installed a new system with sme6.0 clean and done an upgrade to PHP 4.3.4 & MySQL 4.0.17 at the same time (I needed MySQL 4.0.17).
that doesn't upgrade gd tho does it? thats on of the big things i am waiting for... so i can do true colour not 256 colour images
have a poll on this bruce knows about it but if anyone else doesn't
if you would like to see an upgrade to a newer version of PHP including a newer version of Mysql & GD... something that is not 2 years old like somw of the current versions... and Idealy =>GD2
(maybe even look upgrading - Apache & PERL)
(Wish i could offer to do so but i'm not that much of a techie... but its still worth gettin it known that we want it upgraded)
please go here and vote!!!
http://forums.contribs.org/index.php?topic=20283.msg79813#msg79813
-
I've installed these files, and it does upgrade to GD 2.0.15 compatible.
Everything seems to work fine, but sometimes a page will not load until i refresh it. Happens with Twiggi, PhpMyAdmin and PHPSysInfo. In my logfiles there's something out permissions:
Feb 4 18:01:09 qs httpd: PHP Warning: Unknown(): open_basedir restriction in effect. File(/opt/administration/phpsysinfo/index.php) is not within the allowed path(s): (/home/e-smith/files/ibays/website) in Unknown on line 0
Feb 4 18:01:09 qs httpd: PHP Warning: Unknown(/opt/administration/phpsysinfo/index.php): failed to open stream: Operation not permitted in Unknown on line 0
Feb 4 18:01:09 qs httpd: PHP Warning: (null)(): Failed opening '/opt/administration/phpsysinfo/index.php' for inclusion (include_path='.:/usr/share/php') in Unknown on line 0
This doesn't happen everytime, just sometimes.
-
I am using ImageMagick-5.4.9-1.i386.rpm instead of GD. I like the results much more. Installed it without any problem.
-
Problems with the errors after the PHP upgrade solved. Had something to do with my primary domain settings. I´ve set my primary domain to the primary ibay and deleted the ibay I had redirected it to.
Don´t know why this caused the problem, but everything is working fine now.
-
Could you describe in details, how you solved the problems with the errors that come and go. I have the same problem-.
-
.. it does upgrade GD as i just did this upgrade (php + mysql 4) for a 5.6 box and now the graphics resize properly etc; GD version is something like 2.0.3 (off the top of me scone)
-
Could you describe in details, how you solved the problems with the errors that come and go. I have the same problem-.
I´ve deleted the ibay the primary domain was pointing to. After that, the problem didn´t come back. (The primary domain was pointing to the primary ibay)
I´ve now installed a new server, upgraded to php 4.3.4 first, and after that I made a new ibay for the primary domain. I´ve tested it, and it seems to work without a problem (I didn´t test it much yet)
-
Good try, but no cigar!
When attempting to install 4.3.4, I get:
Failed discrepencies errors. The screen looks like this:
error: failed depencencies:
BEGIN is needed by php-devel-4.3.4-1db
mkinstalldirs is needed by php-dev-4.3.4-1db
unixODBC is need by php-odbc-4.3.4-1db
libodbc.so.1 is needed by php-odbc-4.3.4-1db
postgresql is needed by is needed by pgsql-4.3.4-1db
libpg.so.2 is needed by pgsql-4.3.4-1db
Are there any updated RPMs out there?
Bruce I get similar -
postgresql & libpq.so.2 needed by php-pgsql,
did you end up finding these?
:pint: Rob
-
When you have tried just about everyting installing RPM's and still get dependancy errors.. try the following flag. This will install RPM's without checking dependantcies.
me@here> $ rpm -Uvh --nodeps installthisapp.rpm
Best Regards..
Cruzer