|
Posted by Whil Hentzen on 04/05/05 20:49
Hi folks,
I've done a bit of work with PHP/MySQL on a Fedora Core server over the
past few months and just about the time I got comfortable, it was time
to change the server to SuSE. What a delight! Installed Apache 2, PHP
and MySQL and I was processing pages within minutes.
So now I switched my development box to SuSE, then, later, installed
Apache 2 and PHP via YaST, and it's burping on me. Apache processes
static pages fine, but the PHP function calls aren't being processed.
I'm guessing that there are missing directives somewhere in the Apache
innards.
I'm confused about Apache's multiple config files. FC just had one big
ol' config file and I was comfortable adding the PHP lines, setting up
multiple virtual hosts, and all that. But this SuSE thing is more
complicated.
There's /etc/apache2/httpd.conf that basically just has a bunch of
includes. Don't wanna touch that. There's
/etc/apache2/default-server.conf that looks like it's where the action
is. And there's a /etc/apache2/conf.d/php4.conf file that has specific
php commands, such as....
<IfModule sapi_apache2.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
DirectoryIndex index.php
DirectoryIndex index.php4
</IfModule>
But I can't find where any of the Apache config files point to the php4
config file. Do I need to add an include in default-server.conf?
(Shouldn't the install have done that? Silly install!)
Where else might I look?
Thanks,
Whil
[Back to original message]
|