pHP and Apache on different drivers
| From: | Tatiana Bahrimand | Date: | Mon, 13 Sep 2004 21:48:19 +0000 |
| Subject: | pHP and Apache on different drivers | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-14357@lists.php.net to get a copy of this message | ||
Hello,
I cannot configure PHP and Apache. My environment :
Apache 1.3.29 installed on D drive,
PHP 4.3.8 (as a module) (installed on C drive),
Windows 2K.
Here are my steps:
I installed PHP 4.3.8-Win32 for Windows manually
following the instructions on the web
http://www.php.net/manual/en/install.windows.manual.php
I extracted php-4.3.8-Win32.ZIP into C:\php, added C:\php to the PATH,
copied ini-recommended to C:\php, renamed it to
php.ini and moved all files located in the dll and
sapi folders to the main folder (e.g. C:\php).
I inserted these following lines to httpd.conf file:
Action application/x-httpd-php "/php/php.exe"
AddType application/x-httpd-php .php
SetEnv PHPRC C:/php
I Created a file named phpinfo.php and put it in
DocumentRoot D:/Apache/htdocs. The content of the file is:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php phpinfo(); ?>
</body>
</html>
Then, I restarted the server and used my browser to
access the file: http://127.0.0.1:80/phpinfo.php. It
did not display anything.
I tried to invoke phpinfo.php from the command line (C:\> php D:\Apache\htdocs\phpinfo.php)
it causes a large HTML file with all the PHP configuration information.
Please heeeeeeeelp!
TB