Forum Moderators: phranque

Message Too Old, No Replies

Installing Apache/MySQL/PHP

Hung up on installing PHP

         

D_Blackwell

3:08 am on Dec 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Installing server, database, and php on a backup machine. Haven't done this myself before. Found a resource to follow, and got through Apache and MySQl without difficulty. Just followed the PHP installation step by step. This seems to be where I've missed something, but don't know what. The file path should be correct, so I'm at a loss. Suggestions?

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 folder

place the following code within it.
<?PHP phpinfo();?>

type this in the location bar.

[localhost...]

jatar_k

3:23 am on Dec 4, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



there are a couple of threads in the php library [webmasterworld.com] about installation/troubleshooting that might help