I'd said I would wait until the 4.0.6 RPMs were ready, but then I
figured that the changes brought on by them _should_ be very minor, so I
might as well get this out there ASAP.  This worked for me on a clean
4.1.2 install; give it a spin and let me know how you get on.

HOW-TO upgrade PHP to version 4.0.5 on the e-smith Server and Gateway,
version 4.1.2

        Download the following files into a fresh directory on your e-smith
server:

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.):
http://rpms.arvin.dk/php/install-ready/i586/php-4.0.5-2.arvin.i586.rpm
http://rpms.arvin.dk/php/install-ready/i586/mod_php-4.0.5-2.arvin.i586.rpm
http://rpms.arvin.dk/php/install-ready/i586/php-imap-4.0.5-2.arvin.i586.rpm
http://rpms.arvin.dk/php/install-ready/i586/php-ldap-4.0.5-2.arvin.i586.rpm
http://rpms.arvin.dk/php/install-ready/i586/php-mysql-4.0.5-2.arvin.i586.rpm

For i686 machines (Pentium Pro/II/III/4, Celery, Athlon, etc.)
http://rpms.arvin.dk/php/install-ready/i686/php-4.0.5-2.arvin.i586.rpm
http://rpms.arvin.dk/php/install-ready/i686/mod_php-4.0.5-2.arvin.i586.rpm
http://rpms.arvin.dk/php/install-ready/i686/php-imap-4.0.5-2.arvin.i586.rpm
http://rpms.arvin.dk/php/install-ready/i686/php-ldap-4.0.5-2.arvin.i586.rpm
http://rpms.arvin.dk/php/install-ready/i686/php-mysql-4.0.5-2.arvin.i586.rpm

        Then, log in as root and run these commands:

# mv /etc/php.ini /etc/php.ini.old
# cd /path/to/downloaded/files
# rpm -Uvh *
# pico /etc/php.ini

        In php.ini, you'll see a line that says:

magic_quotes_gpc        =       On

        Change that value to "Off" (without the quotes), and exit, saving your
changes.

# service httpd-e-smith restart

        At this point, you're done.  If you want to make sure it's working
properly, and you've installed the e-smith-base-4.4.0-21 update, 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.

--
Dan Brown, KE6MKS, [EMAIL PROTECTED]
"Meddle not in the affairs of dragons, for you are crunchy
and taste good with ketchup."

--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to