1
carl2k
PHP Installation problems
  • 2005/8/13 15:05

  • carl2k

  • Just popping in

  • Posts: 3

  • Since: 2005/8/13


I am having problems installing PHP on my computer. If anybody could help out that would be great.

I am running windows 2000
I have installed Apache as my local server and would like to attach PHP to this. I found a usefull website

http://www.webmasterstop.com/48.html

which I followed to install Apache, mySQL and PHP. Apache and mySQL installed properly. PHP installed but then when I created a php file and placed it in the htdocs directory and looked at it through explorer byhttp://localhost/phpinfo.php I just got the typical Page Cannot Be Found error.

I placed these lines in the httpd.conf file as required

ScriptAlias /php/ "c:/server/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"

I also added index.php to
DirectoryIndex index.html index.html.var
which I found to do in another website.

If it also helps the PHP instalation file version used was
php-5.0.4-installer.exe


Thanks in advanced

2
jlm69
Re: PHP Installation problems
  • 2005/8/13 16:05

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


I'm not sure if this is your problem, but your ISP is probably blocking port 80, so you can't get there. You may want to look into something like no-ip.com, you can setup a free account with them to see. You just won't be able to use a real webaddress like www.yoursite.com it would be www.yoursite.no-ip.com. then you would need to redirect it to a different port I used to use port 12300. Maybe someone else could verify what I'm saying.


** EDITED **

The more I'm thinking about it that probably isn't your problem, yet. If you just type in localhost you should go to an index.html page saying apache is on the server.


Hope that helps,

John

3
jonpz
Re: PHP Installation problems
  • 2005/8/13 16:29

  • jonpz

  • Just popping in

  • Posts: 16

  • Since: 2005/5/10


I've never installed apache/mysql/php on windoze before (would that be called a wamp server?... hehehe) but i'm willing to bet apache wasn't compiled with php support and there is no LoadModule line in your httpd.conf file for it. This is the load module line in my conf file...

LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

there should be a whole section in your conf file of LoadModule lines so check there. obviously this example is on a Linux platform so the path to the .so file would be different on your setup.

hope that helps.

***EDIT***
obviously we are running different versions of php as well so adjust that as necessary as well.

4
carl2k
Re: PHP Installation problems
  • 2005/8/13 23:28

  • carl2k

  • Just popping in

  • Posts: 3

  • Since: 2005/8/13


Thanks for the info guys. Jonpz you were write. I had to load the module in the conf file by placing the following code:

LoadModule php5_module "c:/server/PHP/php5apache2.dll"

Silly me :)

Thanks again for the help. Might come back with another problem for you guys soon :)

Have a good one

Login

Who's Online

105 user(s) are online (60 user(s) are browsing Support Forums)


Members: 0


Guests: 105


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits