PHP and being brain locked

Michael Satterwhite michael at weblore.com
Tue Dec 19 18:39:05 UTC 2006


Mark Mace wrote:
> Michael Satterwhite wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> OK, I'll be the first to admit that I'm in a case of brain freeze. I've
>> brought up a new ubuntu (actually kubuntu, but the configuration should
>> be the same) box. I've installed apache and php4. When I try to view a
>> ..php page, I'm getting an error telling me that apache doesn't know what
>> to do with php files.
>>
>> Would someone be so kind as to let me know what I've omitted? It won't
>> bother me if you laugh at me as you do ... I deserve it.
> 
> sounds like apache doesn't know what to do with php files.  Look in your 
> apache.conf file for the following line(s)
> 
> LoadModule php5_module        modules/libphp5.so
> //modify it to match version of php
> 
> AddType application/x-httpd-php .php
> //this tells apache to parse .php files as php.

I'd done the latter, but forgot the former. ubuntu separates the
configuration files, and the LoadModule commands are in modules.conf.
Being I didn't *SEE* the LoadModule command when I was editing
httpd.conf, I didn't think of it (brain freeze). Ah, well. At least now
it's working.

---Michael




More information about the ubuntu-users mailing list