Trying to get php and apache to work together

This is a discussion on Trying to get php and apache to work together within the Apache Web Server forums, part of the Web Server and Related Forums category; Using php 4.3.x and apache (both 1.3.x and 2). I am trying to get them built ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-01-2004
Nwsgrp
 
Posts: n/a
Default Trying to get php and apache to work together

Using php 4.3.x and apache (both 1.3.x and 2). I am trying to get them built
on Linux.
Have followed the very good site of dan.drydog.com/apache2php.html and have
been able to build both apaches with no errors. Can start apache and have
no errors and all tests pass. Also can build php and again no errors. All
installations pass the tests.

However no php code works at all. The following is true for both Apache
1.3.X and Apache 2.X
If I test <?php phpinfo(); ?> which _should_ work, I get no output (to the
browser) at all. Further the mime type of *.php files (whether I define an
AddType entry in httpd.conf or not) is application/x-x-httpd-php.

I get the impression that php module is not being invoked at all. Has anyone
any ideas because I have totally run out.

(Any hints on debugging apache so I can see what is happening would also be
welcome)
--
Gr, Tim
  #2 (permalink)  
Old 04-02-2004
Davide Bianchi
 
Posts: n/a
Default Re: Trying to get php and apache to work together

Nwsgrp <nwsgrp01@fambinsted.demon.nl> wrote:
> I get the impression that php module is not being invoked at all. Has anyone
> any ideas because I have totally run out.


I've always followed the installation instruction on www.php.net
and never failed. Check the log files of Apache.

Davide

--
| There's no real need to do housework -- after four years it doesn't
| get any worse.
|
|
  #3 (permalink)  
Old 04-03-2004
Nwsgrp
 
Posts: n/a
Default Re: Trying to get php and apache to work together

Davide Bianchi wrote:

> Nwsgrp <nwsgrp01@fambinsted.demon.nl> wrote:
>> I get the impression that php module is not being invoked at all. Has
>> anyone any ideas because I have totally run out.

>
> I've always followed the installation instruction on www.php.net
> and never failed. Check the log files of Apache.
>
> Davide
>

To complete the story. I have found that you must build php with the
--with-apache and with-apache has to point to the source tree. In my case
this was in /tmp and not in /usr/local/XXX where configure expected it to
be.

Now it works fine.
--
Gr, Tim
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:39 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0