Verifying Apache Configuration for PHP Scripts

Q

How to Verify Apache server configuration for PHP scripts support?

✍: FYIcenter.com

A
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: Apache First PHP Script

2009-07-28, 29855👍, 2💬