Let me clarify this. The path of my Apache webserver is at
/var/www/html and I have a .php test file in this directory.
When I try to access to my test file through the browser
using
http://localhost/phpinfo.php
I got:
<?php
phpinfo();
?>
Basically, Apache is sending the .php file without interpreting it
first.
I look at my httpd.conf file, I do have the right setting:
LoadModule php4_module libexec/libphp4.so
AddType application/x-httpd-php .php .phtml
I suspect Apache fails to load the libphp4.so at startup. How do I
verify that
Apache did load libphp4.so? I believe I have to use ld command but I
am not sure!!
I use Apache 2.0.x and php.4.3.x
Thanks
Pedro Graca <he****@hotpop.com> wrote in message news:<sl*******************@ID-203069.user.uni-berlin.de>...
Phong Ho wrote: I have this problem with PHP that someone might be able to help.
With CLI, I am able to execute my .php files. For example, if I type
"php phpinfo.php" , this works fine on my system.
If I put the phpinfo.php file is in /var/www/html and I try to access
it through the browser, I get the content of the file and not the
execution of the file. Instead of display the info of PHP, I got the
text of the file as:
<?php
phpinfo();
?>
Why?
You have to access the file through your /correctly configured/ server
http://localhost/phpinfo.php
and not through the file system
*this does not work*
file:///var/www/html/phpinfo.php