I am trying to create a backup server and have done a clean install of FreeBSD 8.2 with Apache 2.20.0 and PHP 5.3.8. Apache seemed to install OK (I got the usual 'It Works' message), but I can't run test.php with the code in this post title. I compiled php5 with APACHE=true. If I enter this from the command line:
I get the php info results one would expect. But from a browser I only either get the text entered in test.php or a WSOD (depending on what I tried to solve the problem). The httpd-access.log after entering test.php in the browser shows:
Note the httpd server is running on 192.168.0.3 the browser call was from 192.168.0.2. I have been seeing these errors in the httpd-errors.log:
and
But I'm not sure they're relevant. There appearance depends on whether I use stop, start or restart with the apachectl command. I have only added these lines to httpd.conf:
And DocumentRoot has allow from all permission. Please can somebody offer some guidance. As my mother would say:
Code:
[cmd=%]php -r 'print_r(phpinfo());'[/cmd]
Code:
192.168.0.2 - - [12/Sep/2011:23:49:45 +0100] "GET /test.php HTTP/1.1" 200 17 "-" "Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20100101 Firefox/6.0.2"
Code:
[Mon Sep 12 23:22:08 2011] [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter
Code:
[Mon Sep 12 21:52:12 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
Code:
DirectoryIndex index.php index.html index.htm
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php .htm .html
I can't see for looking