We use a static (non-DSO) version of apache for top speed. At the bottom of
the message is a list of commands we use to create a web server on a new
machine (assuming the .tar.gz files are there). Our main servers use apache
1.3.12 and PHP 4.0.4pl1. This test updates them to Apache 1.3.19 and
php-4.0.5RC1 and fails to compile apache in the php module:
#configure for apache:
CC=gcc CFLAGS="-O6 -march=i686 " CXX=gcc CXXFLAGS="-O6 -march=i686 " \
./configure \
--activate-module=src/modules/php4/libphp4.a --enable-module=rewrite
make
...
===> src/modules/php4
make[4]: *** No rule to make target `all'. Stop.
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/home/network54/webserver/apache_1.3.19/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/home/network54/webserver/apache_1.3.19'
make: *** [build] Error 2
Not all php modules are the most up-to-date, but php compiles and installs
just fine. Here is the relevant part from php's make install:
make[1]: Entering directory `/home/network54/webserver/php-4.0.5RC1'
mkdir -p /home/network54/webserver/apache_1.3.19/src/modules/php4; cp
libs/libphp4.a
/home/network54/webserver/apache_1.3.19/src/modules/php4/libmodphp4.a; cp
/home/network54/webserver/php-4.0.5RC1//sapi/apache/mod_php4.*
sapi/apache/libphp4.module
/home/network54/webserver/apache_1.3.19/src/modules/php4; cp
./sapi/apache/apMakefile.tmpl
/home/network54/webserver/apache_1.3.19/src/modules/php4/Makefile.tmpl; cp
./sapi/apache/apMakefile.libdir
/home/network54/webserver/apache_1.3.19/src/modules/php4/Makefile.libdir
After the failure of apache's make above, I did a 'ls' on the dir:
ls src/modules/php4
Makefile.libdir Makefile.tmpl libmodphp4.a libphp4.module mod_php4.c
mod_php4.exp mod_php4.h mod_php4.lo mod_php4.o
No Makefile. Is this an error with PHP or Apache?
Sincerely,
Steven Roussey
Network54.com
http://network54.com/?pp=e
Build commands given .tar.gz files:
gunzip < openssl-0.9.6.tar.gz | tar xvf -
cd openssl-0.9.6
make clean
CC=gcc CFLAGS="-O6 -march=i686 " CXX=gcc CXXFLAGS="-O6 -march=i686 " \
./config
make
make install
cd ..
gunzip < libxml2-2.2.11.tar.gz | tar xvf -
cd libxml2-2.2.11
CC=gcc CFLAGS="-O6 -march=i686 " CXX=gcc CXXFLAGS="-O6 -march=i686 " \
./configure --disable-corba
make
make install
cd ..
gunzip < expat-1.95.1.tar.gz | tar xvf -
cd expat-1.95.1
CC=gcc CFLAGS="-O6 -march=i686 " CXX=gcc CXXFLAGS="-O6 -march=i686 " \
./configure
make
make install
cd ..
gunzip < Sablot-0.50.tar.gz | tar xvf -
cd Sablot-0.50
CC=gcc CFLAGS="-O6 -march=i686 " CXX=gcc CXXFLAGS="-O6 -march=i686 " \
./configure
make
make install
cd ..
gunzip < zlib.tar.gz | tar xvf -
cd zlib-1.1.3
CC=gcc CFLAGS="-O6 -march=i686 " CXX=gcc CXXFLAGS="-O6 -march=i686 " \
./configure --shared
make
make install
cd ..
gunzip < apache_1.3.19.tar.gz | tar xvf -
cd apache_1.3.19
CC=gcc CFLAGS="-O6 -march=i686 " CXX=gcc CXXFLAGS="-O6 -march=i686 " \
./configure \
--activate-module=src/modules/php4/libphp4.a --enable-module=rewrite
cd ..
gunzip < php-4.0.5RC1.tar.gz | tar xvf -
cd php-4.0.5RC1
CC=gcc CFLAGS="-O6 -march=i686 " CXX=gcc CXXFLAGS="-O6 -march=i686 " \
./configure --with-mysql --with-xml --with-dom --with-zlib --with-gd \
--with-openssl --with-sablot --with-apache=../apache_1.3.19 --enable-inline-
optimization
make
make install
cd ..
cd apache_1.3.19
CC=gcc CFLAGS="-O6 -march=i686 " CXX=gcc CXXFLAGS="-O6 -march=i686 " \
./configure \
--activate-module=src/modules/php4/libphp4.a --enable-module=rewrite
make
make install
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]