Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

How to install PHP?

  • Please log in to reply




  • Member
  • PipPip
  • 12 posts
I am new to this. I downloaded PHP and Apache and installed it to:


I also created a folder called webroot in the webserver folder. I then went into the httpd.conf file and edited the following:

DocumentRoot "C:/webserver/webroot"
<Directory "C:/webserver/webroot">
DirectoryIndex index.html index.php

Also added this to the end of the file:
LoadModule php5_module "C:/webserver/PHP/php5apache2_2.dll"
PHPIniDir "C:/webserver/PHP"
AddType application/x-httpd-php .php

In my webroot folder I made a file called index.php with the code: <?php phpinfo(); ?>

In my enviornment varibales I have this:

Path: C:\webserver\PHP\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\

PHPRC: C:\webserver\PHP\

I type in localhost in the browser URL and nothing shows up, says it cant find it. What am I doing wrong?


Edited by system32, 11 March 2010 - 06:28 PM.

  • 0





  • Member
  • PipPipPip
  • 329 posts
What happens if you try localhost/index.php does a page show up then?

Another thing, is php acutally loading? Usually you want to keep the loadmodule line with the other loadmodule lines in the apache config file. If this is a fresh install of php did you rename the php.ini.dist to php.ini? If you installed Apache using the installer it should of given you a status tool that you can run. It will say apache / php loaded on it.
  • 0

Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP