Re: Install php5b4 on apache 2.0.48

From: Date: Sat, 06 Mar 2004 16:27:11 +0000
Subject: Re: Install php5b4 on apache 2.0.48
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-12907@lists.php.net to get a copy of this message
Martin Bos wrote:
Hi, I just installed (i think) php on my apache2 webserver. I added to http.conf: # PHP 5 beta 4 LoadModule php5_module "c:/php/php5apache2.dll" AddType application/x-httpd-php .php And put php.ini in c:\program files\....\apache2 with: extension_dir = "c:\php\ext" When I try the following html: <html> <head>
      <title>Examples</title>
</head> <body>
      <?php
      echo ("Hi, I'm a PHP script!");
      ?>
</body> </html> And open http://localhost I see the title: "Examples" but no message with " Hi, I'am a PHP script!". What could be wrong? Martin,
This is expected behaviour if you call the file something with an ".html" extension as you have only asked Apache httpd to parse files with the ".php" extension with php. If you have given it an ".html" extension then either change it to ".php" (recommended) or configure httpd to also get ".html" files parsed by php. HTH Chris

« previous php.install (#12907) next »