[SOLVED]Problem with installation of PHP on APache

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Kingo
Forum Contributor
Posts: 146
Joined: Thu Jun 03, 2004 9:38 am

[SOLVED]Problem with installation of PHP on APache

Post by Kingo »

Hello,
I'm having problems with the installaation of PHP.
Initially I have installed PHP with IIS successfully.

Now I have stopped the IIS and installed the Apache web server.
I have downloaded the PHP_Windows installer and am trying to install it. I get the following errror. "Have to configure the http.conf file of the Apache web server."
I added the following lines to the bottom of the configuration file.

ScriptAlias /php/ "c:/php/"

AddType application/x-httpd-php .php .phtml

Action application/x-httpd-php "/php/php.exe"


Any help is really appreciated.
Last edited by Kingo on Fri Oct 15, 2004 1:28 pm, edited 1 time in total.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

The windows installer isn't really much use with Apache, have you followed these instructions exactly (which one would depend on your version of Apache):

Apache 1.3: http://php.net/manual/en/install.windows.apache1.php
Apache 2.0: http://php.net/manual/en/install.windows.apache2.php

The directives have to be added within specific places in the http.conf.

Mac
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

I would have to disagree, i quite like the msi for apache but you do have to follow the instruction carefully.
Apache also gets grumpy with other web servers running on the port so you will have to check that out.
I believe there was a post on this not to long ago.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

i didn't know the installer works for apache(1|2).

there used to be times that it didnt work, and probably because i'm used to it now, i prefer to install it manually from the zip file :)
Kingo
Forum Contributor
Posts: 146
Joined: Thu Jun 03, 2004 9:38 am

Thanx

Post by Kingo »

Thanx. I installed it manulayy using the zip file and is now working
Kingo
Forum Contributor
Posts: 146
Joined: Thu Jun 03, 2004 9:38 am

Directory Name

Post by Kingo »

Directory Name
Post Reply