Hi Barry...

What distro?

Change your <?phpinfo ?> to be:

<?php

phpinfo();

?>

If that dunnae work, some more detail on distro etc and I'm sure we can get you working quickly.

Cheers, Chris H.

On 07/05/15 20:54, Barry wrote:
Hi all,
After trying for abt 3 weeks to get php running I am just about tearing what little hair I have left out. I can not get php coding recognized in a .php file. Steps taken so far......

Set up '127.0.0.1    localhost' in /etc/hosts.allow
Amended http.conf to recognise files with .php suffix
Scanned http.conf and php.conf.
Searched the web for help.

Apache now recognizes both/either 127.0.0.1 and localhost in the address bar,
also file.html and file.php.

With an entry like <?phpinfo ?>, the >?php is dropped, the rest of the line being recognised as text.

Both http.conf and php.conf have so much in the way of explanatory comments in them that the active lines in each of them are well separated and can not be read together in a group.


_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users

Reply via email to