Apache PHP - Verifying Apache Configuration for PHP Scripts
Windows System and Applications Information Center
|
|
| Verifying Apache Configuration for PHP Scripts | | How to Verify Apache server configuration for PHP scripts support? | | By: FYIcenter.com | | If you have followed our Configuring Apache for PHP Scripts tutorial,
you can now use this tutorial to verify the configurations.
1. Assuming that your Apache server is installed at C:\Program Files\Apache Software Foundation\Apache2.2
2. Make sure that your Apache server is running.
3. Use "notepad" to enter this simple PHP script:
<html>
<body>
This is <?php echo "my first PHP script"; ?>.
</body>
</html>
4. Save this script as C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\my_first.php.
5. Run a Web browser and enter the this URL: http://localhost:8080/my_first.php.
You will see that Apache server runs the script with php-cgi.exe and returns the result in the browser window as:
 | | ID: 69 | Rank: 3726 | Votes: 41 | Views: 2872 | Submitted: 20061208 |
Copyright © 2007 FYIcenter.com
All rights in the contents of this Website are reserved by the individual author.
No part of the contents may be reproduced in any form without author's permission.
|
|
|