PHP code not interpreted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

 

I have one issue, please give me a hint:

 

PHP 5.2.1 installed on WHM 10.8.0 cPanel 10.9.0-C9565

 

If I load a php file on browser, it gets loaded, but in HTML source I can see php code.

If I run in SSH "php info.php", the php code gets runn and normal output is generated.

 

I checked these lines in httpd.conf:

LoadModule php5_module libexec/libphp5.so

AddModule mod_php5.c

AddHandler application/x-httpd-php .php .php4 .php3

AddType application/x-httpd-php .php

AddType application/x-httpd-php .php4

AddType application/x-httpd-php .php3

AddType application/x-httpd-php-source .phps

AddType application/x-httpd-php .phtml

 

 

"php -v" returns:

PHP 5.2.1 (cli) (built: Apr 9 2007 10:38:29)

Copyright (c) 1997-2007 The PHP Group

Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

with Zend Extension Manager v1.2.0, Copyright (c) 2003-2006, by Zend Technologies

with Zend Optimizer v3.2.2, Copyright (c) 1998-2006, by Zend Technologies

 

 

On php.ini I have:

; Enable the PHP scripting language engine under Apache.

engine = "On" ;engine

 

I use long tags ("<?php").

 

I recompiled Apache and PHP few times, both from WHM and from SSH. I reinstalled Zend optimizer.

 

Please let me know if you have any hint.

 

Thanks.

Constantin


[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux