piampri wrote:I'm trying to load a page with the following php code :
<?php phpinfo(); ?>
and when I go to the page - nothing displays.
Server : Apache Server 2.2.1, PHP 5
If you are on Linux, have a look at troybtj post.
If you are on Windows (XP), like me, then use this in Apache httpd.conf
I run Apache 2.2.6 and PHP 5.2.4.
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
configure the path to php.ini
PHPIniDir "c:/php"
'Main' server configuration
You can also set Apache log_level to debug
And then you go have a look at the Apache logfile
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn