Forum Moderators: phranque
We’ll be setting PHP up as a CGI binary as it’s the simplest to setup and get us moving quickly.
Now we’ll need to edit the httpd.conf file, which is located in the conf folder on Apache2 installations. Once the httpd.conf is opened we’ll need to add a few lines of code to the very bottom of this file to allow PHP to load and work correctly.ScriptAlias /php/ "c:/server/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
create a file in the htdocs folderplace the following code within it.
<?PHP phpinfo();?>
type this in the location bar.[localhost...]