|
|
 |
|
Web Design article : How to Install & Configure IIS, PHP, & MySQL on Windows Server 2003 |
 |
 |
| |
Internet and Businesses Online > Web Design > How to Install & Configure IIS, PHP, & MySQL on Windows Server 2003
0
Reviews [ add review ],
Article rating : 0.00, 0 votes. Author : Ant Onaf
Getting open source code to work on Windows is sometimes a task, but I will attempt to give you the instructions in easy to understand format. I will make the assumption that you are not a novice with Windows. You should already have installed Windows Server 2003 with an Internet connection.
What you will need:
- Windows Server 2003 installed
- i386 folder copied on local server or accessible remote location
- Copy of PHP (Windows Binaries - zip package download version) http://www.php.net/downloads.php
- Copy of MySQL Community Server (Windows Essentials download version) http://dev.mysql.com/downloads/
Install IIS (Internet Information Services)
- Go to START >> CONTROL PANEL >> ADD OR REMOVE PROGRAMS
- Click on ADD/REMOVE WINDOWS COMPONENT (left sidebar)
- Highlight Application Server then click DETAILS
- Check Internet Information Services then click DETAILS
- Check World Wide Web Services then click DETAILS
- Check Server Side Includes then click OK (all the way out)
- Click NEXT to begin the installation
- Point to the i386 location if asked to insert CD
- Click OK and continue
That's it -- IIS is installed. Now let's install PHP.
Install & Configure PHP
- Unzip the Windows Binaries for PHP somewhere on your server (i.e. C:PHP)
- Open the php.ini-recommended file with your text editor (i.e. notepad)
- Do a find for "extension_dir" and make it equal to your ext folder location (i.e. C:PHPext)
- Do a find for "extension=php_mysql.dll" and "extension=php_mysql.dll" then uncomment the entry - remove the ; at the beginning of the line. If you don't find the extension then add it to the list of extensions.
- Do a find for "SMTP" and enter your SMTP name and port number
- Save the file as "php.ini" in the location C:Windows
- Go to START >> RUN then type in the box "inetmgr" -- this will open IIS Management Console
- Click the (+) sign to expand the server name
- Right click WEB SERVICE EXTENSION then click ADD A NEW WEB SERVICE EXTENSION
- For EXTENSION NAME type PHP
- For REQUIRED FILES click ADD then browse to the PHP directory and add the PHP ISAPI DLL (i.e. php5isapi.dll) found on the root of the PHP directory
- Check SET EXTENSION STATUS TO
ALLOWED
- Click OK
- Right click Web Sites then select PROPERTIES
- Click HOME DIRECTORY tab
- Click CONFIGURATION (near bottom of the window pane)
- Click ADD under the MAPPINGS tab
- For EXECUTABLE field browse to the PHP folder (i.e. C:PHPext) and add the PHP ISAPI DLL (i.e. php5isapi.dll) found on the root of the PHP directory
- For EXTENSION field type .php
- For VERBS select LIMITED TO and type GET,HEAD,POST
- Leave everything as is and click OK (all the way out)
- If asked to apply to child items then select all and click OK
PHP should now be installed. Let's test it!
Test PHP Installation & Configuration
- Create a file titled phpinfo.php on your root web directory (i.e. C:inetpubwwwroot)
- Open the phpinfo.php file with your text editor (i.e. notepad)
- In the phpinfo.php file type the following:
- Save and close the file
- Now go to your default URL path: http://localhost/phpinfo.php
If you see a PHP with your PHP version number and other information then PHP is installed successfully. Let's move on with installing MySQL.
Install & Configure MySQL
- Double-click the downloaded .msi file on your Windows DB server
- Click NEXT
- Select Typical installation then click NEXT
- Click INSTALL
- When install completes click NEXT
- Click NEXT
- Check CONFIGURE THE MYSQL SERVER NOW
- Click FINISH
- Click NEXT
- Click STANDARD CONFIGURATION
- Check INSTALL AS WINDOWS SERVICE
- If you want to easily access MySQL from Windows command line then check the box INCLUDE BIN DIRECTORY IN WINDOWS PATH. Otherwise, leave defaults as is then click NEXT
- Create a root password then click NEXT
- Click EXECUTE
MySQL is now installed.
You now have IIS, PHP, and MySQL installed and configured. You should be fully operational and ready to use your newly installed and configured environment. For the most part IIS, PHP, and MySQL works together without major issues. I've had high traffic sites, multiple sites on one server, and clustered servers all without issues.
About the Author
Ant Onaf is a content writer in association with
RemoteGurus.com a platform for finding
programming jobs, web design projects,
writing jobs,
SEO gigs, and so much more.
Article reviews
Post your review
[ Note : no HTML/URLs - will removed automatically ]
More articles from Internet and Businesses Online > Web Design
|
|
|