Re: Error starting Apache 1.3.22 with PHP 4.0.6.
| From: | Kacey A. Murphy | Date: | Wed, 17 Oct 2001 07:25:56 +0000 |
| Subject: | Re: Error starting Apache 1.3.22 with PHP 4.0.6. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71303@lists.php.net to get a copy of this message | ||
I followed a doc.
And these are the steps you have to take to install PHP4 on your RaQ3:
-open file /usr/sbin/apxs with an editor, e.g. vi
$>vi /usr/sbin/apxs
edit the line with $CFG_LIBEXECDIR to:
my $CFG_LIBEXECDIR = '/usr/lib/apache';
NOTE: change /usr/sbin and /usr/lib/apache to the appropriate directories
on your machine.
/usr/sbin is the directory where you can find apxs
/usr/lib/apache is the directory where Apache keept it's shared library,
usually the directory where you can find libperl.so
-unzip your php package in a directory of your choice
gunzip php_xxx.tar.gz
-then untar it like this:
tar xvf php_xxx.tar
-go to directory php_xxx
cd php_xxx
-start the configuration of your php source
$yourdirectory/php_xxx>./configure \
--with-apxs=/usr/sbin/apxs \
--with-mysql \
--enable-track-vars
NOTE: change /usr/sbin to the appropriate directory on your machine
-now we can build php
$yourdirectory/php_xxx>make
-copy the files to the right directory
$yourdirectory/php_xxx>make install
-copy the php.ini-dist to the right directory
$yourdirectory/php_xxx>cp ./php.ini-dist /usr/local/lib/php.ini
NOTE: you may need to edit your php.ini to your needs
check your php documentation for this, but normally you can let it as it is
-open your httpd.conf with an editor, usually you can find it in
/etc/httpd/conf
$>vi /etc/httpd/conf/httpd.conf
check whether these lines has been added to httpd.conf:
LoadModule php4_module /usr/lib/apache/libphp4.so
AddModule mod_php4.c
if you can not find it in any lines add them manually
-stop and start your Apache (not just restart it!)
-Voila! You are ready to use PHP4 on your RaQ3
That make sense!!!!
"Rasmus Lerdorf" <rasmus@php.net> wrote in message
news:Pine.LNX.4.33.0110170023030.1787-100000@rasmus.php.net...
> Your Apache install is a mess. How did you install it?
>
> > Just out of curiousity when I run MAKE INSTALL
> > Laste couple lines says
> >
> > /home/packages/php-4.0.6/build/shtool mkdir -p "/usr/lib/apache" &&
> > /usr/sbin/ao
> > apxs:Warning: /usr/bin/httpd not found or not executable
> > apxs:Warning: Continuing anyway...
> > apxs:Warning: No shared object support for Apache
> > apxs:Warning: available under your platform. Make sure
> > apxs:Warning: the Apache module mod_so is compiled into
> > apxs:Warning: your server binary `/usr/bin/httpd'.
> > apsx:Warning: Continuing anyway...
> > apxs:Error: Unknown option: S
> > Usage: apxs -g -n <modname>
> > apxs -q <query> ...
> > apxs -c [-o <dsofile>] [-D <name>[=<value>]] [-I <incdir>]
> > [-L <libdir>] [-l <libname>] [-Wc,<flags>]
> > [-Wl,<flags>]
> > <files> ...
> > apxs -i [-a] [-A] [-n <modname>] <dsofile> ...
> > make[1]: *** [install-sapi] Error 1
> > make[1]: Leaving directory `/home/packages/php-4.0.6'
> > make: *** [install-recursive] Error 1
> > [root@ns php-4.0.6]#
> >
> > Is this a problem
>