How To Test PHP Support In Apache HTTP Server

By Angsuman Chakraborty, Gaea News Network
Friday, July 28, 2006

Create a file in your htdocs directory (ask the location from your web hosting provider if you are not sure named test.php.
<b>PHP</b> Support in ApacheOpen the file in your favorite text editor and add the line:
< ?php phpinfo() ?>

After saving the file, open in your browser:
https://[your host name]/test.php

Note: Replace [your host name] with your actual host name.

Now if you see a page with php information (see the illustration) then you have PHP support in your Apache HTTP Server.

PHP support is required if you want to run lots of web applications like WordPress, for example. Demand PHP support from your web hosting provider if it is not already enabled.

Discussion
January 8, 2010: 8:11 pm

Trying to get php to working with iis this is a pain


Anonymous
November 10, 2009: 12:59 pm

You have the wrong command. It should look like:


carol2000
January 22, 2009: 2:51 am

In my Env:Php5.2.8+apache_2.2.11, I success like
=====begin=====

PHP Test Script

=====end=====


blisset, juergen
October 22, 2008: 4:34 am

hi, your php-test scipt is not working - there is a “:”.
the working script looks like

ciao

July 28, 2006: 11:00 pm

[...] Advantage Becomes Genuine Disadvantage How To Test PHP Support In Apache HTTP Server » How To Run PHP in HTML Pages July 28th, 2006 by AngsumanChakraborty [...]

YOUR VIEW POINT
NAME : (REQUIRED)
MAIL : (REQUIRED)
will not be displayed
WEBSITE : (OPTIONAL)
YOUR
COMMENT :