I am doing this because I need to mantian backwards compatibility for a Site writen in php3, that uses "register_session", which is no longer available after php 4.0.6.
In the server is installed apache 1.3.26 and php 4.2.2
The PHP documentation gives these instructions on using php3 and php4 as concurrent apache modules:
Code: Select all
With some (newer) installations of Apache, it's possible to compile both
PHP 3 and PHP 4, and run them concurrently.
Note, it's only really wise to do this if you need to use the PHP 3 engine
to maintain backwards compatibility.
To enable it, configure PHP 3 and PHP 4 to use APXS (--with-apxs) and the necessary link extensions (--enable-versioning). Otherwise, all standard installations instructions apply. For example:
$ ./configure
--with-apxs=/apache/bin/apxs
--enable-versioning
--with-mysql
Code: Select all
'./configure' '--prefix=/usr/share' '--datadir=/usr/share/php' '--bindir=/usr/bin' '--libdir=/usr/share' '--includedir=/usr/include' '--with-_lib=lib' '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin' '--disable-debug' '--enable-bcmath' '--enable-calendar' '--enable-ctype' '--enable-dbase' '--enable-discard-path' '--enable-exif' '--enable-filepro' '--enable-force-cgi-redirect' '--enable-ftp' '--enable-gd-imgstrttf' '--enable-gd-native-ttf' '--enable-inline-optimization' '--enable-magic-quotes' '--enable-mbstr-enc-trans' '--enable-mbstring' '--enable-memory-limit' '--enable-safe-mode' '--enable-shmop' '--enable-sigchild' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--enable-wddx' '--enable-yp' '--with-bz2' '--with-dom=/usr/include/libxml2' '--with-ftp' '--with-gdbm' '--with-gettext' '--with-gmp' '--with-imap=yes' '--with-iodbc' '--with-jpeg-dir=/usr' '--with-ldap=yes' '--with-mcal=/usr' '--with-mcrypt' '--with-mysql=/usr' '--with-ndbm' '--with-pgsql=/usr' '--with-png-dir=/usr' '--with-qtdom=/usr/lib/qt2' '--with-snmp' '--with-t1lib' '--with-tiff-dir=/usr' '--with-ttf' '--with-freetype-dir=yes' '--with-xml' '--with-xpm-dir=/usr/X11R6' '--with-zlib=yes' '--with-gd=shared' '--with-openssl' '--with-curl' '--with-swf=./dist/' '--with-imap-ssl' '--enable-xslt' '--with-xslt-sablot' '--with-mm' '--with-apxs=/usr/sbin/apxs' 'i586-suse-linux'
Now, when I try to install PHP 3.1.8, begining with configuring it with the 3 required options:
Code: Select all
./configure
--enable-versioning
--with-mysql
--with-apxs=/usr/sbin/apxs (I took the path from the PHP 4.2.2 Info, but when I look through shell, I can't find any files or directories called apxs in this directory, nore any other directory in the server when I search for it with: find / -name apxs)
Code: Select all
WARNING: Your /usr/sbin/apxs script is most likely broken.
Please go read http://www.php.net/FAQ.php3#6.11 and make the
changes described there and try again.
- The path could be wrong(if so, what is php 4.2.2 using than? I have sites that are running on php 4.2.2 perfectly in the server),
- or apxs is not installed at all. (in this case how do I install it, without damaging anything else)
- or could there be something else that I'm doing wrong?
Thanx in forward
/gnome_x
