View Single Post
  #5   (View Single Post)  
Old 13th November 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

Quote:
Originally Posted by lalebarde View Post
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*'  
#
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote