Yes. You can upgrade to 1.3.9 and PHP 3.0.14 (and the latest version of MySQL too if you want!) I've done all 3 without problems. But you WILL have to recompile httpd from source. If you want to know how to do it read below: *DISCLAIMER!* THIS WILL INVALIDATE YOUR WARRANTY!! DO SO AT YOUR OWN RISK! Backup /usr/sbin/httpd and then you SHOULD be able to roll back to the Cobalt httpd if needed (by replacing it) I take no responsibility for this if it goes wrong. I'm only tell you how I got it to work. You'll need to get the apache 1.3.9 source from http://www.apache.org/ the php 3.0.14 source from http://www.php.net AND if required the MySQL source from http://www.mysql.org/ Untar + install MySQL first. IF you have previously installed the RPM's of MySQL I recommend you DON'T just do a configure;make;make install. I believe the install paths are different. If you don't require the latest MySQL you can skip this stage. More help can be found in the README and INSTALL files (I believe?) that come with MySQL. Next untar php AND apache. You need to apply the apache + cobalt patch to this source. I have included it with this e-mail. To run it type: patch -p0 < apache_1.3.3-cobalt.patch Because it's for 1.3.3 it won't find the files, so you'll have to type the paths manually when requested. Substituting 1.3.9 for 1.3.3 should do it. Also on one patch it WILL fail in one part. This is NOT important. It is where it changes the httpd version from Apache/1.3.3 to Apache/1.3.3 Cobalt. If you wondered how to do that look in src/include/httpd.h - Line 422 (keyword BASEVERSION) Configure apache with: ./configure --prefix=/etc/httpd --sysconfdir=conf But DON'T compile it!! Change to the PHP directory and configure with: ./configure --with-mysql --with-apache=../apache_1.3.9 --enable-trackvars IF you're not wanting to compile MySQL support into PHP/Apache (As in you don't have it installed!) then remove the --with-mysql. You NEED to change the ../apache_1.3.9 to point to the base directory of your apache source (where you just ran configure) Then make and make install This will move the compiled PHP module into your Apache source. Change back into the apache source directory (where you previously just configured). You WILL need at this point mod_auth_pam.c I have enclosed it with this e-mail. REconfigure Apache again with: (This is all one line!) ./configure --prefix=/etc/httpd --sysconfdir=conf --activate-module=src/modules/php3/libphp3.a --enable-module=mmap_static --enable-module=log_agent --enable-module=log_referer --enable-module=mime_magic --enable-module=info --enable-module=speling --enable-module=proxy --enable-module=rewrite --enable-module=auth_anon --enable-module=auth_dbm --enable-module=auth_db --enable-module=digest --enable-module=cern_meta --enable-module=expires --enable-module=headers --enable-module=usertrack --enable-module=example --enable-module=unique_id --enable-module=so --add-module=./mod_auth_pam.c You will need to change the final ./mod_auth_pam.c to whereever you have put mod_auth_pam.c If you don't include this all hell will break loose when you try and run apache! (Config file has settings for it!) After it finishes configuring (!) make it but... DO NOT MAKE INSTALL APACHE (okay big letters but I wanted to get it across) In the src directory you will find a new httpd binary! ;-) Move this to /usr/sbin/httpd (BACKUP THE ORIGINAL FIRST!) Finally. IF you previously had the PHP module installed. You'll need to edit /etc/httpd/conf/httpd.conf Find the two lines: (they are not together, but are both up the top somewhere) LoadModule php3_module /usr/libexec/apache/mod_php3.so AddModule mod_php3.c Comment them out by putting a hash (#) before both of them: #LoadModule php3_module /usr/libexec/apache/mod_php3.so #AddModule mod_php3.c In theory that SHOULD do it. Worked for me! ;-) You need to now restart httpd. /etc/rc.d/init/httpd.init restart Watch for any error messages! All should go well! ;-) If it has gone pear shaped at the worst you should just be able to swap the /usr/sbin/httpd backup into place and restart httpd again. Hope that helps! ;-) --Neil From: cobalt-users-admin@xxxxxxxxxxxxxxx [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Steven Werby Sent: 16 January 2000 17:01 To: cobalt-users@xxxxxxxxxxxxxxx Subject: [cobalt-users] Upgrading to Apache 1.3.9 on RaQ2 Has anyone upgraded a RaQ2 to Apache 1.3.9? It is a requirement for PHP 3.0.14 which I need in order to install the PHP Base Library. I want to know if anyone has successfully upgraded to Apache 1.3.9 on a RaQ2, whether it was from the source or the binary, where they unpacked the tar file (and if that's important), and what settings to use. I have the tar files for PHP and Apache and I've read the online and built-in documentation, but it's not clear to me. If anyone has been through this and can point me in the right direction it would really help. Steven {steven@xxxxxxxxxxxx} _______________________________________________ cobalt-users mailing list cobalt-users@xxxxxxxxxxxxxxx http://list.cobalt.com/mailman/listinfo/cobalt-users
Attachment:
mod_auth_pam.c
Description: Binary data
Attachment:
apache_1.3.3-cobalt.patch
Description: Binary data