Thanks for the reply,
Below is my testphp.php file. In opera the <H1> tag produces bold large text on screen. Code
between <?php & </?> (date & phpinfo) including the tags is blank. All other text is
reproduced normal size ok.
When I run the file from cmd line date and phpinfo are shown, also the <H1> tags but
the <?php> tags are not,
they are acted on.
Barry
-------------------------------
<!DOCTYPE TEXT/HTML>
<text/html>
<head>
<meta charset="utf-8">
<title>PHP works!</title>
</head>
<body>
Hello, today is <?php echo date('l, F jS, Y'); ?>
testing <br>
echo "<h1> Hello World</h1>";
testing2 <br>
testing3 <br>
+++<? phpinfo(); ?> +++
</body>
</text/html>
---------------------------------
On 14/06/15 16:52, Chris Hellyar wrote:
Hi Barry…
When you say that it shows tagged entries correctly, accept the <?php one… Do
you mean it’s showing your PHP source code after the <?php tag?
Cheers, Chris H.
On 13/06/2015, at 22:48, Barry <[email protected]> wrote:
Hi All, can you please help me to get php code recognized on localhost.
The install is Mageia 4, 64bit
Localhost is set up and recognized by apache
Apache 2.4.7-5.6 installed
apache-mod_php 5.5.25-1 installed
PHP 5.5.25 is installed
After a stop/start the errors.log file shows '[pid 12632] AH00163: Apache/2.4.7
(Unix) PHP/5.5.25 mod_perl/2.0.8-dev Perl/v5.18.1 configured -- resuming normal
operations'
httpd -M lists 'php_module (shared)' as the last loaded module
index.html and index.php (in /var/www/http/) are both recognised. Without them all
directory entries are listed. Testphp.php lists tagged entries except <?php
correctly
php -r "phpinfo();" and 'php -i' on the command line both work.
Alterations I have made to httpd.conf are as follows..............
Listen 127.0.0.1:80
Include conf/modules.d/*.conf (includes modules.d/70_mod_php.conf)
Options All
AddHandler php5-script .php .html .htm
AddHandler php .php
AddType text/html .php
AddOutputFilter INCLUDES .shtml .html .php .php5
I have goggled at google for many days now so any help will be appreciated.
Barry
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users