| How to upgrade PHP in SME Server v5.1.2 | ||||||||||
|
| ||||||||||
|
Author: Dan Brown <dan@familybrown.org
> Problem: If you're using SME Server v5.0, you'll need a couple of additional libraries that are not included with this version. To retrieve and install them, run the following commands: [root@e-smith
/root]# mkdir expat [root@e-smith
/root]# mkdir php412
[root@e-smith php412]# rpm -Fvh * Note that there are also versions of these RPMs for i586 and i686. The i386 versions will work on these processors, but the i586 and i686 versions are optimized for them, and should offer improved performance. To retrieve those, replace i386 with i586 or i686 in the ARCH= statement above. If you have a Pentium (or equivalent) processor, use ARCH=i586. If you have a Pentium Pro, II, III, or 4 (or equivalent), use ARCH=i686. Next, we will edit php.ini a little to clean things up. Issue the following command: [root@e-smith php412]# pico -w /etc/php.ini PHP 4.1.1 doesn't like some of the database calls that IMP uses, even though they still work. To avoid having errors clutter up your screen, you'll want to find the line that says display_errors and set that to Off . If you want them to be logged, set log_errors to On , and error_log to syslog. [root@e-smith php412]# /etc/e-smith/events/actions/restart-httpd-full At this point, you're done. If you want to make sure it's working properly, then create a file in /home/e-smith/files/primary/html called test.php, and include the following line: <? phpinfo(); ?> Then point your web browser to http://yourserver/test.php. You should get a colorful screen indicating PHP version 4.1.1, and (among other things) support for IMAP, LDAP, and MySQL. If you're paranoid about security, it'd be a good idea to remove this file once you're satisfied that everything is working, as it exposes many details about your system configuration. If you just saw the PHP source for that page, you need to upgrade your e-smith-base package. You can find instructions at http://www.e-smith.org/bugs/index.php3?op=showBug&bugID=27 NOTE: | ||||||||||
|
Copyright © 2002 Dan Brown. This document may be freely redistributed so long as this notice remains intact. |