Apache2 and PHP

From: Klaatu (mutster8_nospam__at_netscape.net)
Date: 01/28/04


Date: Wed, 28 Jan 2004 21:51:09 GMT

Have Apache2 installed and running okay. Also installed apache2-mod_php
2.0.47_4.3.2-2mdk on my Mandrake 9.2 system. Also have php432-devel
4.3.3-2mdk, libphp_common432 4.3.3-2mdk, php-ini 4.3.3-1mdk and other php
software installed. When I use a local browser to examine a test script
<html>
<head>
<title>A PHP Example</title>
<body>
<h1>A PHP Example</h1>
You are using
<?echo $HTTP_USER_AGENT?>
to view this page
</body>
</html>
only the html is rendered, no php. Have looked at syslog, apache error log,
php.ini, apache conf, etc. and have found no errors (new to php so may have
easily overlooked something). Any troubleshooting assistance appreciated.
TIA



Relevant Pages

  • Re: PHP5 IIS Setup
    ... If there were any html tags, ... Incidentally I'm using Apache 2, ... You haven't added a type association so Apache knows to use PHP to process ... it not processing PHP files. ...
    (alt.php)
  • Re: Content negotiation in Apache
    ... >Someone already mentioned the rewriting rules which will work for you. ... Sorry I hadn't posted anything in awhile, but Apache and I move ... The other is that I'm learning PHP and did not originally have the ... and got 600 visitors this December, and the page ends in ".html" and now ...
    (RedHat)
  • Re: PHP-Yes, HTML-No --- Why?
    ... Surely a dynamic web server should appear exactly the same as a static one - all files that contain HTML when viewed should be called ... If you know how, say, the PHP apache module works, you'll see that the hit is ... Apache was designed to do just this. ...
    (comp.lang.php)
  • Help with php5 install under windows
    ... This includes moving php from the ... Enable the PHP scripting language engine under Apache. ... or per-virtualhost web server configuration file. ... The PHP directives register_globals, ...
    (php.general)
  • Re: Convert from .html to .php - What are SEO implications of file name changes?
    ... you can leave all your pages as .html and any embedded PHP ... I think we are using Apache, so I'll try your suggestion if we are. ... And while we are on the subject of Apache, .htaccess, etc, are there ...
    (alt.internet.search-engines)