[ale] Compiling Apache + PHP4

Tom Younker twins at atlnet.com
Mon Mar 12 08:53:22 EST 2001



Jin & All:

I now have Apache 1.3.17, PHP 4.0.4pl1, MySQL 3.23.33 running on Debian 2.1, and if

anyone wants the line-by-line description, just ask.

I tackled the Apache + PHP + MySQL yesterday, and here are the secrets to my
success:

MySQL:  compile from source, not the binary install, to be able to add"--with-lz"
to the configure script.  Else I got "Unfound compress" and "Unfound uncompress"
errors when compiling Apache + PHP, apparently due to missing zlib references.

PHP:   add "--includedir=/usr/include" to the configure script, else got lots of
unfound header files when compiling Apache, no matter what I tried.

CPU:  using the old K5-133 on a year-2000 mobo, I often got 'Signal 11" errors on
make, despite several BIOS tweaks, and had to restart several times.  Replaced it
with a Pentium 133 and was able to start over fresh and complete the whole process
without any Signal 11 errors.

NOW -  why does MySQL seem to start up fine, but refuse to shut down ?

Killing mysqld with pid 208
Wait for mysqld to exit\c
.\c
.\c    ( about 20 times)
gave up waiting !

and  pstree shows mysqld still running !?

Thanks,

Tom

Jim wrote:
Jim wrote:

> It should be pretty simple if you follow these steps:
>
> 1.  gunzip apache_1.3.x.tar.gz
> 2.  tar xvf apache_1.3.x.tar
> 3.  gunzip php-x.x.x.tar.gz
> 4.  tar xvf php-x.x.x.tar
> 5.  cd apache_1.3.x
> 6.  ./configure --prefix=/www
> 7.  cd ../php-x.x.x
> 8.  ./configure --with-mysql --with-apache=../apache_1.3.x
> --enable-track-vars
> 9.  make
> 10. make install
> 11. cd ../apache_1.3.x
> 12. ./configure --activate-module=src/modules/php4/libphp4.a
> 13. make
> 14. make install
> 15. cd ../php-x.x.x
> 16. cp php.ini-dist /usr/local/lib/php.ini
> 17. Edit your httpd.conf or srm.conf file and add:
>        AddType application/x-httpd-php .php
>
> 18. Use your normal procedure for restarting the Apache server. (You must
>      stop and restart the server, not just cause the server to reload by
>      use a HUP or USR1 signal.)
>
> Tom Younker wrote:
>
> > All:
> >
> > I worked a tutorial in "Linux Format" magazine, to have a current
> > Apache / PHP4 / MySQL installation.  Got MySQL installed (mostly) OK,
> > but got stuck compiling Apache with PHP support.
> >
> > Apache "make" gives a string of "no such file or directory" errors
> > in mod_php4.c, on php.h, php_variables.h, php_ini.h, etc.  Here are
> > the attempts I made to get around this:
> >
> > export INCLUDE_PATH=/usr/local/php-4.0.4pl1
> >
> > export INCLUDE_PATH=/usr/local/php-4.0.4pl1/main:/usr/local/php-4.0.4
> > pl1/Zend:/usr/local/php-4.0.4pl1/regex
> >
> > copy the header tree from php-4.0.4pl1 into the apache directory where
> > mod_php4.c resides
> >
> > add --includedir=/usr to the php4 ./configure ( I thought it would
> > assume /usr/include)  I copied the header files at /usr/php to
> > /usr/include AND to /usr/include/php
> >
> > I edited mod_php4.c to put a path in front of the #include "php.h"
> > etc, but then had problems when that header included another header
> > using a relative path (eg #include "../Zend/zend.h")
> >
> > What am I missing?  I just want current versions of all with the
> > ability to choose options.
> >
> > Thanks
> > Tom
> >
> >
> > --
> > To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list