PHPBuilder - Installing Apache and PHP under Win32 Page 2



RSS Twitter
Articles Setup And Installation

Installing Apache and PHP under Win32 - Page 2

by: Dennis Wrenn
|
June 8, 2007

Stop Apache, if it isn't already. Copy php4ts.dll to the Windows\System directory. In httpd.conf search for #LoadModule it should bring you to a list of modules that can be loaded. Leave those alone, but directly under them, add these lines:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php
Now, write a file called test.php, with this as the content:
<?php
echo "PHP Rules!";
?>
Save the file, and put it into the directory you set as the document root. You set that up above. Now start up Apache, and type this into the location bar of your favorite web browser:
http://localhost/test.php
If all goes well, you should get a lovely:
PHP Rules!
...on the screen. Well, did you? If so, great. If not, email me any problems you have, and I will see if I can help you.
What Next?
Well, that is up to you, I would recommend reading the PHP Manual, and accelerating your PHP skills.
This article originally appeared on HTMLGoodies.com.



« Previous Page
1
|
2

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Dennis Wrenn

Comment:



Comment:

(Maximum characters: 1200). You have characters left.