Hi
Previously I wrote :
****************************************
I've been trying to install and build php 4 with apache 1.3.20 on linux and
have had a couple of minor problems.
I've been following the build instructions at
http://www.php.net/manual/en/install.apache.php.
1) As indicated in the above instructions I configure the php using the
following command :
./configure --with-mysql --with-apache=../apache_1.3.20 --enable-track-vars
--with-config-file-path="/imerge/home/lc1/php-4.0.6/usr/local/lib"
'make' seems to run through fine.
when I run 'make install' it's attempting to create directories in
/usr/local/lib - which fails because I haven't got permissions :
make[1]: Entering directory `/imerge/home/lc1/php-4.0.6/pear'
make[2]: Entering directory `/imerge/home/lc1/php-4.0.6/pear'
mkdir cannot make directory '/usr/local/lib/php
+----------------------------------------------------------------------+
| The installation process is incomplete. The following resources were |
| not installed: |
| |
| Self-contained Extension Support |
| PEAR: PHP Extension and Add-on Repository |
| |
| To install these components, become the superuser and execute: |
| |
| # make install-su |
+----------------------------------------------------------------------+
make[2]: *** [install-data-local] Error 5
make[2]: Leaving directory '/imerge/home/lc1/php-4.06/pear'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/imerge/home/lc1/php-4.06/pear'
make: *** [install-recursive] Error 1
I've got round this by setting an INSTALL_ROOT environment variable to a
directory for which I have permissions, does anyone know how to change this
default directory more officially (using configure options) ?
2) I then confugure apache as instructed (except I've changed libphp4.a to
libmodphp4.a - since that seems to be the name of the library generated)
using the command :
./configure --activate-module=src/modules/php4/libmodphp4.a
When I make this I get compile errors for mod_php4.c for a load of php
headers, saying it can't find the files - messages something like :
mod_php4.c:28: zend.h: No such file or directory
mod_php4.c:28: php.h: No such file or directory
..... etc.
This isn't surprising since these headers are under the php directory
structure. Have I done something wrong here or am I supposed to copy the
headers to the apache directory structure otr manually update the makefile ?
************************
I got round thse problems by setting INSTALL_ROOT and altering the #includes
in the relevant php files, but I guess there must be a "proper" way to do
them. If anyone out there knows how to do this I would still like to know
how.
Having got all this to build when I start appache and I try to run a file
with a .php extension using IE5.5 I get a dialog box up as if I have
selected a file to download :
You have chosen to download a file from this location.
hello.php from 172.20.30.3
... etc. etc.
My httpd.conf file has the following file type commands :
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-tar .tgz
Anyone know what the problem might be here.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Imerge Limited Tel :- +44 (0)1954 783600
Unit 6 Bar Hill Business Park Fax :- +44 (0)1954 783601
Saxon Way Web :- http://www.imerge.co.uk
Bar Hill
Cambridge
CB3 8SL
United Kingdom
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
PHP Install 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]