php-install Digest 26 Apr 2002 10:28:30 -0000 Issue 806
Topics (messages 6742 through 6744):
Re: Need help installing PHP.
6742 by: Dr CHEUNG Ngai Tseung
Re: 4.2.0 wont compile
6743 by: Stephan Wuelfert
Re: apache 2 install problems?
6744 by: Stephan Wuelfert
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Try renaming your file test.php
It works from the command line because you are invoking php directly, but
apache doesn't pass html files to the php module.
-----Original Message-----
From: John Clark [mailto:[EMAIL PROTECTED]]
Sent: Friday, 26 April 2002 06:17
To: [EMAIL PROTECTED]
Subject: Need help installing PHP.
I have downloaded and installed php-4.2.0 and apache 1.3.24.
With php configure and commands:
./configure --with-apxs=/usr/local/apache/bin/apxs
make install
I see that everything completes.
However when I load my test html file:
<html>
<head>
</head>
<body>
test<p>
<?phpinfo()?>
</body>
</html>
I see the one text 'test' print, but nothing of the <?phpinfo()?>
When I run: php test.html >x.html
and then access x.html from my browser, I see a table of info.
What do I have to do to apache to get it to process the php tags
correctly.
I've added the: AddType application/x-httpd-php .php
as well.
When I do the following example: <?php echo "hello world<p>"; ?>
All my browser gets is the garbled text of:
"; ?>
--- End Message ---
--- Begin Message ---
Hi,
you must specify the mysql-installdir: If you installed mysql in
/usr/local/mysql then write
./configure --with-mysql=/usr/local/mysql
--with-apxs2=/usr/local/apache2/bin/apxs
by
Stephan
Mefistofeles wrote:
> I've compile Apache 2.0.35 with --enable-so then
> in the php directory done
>
> ./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs
>
> and make
>
> which gives me
>
> In file included from libmysql.c:5:
> global.h:256: warning: redefinition of `uint'
> /usr/include/sys/types.h:152: warning: `uint' previously declared here
> global.h:257: warning: redefinition of `ushort'
> /usr/include/sys/types.h:151: warning: `ushort' previously declared here
> global.h:258: warning: redefinition of `ulong'
> /usr/include/sys/types.h:150: warning: `ulong' previously declared here
> In file included from libmysql.c:5:
> global.h:498:22: operator 'EOL' has no left operand
> In file included from libmysql.c:12:
> m_string.h:205:36: operator '==' has no right operand
> make[4]: *** [libmysql.lo] Error 1
> make[4]: Leaving directory `/usr/local/src/php-4.2.0/ext/mysql/libmysql'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/usr/local/src/php-4.2.0/ext/mysql/libmysql'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/local/src/php-4.2.0/ext/mysql'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/php-4.2.0/ext'
> make: *** [all-recursive] Error 1
> [root@h28n2fls31o826 php-4.2.0]#
>
> I'm obviously missing something vital. Any ideas what?
>
> /Mef.
--- End Message ---
--- Begin Message ---
Hi Andy Smith,
yep, I get the same behavior. One trick ist to start apache WITHOUT the
module, then reinsert it into the httpd.conf and restart apache. Then it
MAYBE restart fine.
But it is not as stable as I want it. Sometime it crashes.
I will still use the 1.3.24 (apache)and 4.1.2 (php)
by
Stephn
Andy Smith wrote:
> On Wed, Apr 10, 2002 at 05:24:34PM +0100, Andy Smith wrote:
>> On Wed, Apr 10, 2002 at 12:36:25AM +0100, Andy Smith wrote:
>>
>> > php does appear to build and install OK, but once the AddModule and
>> > LoadModule lines are added to httpd.conf, the server segfaults on
>> > startup. strace shows the following:
>>
>> I've since tried this again with CVS apache 2 and CVS PHP and get
>> the same behaviour.
>
> I gather from lack of response that this currently isn't possible.
> I'll check back in a few months. Keep up the good work folks.
>
--- End Message ---