![]() Instructions for preparing Microsoft Windows Internet Information System (IIS) Manager to run Data Center Audit with PHP & MySQL
Installing Microsoft Windows Internet Information Services (IIS)
If you do not have IIS Installed, and wish to use IIS, here is how you install it.
Go to ADD Remove Programs Now click on Add/Remove windows Components
Now Highlight application Server and ensure there is a Check Box enabled, and click on Details
Check Internet Information Services (IIS) and enable it with a check box. It is generally a good idea to also select the application server console check box as well. Data Center Audit does not use COM, so it is not required to select Enable network COM+ access Click OK, then NEXT when you are back at the following screen:
IIS will now be installed on your machine:
It will now prompt you for the Windows 2000/2003 Server CD, or the location of the I386 directory
Clicking OK will show the following:
Click Browse and be sure you have the path to the I386 directory on your CD or hard drive correct, then click OK You will see the following when the installation is complete.
Click FINISH.
You will see a brief setup window (below)
Then you will be back at the Add Remove Programs screen
You will know IIS is installed because you will see an INETPUB directory off the C:\ drive
And you will also see an Internet Information Services (IIS) Manager option under CONTROL PANEL -- ADMINISTRATIVE TOOLS
If you start your browser and type in "http://localhost" in the URL, you will see the following screen. This verifies that IIS is started, but there is no default index file yet.
To install PHP, you must download the Windows PHP binary from www.php.net. Go to www.php.net then click on the downloads link and you will see a screen similar to the following: You want to download the PHP 5.x Installer. You should also download the PECL Win32 binaries as well. Even though they are not used currently with Data Center Audit there is a good chance the will be in future revisions. *note: at this time Data Center Audit is only qualified on PHP 4 & 5. Next you will see the following screen.
Scroll down to UNITED STATES
Click on the link of your choice and you will see a download window
Click SAVE and specify the location of your choice as shown below:
After clicking Save you will see the download progress begin.
When the download is complete the window will disappear if you have the "close this dialog box when download completes" checkbox enabled. Otherwise you will need to close it manually when it is at 100%.
Next, move the newly downloaded file to the machine you wish to run PHP on, then click on the installer MSI. In this case the filename is php-5.2.5-win32-installer.msi You will now see a security warning message similar to the one below
Click RUN then you will see the following
Clicking Next will show the following license screen
Check the checkbox to enable the Next button. Then click Next.
Now you should see the following screen
It is HIGHLY RECOMMENDED you change the default destination to C:\PHP!!!!
After making the change click NEXT then you will see the following screen
Here you check the IIS ISAPI Module
Next you come to the Options Screen. Here you want to expand the Program menu, and click on the Script Executable arrow and change it to Install on the Local Computer
Next you want to expand the Extensions menu and scroll down and enable
*Optional selections are POP3 & SNMP. Currently not used with Data Center Audit but may be in future implementations.
If you prefer to view the PHP manual locally instead of online, you can expand the EXTRAs tab, and enable the PHP Manual to be installed locally.
When you are finished with your options click NEXT
Click INSTALL and the installation will begin
When complete you will see the following screen
Click Finish
If you have downloaded the PECL binaries then you can locate the directory where you download the zip file. Unzip the file and you will see the following files.
Now copy ALL of the files in the directory and PASTE them into the C:\PHP\ext directory. Over-write any existing files.
Next, you need to copy the php.ini into the C:\WINDOWS directory. The PHP.INI is located in the C:\PHP directory Copy to C:\WINDOWS Directory
It is a good idea to open the PHP.INI in notepad by right clicking on the file and choosing OPEN WITH and select Notepad. Then verify the php_mysql.dll extension is uncommented (i.e. does not have a semicolon before the line extension=php_mysql.dll
You must now enable PHP within the IIS Manager
Right click on Web Sites and go to Properties Then select Home Directory as shown below Then change Execute Permissions to "Scripts Only" and click on Configuration.
Scroll down and select the ".PHP" extension and click on EDIT Then you will see the following screen. Select BROWSE and point to the C:\PHP\php5isapi.dll and ensure it shows in the Executable Box (show below)
Leave the defaults checked then click OK. and you will be back at the Home Directory Tab
Now click on the Documents Tab
Click on ADD and you will see the following Enter index.php Clicking OK will display the following
Click MOVE UP and move index.php to the top
If you receive an Inheritance screen like the following
Select the Default Web site, then click OK Once back at the main tabs
Now click on the home directory tab. You have one final change to make. Enable the READ check box, because PHP requires this in order to read an "index.php" file as the default if one should put in http://localhost instead of http://localhost/index.php.
Now you can click OK to return back to the IIS manager
Right click on the LOCAL COMPUTER in the LEFT Tree, then go to ALL Tasks, then RESTART IIS
Now you are ready to TEST PHP
Use Explorer to go to the C:\inetpub\wwwroot directory right click on a blank area and click on NEW and select TEXT document. Then name the file test.php Right click on the file and click on OPEN WITH and select NOTEPAD.
Create the following test php file by typing the following
<?php Be sure to type it exactly as listed with the beginning "<?php" statement, the quotes, the ending semicolon, and the ending "?>" php tag Save the file, then go to your browser and type http://localhost/test.php You should see the following
If this works, then you have PHP installed successfully!!
To verify that it can read an index.php file, rename test.php to index.php in your c:\inetpub\wwwroot directory, and then put http://localhost in your browser
At this point PHP is working successfully.
To install MYSQL with PHP and IIS, you must go to http://www.mysql.com to download the latest v5 version of mysql. *note, Data Center Audit was tested on MySQL 4 and 5.
Click on the DOWNLOADS link which will take you to the following screen (or something similar)
Here you click on MySQL Community Server and the Download Link and then scroll down to the following.
Click on the Windows link and then you will see the following:
Go to the Windows ZIP/Setup.exe row and click on the DOWNLOAD link.
Then you will see a file download popup window
Click SAVE and save to whichever directory you intend to save the file. then you will see the download progress bar.
When complete then you will go to the directory where the downloaded file exists and unzip the file.
In the above example I use winrar (www.winrar.com)
Change to the newly created directory and click on the setup.exe
Now you will see the following screen Click next and you will see
For the purposes of Data Center Audit , you can select Typical. If you have enough disk space I'd you to encourage to install the Complete. Next you will see the installation confirmation screen
Clicking Install will begin the installation and you will see the progress bar.
Now it is time to finalize the installation. You will see the initial splash screen below
Clicking Next will show
Now you are asked to configure MySQL
Click FINISH and you will now see
Click next to display the following screen
Unless you know what you are doing I recommend selecting STANDARD CONFIGURATION and clicking next. Next you will see the following screen. Enable isntalling it as a service AND including the bin directory in the PATH. THIS IS CRITICAL! Next you will see the following screen. At this screen you must set the new ROOT password. "root" is the name of the account that you use to administer the mysql database. i.e. create accounts, create databases/etc. Clicking next will display the following
Click finish and the window will disappear and you will be at your desktop.
To verify mySQL is running, start a CMD prompt by going to START-- RUN and type CMD
Type the following "mysql -u root -p" to see the following:
Enter the "root" password you set when installing MYSQL and you should see the following:
If you see the above, then mysql is functioning correctly.
Data Center Audit Pre-Installation Prior to proceeding with Data Center Audit setup, you must ensure that Data Center Audit has the ability to create the configuration files. The Data Center Audit installation uses PHP to write the configuration files to the /Data Center Audit directory in the web server document root and must be allowed to.
To achieve this you must go to the document root in IIS.
Now right click on wwwroot and select properties
Now you will see the main properties tabs. Now select the SECURITY tab
Now select the IUSR_ user and enable READ and WRITE permissions.
Now you can proceed to install Data Center Audit by clicking on the SETUP.EXE At this point you have installed Data Center Audit and you can proceed to follow the Data Center Audit installation instructions
|