| How to upgrade PHP in e-smith 4.1.2 |
|
|
|
Author: Dan Brown <dan@familybrown.org>
Problem: Solution: Download the following files into a fresh directory on your e-smith server: The following rpm is required for php to function in the e-smith 4.1.2 primary ibay. If you have not installed this update already, download from here: ftp://ftp.e-smith.org/pub/e-smith/updates/4.1.2/RPMS/noarch/e-smith-base-4.4.0-21.noarch.rpm The following rpm is required for all machines, to provide XML support: ftp://rpmfind.net/linux/redhat/7.1/en/os/i386/RedHat/RPMS/expat-1.95.1-1.i386.rpm For i586 machines (Pentium, AMD K6,
etc.):
For i686 machines (Pentium
Pro/II/III/4, Celeron, Athlon, etc.) Then, log in as root and run these commands: [root@e-smith /root]# mv /etc/php.ini
/etc/php.ini.old In php.ini, you'll see a line that says: magic_quotes_gpc = On Change that value to "Off" (without the quotes) Also, by default PHP limits the file size a user can post or upload via a php form. Whilst your editing the file, to increase the file size limit simply edit the value of the following two lines to whatever suits your needs, say 10M, exit pico saving your changes and restart httpd. post_max_size = 8M [root@e-smith /root]# /etc/rc.d/init.d/httpd restart 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.0.5, 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. |
|
|