Ubuntu - Apache2 & PHP -> Download index.php?
Francesco Peeters
Francesco at FamPeeters.com
Sat Sep 2 15:08:18 CST 2006
On Fri, September 1, 2006 0:44, David Lloyd said:
>
> <big snip>
>
> You did check the error logs, didn't you?
>
> Another thing that I do when I get a problem like this is:
>
> 1. Find the configuration file(s) it's supposedly using
> 2. Enter some nonsense config into them
> 3. Run apachectl configtest (or apache2ctl configtest)
>
> If it complains, I've got the config files in the right place; I'm
> always surprised how often it refuses to complain.
>
> Also, try creating a PHP file like this:
>
> % cat info.php
> <?php phpinfo(); ?>
>
>
Yeah, checked the logs and all, but nothing in there...
The log did show that php was being loaded whenever I (re)started
I found however that the 'AddType' commands were both in apache2.conf and
mods-enabled/php4.conf.
I commented out the AddType lines in apache2.conf, and things started to
work?!...
Only got one issue left now, which is more a nuisance than a problem:
Warning at /usr/share/mythtv/mythweb/includes/init.php, line 50:
session_start(): open(php_sessions/sess_981b6f28c42f5e550145d9236850e23f,
O_RDWR) failed: No such file or directory (2)
Have to really get started on this one yet, though... If anybody has
suggestions, they'd be appreciated, but I suspect it is related to the PHP
sessions settings in php.ini...
Thanks anyway!
--
Francesco Peeters
----
GPG Key = AA69 E7C6 1D8A F148 160C D5C4 9943 6E38 D5E3 7704
If your program doesn't recognize my signature, please visit
http://www.CAcert.org/index.php?id=3 to retrieve the Root CA certificate.
More information about the linuxsa
mailing list