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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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. | | |
|
|||
|
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 |