On 16/06/15 19:33, Steve Holdoway wrote:
Hi,

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

What distro?

Mageia 4

Do you need to a2enmod mod_php or similar?

no such file found in this distro. From browsing I gather this is similar to 
mod_rewrite (am I correct?) which is apparently built in and is not in 
httpd.conf

+ you shouldn't be using the short tags ( <? not <?php ) these days.

short_open_tag = On - tested both

I'd start with a file containing a single line

<?php phpinfo();

I tried this, and variations

and call it info.php ( your test file does end .php, not .html doesn't it?? )

correct


That should wok if php support is enabled in apache.

Please see notes above.
I have a spare 12G ptn. I think I will do a clean install on it and see what 
happens

Thanks
Barry

Steve
_______________________________________________
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

Reply via email to