[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sheflug] Apache, shtml and php config. problem
On Sun, 2006-08-13 at 16:58 +0100, Ruth Gunstone wrote:
> However, the server isn't actually parsing/obeying the shtml files,
> despite my adding:
> AddType text/html .shtml
> AddHandler server-parsed .shtml .html .htm .inc
> to the httpd.conf file, and also in a .htaccess file in the same
> folder as the index.shtml file.
>
> As if that's not enough of a problem, PHP files aren't being processed
> either, they're being offered to me as downloads!
You shouldn't really be editing the Apache config at all.
To enable PHP, do 'sudo a2enmod php4' (or, php5 if you have that
instead) - that tells apache2 to enable the php4/5 module.
I don't know .shtml very well, but presume this is server-side includes?
You need to a2enmod include for that.
Restart Apache once you've done it, and you should be away.
The only Apache config you really need to alter is setting up sites
in /etc/apache2/sites-available/ - if you touch other files, you know
you're doing it wrong ;)
Cheers,
Alex.
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.