Hi,

I have a problem with PHP and APACHE

New Trustix 2.2 installation with APACHE and PHP5
SSH, Webmin, Samba, Network works fine.
Modified /etc/httpd/conf.d/httpd-php.conf as explained in wiki to

### The follwoing is needed to enable PHP5 support
LoadModule php5_module /usr/lib/apache/libphp5.so
AddType application/x-httpd-php .php .php4 .php5 .inc
AddType application/x-httpd-php-source .phps


http://webserber results into the Intro Trustix webpage

Next I create 3 files
/home/httpd/html/test.php and
/home/httpd/html/test.html
/home/httpd/html/test.htm
with following lines :

<html>
<head>
        <title>PHP Test</title>
        <meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
</head>
<body>
        <h1>PHP Test</h1>
        <p>
        <b>An Example of PHP in Action</b><br />
                <?php echo "The Current Date and Time is: <br>";
                        echo date("g:i A l, F j Y.");?>
        </p>

        <h2>PHP Information</h2>
        <p>
                <?php phpinfo(); ?>
        </p>
</body>
</html>

http://webserver/test.php displays the results as expected, HTML and PHP
statements.

http://webserver/test displays page not found.

http://webserver/test.html and http://webserver/test.htm
Results into without the PHP execution.

PHP Test
An Example of PHP in Action
PHP Information


1. Looks that PHP is Ok Apache is Ok but calling PHP from Apache/HTML goes
wrong.

2. Why is the http://webserver/test not working ?

3. Were do I need to look for this kind of problems ? Is this mailing list
the correct place ?

Couldn't fine anything in the wiki documents.

Thanks,
Caroline

_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to