General discussion

Locked

PHP Apache not loaded as Apache module

By BrainCramp ·
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.

This conversation is currently closed to new comments.

9 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

PHP Apache not loaded as Apache module

Hi!

If you want embed php into the html code you need to load php into apache as a module.

/Hasse

Collapse -

PHP Apache not loaded as Apache module

by BrainCramp In reply to PHP Apache not loaded as ...

I wanted to know how to use it without PHP being loaded as a module

Collapse -

PHP Apache not loaded as Apache module

by jacob.wilkins In reply to PHP Apache not loaded as ...

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

Collapse -

PHP Apache not loaded as Apache module

by BrainCramp In reply to PHP Apache not loaded as ...

Poster rated this answer

Collapse -

PHP Apache not loaded as Apache module

by James_Randy In reply to PHP Apache not loaded as ...

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

Collapse -

PHP Apache not loaded as Apache module

by BrainCramp In reply to PHP Apache not loaded as ...

The question was auto-closed by TechRepublic

Collapse -

PHP Apache not loaded as Apache module

by Conrad In reply to PHP Apache not loaded as ...

The wise man does at once what the fool does finally.

--Baltasar Gracian

Collapse -

PHP Apache not loaded as Apache module

by BrainCramp In reply to PHP Apache not loaded as ...

The question was auto-closed by TechRepublic

Collapse -

PHP Apache not loaded as Apache module

by BrainCramp In reply to PHP Apache not loaded as ...

This question was auto closed due to inactivity

Back to Web Development Forum
9 total posts (Page 1 of 1)  

Related Discussions

Related Forums