Ok Things are working fine. Should have checked what that line was all about ...
Thanks > /test is not going to work, because there IS NO file or folder named > that, and it does not bounce to test.html or anything like that. > > The HTML files do not parse via PHP by default. I believe to enable > that, you change the one line to: > > AddType application/x-httpd-php .php .php4 .php5 .inc .html .htm > > I may be wrong, and you will want to double check. But this also means > that ALL .html files, even ones without PHP in them will be parsed by > PHP. Which puts more load on the server. You really need to try and > stick to using just .php > > > Jason Greb > ElectroNerdz, Inc. > http://www.electronerdz.com/ > > > On Sun, 2005-11-13 at 09:14 +0100, [EMAIL PROTECTED] wrote: >> 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 > > _______________________________________________ tsl-discuss mailing list [email protected] http://lists.trustix.org/mailman/listinfo/tsl-discuss
