[ale] Compiling Apache + PHP4

Tom Younker twins at atlnet.com
Fri Mar 16 12:02:56 EST 2001


Jim wrote:

> The command to shut down the daemon is:
>
> mysqladmin shutdown

my system replies:

    connect to server at 'localhost' failed
    error:  'Access denied for user: 'root at localhost' (Using password: NO)'

I hope this explains why the script fails to shut it down.

Thanks,

Tom


>
>
> Tom Younker wrote:
>
> > 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:
> >
> >  < SNIP>

>
> > 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:
> >
> >
> >> 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.

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





More information about the Ale mailing list