Discussion Locked

PHP Apache not loaded as Apache module

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm having to use PHP on a Linux server that
does not have PHP added as an Apache module.

When embedding PHP into my html, where do I
specify the path to the php software (/usr/bin/php), do I place it as the first line in my html file, on the SCRIPT NAme line
or elsewhere. An example would be ideal.

I have no problem when using a php file that
is just php, in which case I just insert the
path to php as the first line of the script.

9 replies

by jacob.wilkins

You don't put the path to php in your HTML.

You will have to configure the Apache CGI handlers to deal with PHP.

There should be suitalbe documentation about running php in cgi on the php website.

jrw

by james_randy

Those are some really intriguing questions. Too bad I don?t have a clue as to what you?re talking about.

This discussion is closed to new replies.