Our Collection Of Articles
PHP Install
Written By:
Now that we have installed PHP on the system, we need to configure it to run with Apache. The first thing to do is to go into the folder "c:\web\php\" and find the file "php4ts.dll". If you have a different version of PHP, the file might have a different name, but it is the only .dll file in the PHP root folder. Take this .dll file and copy it to the "c:\web\php\sapi\" folder. Next, go back to the PHP root folder and open the file "php.ini-dist" in your text-editor.
Once opened, go to "File>Save As..." and rename it "php.ini". Please make sure that in drop-down menu at the bottom of the "Save As..." window, you select "All Files" so that the ".ini" extension will be added to the file. Once saved, go back to the PHP root folder ("c:\web\php\") and move the new "php.ini" file to "c:\Windows\" ("c:\WINNT\" if you are using Windows 2000/NT).
Just to make sure that everything's working, if you are a Windows 98 user (or if you installed Apache as a manual application) close the open Apache Window and start Apache again by going to "Start>Programs>Apache HTTP Server>Start Apache in Console". If you installed the server as a Service, just go to "Start>Programs>Apache HTTP Server>Control Apache Server>Restart". Open your internet browser and go to http://127.0.0.1/ and if you see an Apache directory system, your doing well. To check PHP, open your text editor and create a new file called "phpinfo.php" in "c:\web\www\". In the file type:
<? php phpinfo(); ?>
Go back to your browser window and refresh the page. Click on the file phpinfo.php that’s listed there, and if you see a large page of info, your PHP works!
Lets go tackle the last part of the web server now ... the database!
|