Greetings Josh, and other members of the php-install group,
With ongoing network problems at my home preventing download of the latest
Apache and PHP versions (heavy packet loss in wet weather), I finally just
purchased a copy of Core PHP Programming by Leon Atkinson - complete with
apache and PHP tar archives on CD. But I am still encountering the same
problem ie php code is not being processed (I see HTML output, but not PHP
output).
I copied the following to tar archives from the books CD to /usr/local/src:
-r-xr-xr-x 1 root root 1709589 May 7 2000 apache_1.3.12.tar.gz
-r-xr-xr-x 1 root root 1928405 May 27 2000 php-4.0.0.tar.gz
I followed the installation instructions in that book (using static instead
of shared lib), and all went without a problem - until I tried to run php
through netscape-4.72-6 on Linux 2.2.14 (SuSE 6.4). In Netscape, under View
Page Source, I see the PHP code - but it's not executing.
In my most recent attempt to configure Apache and PHP from scratch I followed
the suggestions of Josh Lokot but encountered the following configure
problems in specifying apxs.
Your input is appreciated. I am looking forward to making use of PHP!
bombur:/usr/local/src/apache_1.3.12 # ./configure
--prefix=/usr/local/src/apache
_1.3.12 --enable-module=so
Configuring for Apache, Version 1.3.12
+ using installation path layout: Apache (config.layout)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
+ configured for Linux platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ checking for system header files
+ adding selected modules
+ using -ldl for vendor DSO support
+ checking sizeof various data types
+ doing sanity check on compiler and options
Creating Makefile in src/support
Creating Makefile in src/regex
Creating Makefile in src/os/unix
Creating Makefile in src/ap
Creating Makefile in src/main
Creating Makefile in src/lib/expat-lite
Creating Makefile in src/modules/standard
bombur:/usr/local/src/php-4.0.0 # find / -name apxs
/usr/sbin/apxs
/usr/local/src/apache_1.3.12/src/support/apxs
/usr/local/src/apache_1.3.12/bin/apxs
bombur:/usr/local/src/php-4.0.0 # ./configure
--with-apxs=/usr/local/src/apache_
1.3.12/bin/apxs
<SNIP>
checking for Apache module support via DSO through APXS...
Usage: apxs -g [-S <var>=<val>] -n <modname>
apxs -q [-S <var>=<val>] <query> ...
apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
[-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
[-Wl,<flags>] <files> ...
apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
configure: error: Sorry, I cannot run apxs. Either you need to install Perl
or y
ou need to pass the absolute path of apxs by using
--with-apxs=/absolute/path/to
/apxs
bombur:/usr/local/src/php-4.0.0 # whereis perl
perl: /usr/bin/perl5.00503 /usr/bin/perl <--- perl is on the
system
So next I tried a different apxs path:
bombur:/usr/local/src/php-4.0.0 # ./configure --with-apxs=/usr/sbin/apxs
<SNIP>
checking for Apache module support via DSO through APXS...
Usage: apxs -g [-S <var>=<val>] -n <modname>
apxs -q [-S <var>=<val>] <query> ...
apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
[-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
[-Wl,<flags>] <files> ...
apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
configure: error: Sorry, I cannot run apxs. Either you need to install Perl
or y
ou need to pass the absolute path of apxs by using
--with-apxs=/absolute/path/to
/apxs
bombur:/usr/local/src/php-4.0.0 # ./configure
--with-apxs=/usr/local/src/apache_
1.3.12/src/support/apxs
<SNIP>
checking for Apache module support via DSO through APXS...
./configure: /usr/local/src/apache_1.3.12/src/support/apxs: No such file or
dire
ctory
configure: error: Sorry, I cannot run apxs. Either you need to install Perl
or y
ou need to pass the absolute path of apxs by using
--with-apxs=/absolute/path/to
/apxs
Saw that apxs perl script was looking for /usr/local/bin/perl, so modified to
/usr/bin/perl:
bombur:/usr/local/src/apache_1.3.12/src/support
# vi apxs
...
bombur:/usr/local/src/apache_1.3.12/src/support # whereis perl
perl: /usr/bin/perl5.00503 /usr/bin/perl
bombur:/usr/local/src/apache_1.3.12/src/support # grep perl apxs
#!/usr/bin/perl
bombur:/usr/local/src/apache_1.3.12/src/support # cd ../../../php*
bombur:/usr/local/src/php-4.0.0 # ./configure
--with-apxs=/usr/local/src/apache_
1.3.12/src/support/apxs
<SNIP>
checking for Apache module support via DSO through APXS...
Usage: apxs -g [-S <var>=<val>] -n <modname>
apxs -q [-S <var>=<val>] <query> ...
apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
[-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
[-Wl,<flags>] <files> ...
apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
configure: error: Sorry, I cannot run apxs. Either you need to install Perl
or y
ou need to pass the absolute path of apxs by using
--with-apxs=/absolute/path/to
/apxs
Regards,
Eric Stahl
**********************************************************
>[EMAIL PROTECTED] (Josh Lokot)
>To: [EMAIL PROTECTED]
>CC: [EMAIL PROTECTED]
>I highly recommend you build from source. It's easier than most people
>think.
>All you have to do for a basic install is
>for apache:
>configure --enable-module=so
>for php
>configure --with-apxs=/path/to/apxs
>it's that easy... assuming you want to build as dso etc etc etc
>Josh
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, January 10, 2001 3:49 PM
Subject: Re: [PHP-INST] Not seeing PHP output
> Hello Josh (and members of the PHP install mail list),
>
> As shown in the httpd.conf file of my first email, libphp3.so was
referenced.
>
> I have since installed PHP 4 and reinstalled Apache (both from the SuSE
> install disks used in the original OS install). I modified the httpd.conf
> file accordingly (moved the PHP4 references to outside of any
IfDefine's) -
> same situation - the PHP reaches the webserver but is not displayed.
>
> >From my reading - perhaps Apache needs to be specially compiled for PHP
> support, as opposed to merely installed through Yast from the SuSE install
> CD's? I'm next considering locating the source for such a build (at apache
> org?).
>
> Input appreciated. I'm anxious to make use of PHP.
>
>
> Regards,
>
> Eric Stahl
>
>
> In a message dated 1/8/01 5:01:10 PM Pacific Standard Time, [EMAIL PROTECTED]
> writes:
>
> << Apache isn't running the page through php first, it's just sending it
> staight to the browser. The fact that all you see is the text outside of
> the <? ?> tags is perfectly understandable, since your browser is
supposed
> to just ignore anything it doesn't understand.
>
> All I can suggest is to double check that you have your libphp3.so module
> loaded in your httpd.conf.
>
> Anyone?
>
> Josh.
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Monday, January 08, 2001 7:21 PM >>
<SNIP>
--
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]