[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] PHP Installation - newbie



> Hi,
> 
> I have installed the mysql and php rpms as per the 
> instructions provided on
> this list archive and the mysql is working fine but I cannot 
> seem to get the
> php working. When I request a phtml file from my web browser, 
> the file is
> returned without being executed.
> 
> What do I have to do with php and apache to get them to work together?

They work together, you just didn't notice it. :-)

In PHP3 the "standard" extension is .php3, so just rename your
files and it will work.

.phtml was the standard extension for PHP2.
If you still want to use that extension too, you can edit
your srm.conf file in /etc/httpd/conf/ and remove the comment
marker for it. You may also want to add index.phtml to your
DirectoryIndex section if you really want to use that extension.
Although you can't use PHP2 syntax without changes in PHP3,
so you have to go through all your .phtml files anyway.

Herbert