Quote:
Originally Posted by lalebarde
ln -s /var/www/conf/modules-sample/php5.conf /var/www/conf/modules
ln -s /var/www/conf/modules-sample/mysql.ini /var/www/conf/php5/mysql.ini
vi /var/www/conf/httpd.conf : uncomment AddTyp application/x-httpd-php .php
I put also : ServerTokens ProductOnly
|
That is all what I did have to do get a simple test.php script working. Except I didn't mess with the ServerTokens
I also didn't have to edit those Deny/Allow directives.
If I do a http://localhost/test.php the following displays OK in firefox and lynx:
Code:
# cat /var/www/htdocs/test.php
<html>
<head>
<title>This is a test</title>
</head>
<body>
<h1>A test for PHP</h1>
<?php
echo '<p>A simple test for PHP</p>' ;
$name='J65nko' ;
echo <<<END
<p>
Another parapgraph, this time created with a here document.
</p>
<p>You can also use variables</p>
<p>Take care, </p>
<p>$name </p>
END;
?>
</body>
</html>
Do you actually have a phpinfo.php file? I don't
Code:
# find /var/www -name 'phpinfo*'
#