Thanks Chris  for your reply

What distro?
Mageia2 32 bit running on a 64 bit box. Its old but mageia 4 64 bit pkg is 
corrupt and insists on loading 32 bit libraries. I have the 2 versions bootable

Apache2.2.25
PHP5.3.27

Change your <?phpinfo ?> to be:

<?php

phpinfo();

?>
This is my code......
-----------------------
<body>
<h1>Apache works!!!!!</h1>
<?php
PHP works!; <BR>
phpinfo();
?>
</body>
--------------------
This when 1st loaded gives.....(copied from screen)

Apache works!!!!!
 phpinfo(); ?>
---------------------------
If I refresh the screen opera wants to download the file. I think there is 
either a missing pkg or a missing line in the .conf files, but which????

Barry
------------------------------------------------------------------------------------------------
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
Linux-users@lists.canterbury.ac.nz
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users


_______________________________________________
Linux-users mailing list
Linux-users@lists.canterbury.ac.nz
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users

Reply via email to