> The AddType directives do work in httpd.conf, but the php3_* ones
> don't seem to. ie when I stick a php3_ directive in httpd.conf I get:
>> "Invalid command 'php3_mysql.default_host', perhaps mis-spelled or
> defined by a module not included in the server configuration"
>A silly question, but one that has to be asked - are you sure MySQL support is
compiled into PHP?
> The fact that the "AddType application/x-httpd-php3 .html" in my
> .htaccess file does nothing suggests that the .htaccess file is not
> being looked at by Apache though, doesn't it?
>Yes, but are you *sure* it isn't working? Did you remove all the php_
directives, and try a "Hello world" or phpinfo()?
> The main reason I went to get this stuff working on my machine is that
> I presume web hosts don't allow you to configure stuff in their
> http.confs, but get you to modify your htaccess files instead. So
> getting htaccess working loacally will give me a better idea of what I
> can do remotely.
>Depends on the web host. Virtual servers are quite cheap now that more and more
people get on the net, and so more and more people graduate to dediated
machines. With a virtual server, you can modify the config files all you want
(although some mightn't work, because they usually run highly modified versions
of Apache). Also, most web hosts have AllowOverride set to off, so it's all or
nothing really. The only real advantage to doing it this way is to reduce the
load on the machine by only having PHP parse the .html files you want.
All that being said, I *know* it can be done. I'll try it out myself this
weekend if I get a chance.
a
d
a
m
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!