[nycphp-talk] Config Problems, Apache-PHP on Windows
jessica kelly
jkelly at sussex.cc.nj.us
Wed Dec 18 13:29:39 EST 2002
There is no php module to add such as:
AddModule mod_php4.c
It doesn't exist and didn't come with the php binary.
I do get a "Can't remove mod_php4.c, Not found in module list" when I stop apache. but no problems when I start or restart apache.
I do however Load the php4apache module that came with the php binary (it is uncommented).
I also have added everything else including the
AddType application/x-httpd-php .php
Action application/x-httpd-php "c:/php/php.exe"
ScriptAlias /php/ "c:/apache/Apache/php/"
My php binary is under c:/php/php.exe.
/php/ is under c:/apache/Apache/php/ like it's a cgi-bin but I have nothing in the folder.
I would love to have someone look over the conf & php.ini files but am wary of pissing people off by posting such a large file(s) in an email. Can I do this?
I have also run the test file in a DOS prompt:
c:\\php\\php.exe c:\\apache\\Apache\\htdocs\\sussex\\a\ est.php
and I get the the html file that phpinfo(); generates so it seems that the binary is working fine.
My head hurts. I've been at this since Friday.
Jessica
>>> chun_lam at hotmail.com 12/17/02 10:55:27 PM >>>
If you are trying to put php to work with apache, you have to add
LoadModule
AddModule
and AddType into httpd.conf file to make it work with apache. Also, adjust
your php.ini file too.
----Original Message Follows----
From: "Bradley Baumann" <bradley at bestweb.net>
Reply-To: talk at nyphp.org
To: NYPHP Talk <talk at nyphp.org>
Subject: Re: [nycphp-talk] Config Problems, Apache-PHP on Windows
Date: Tue, 17 Dec 2002 12:35:28 -0500
Received: from mc1-f14.law16.hotmail.com ([65.54.236.21]) by
mc1-s17.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 17 Dec
2002 09:44:28 -0800
Received: from parsec.nyphp.org ([66.250.131.26]) by
mc1-f14.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 17 Dec
2002 09:44:27 -0800
Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by
parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id gBHHZSSt048050;Tue, 17 Dec
2002 12:35:29 -0500 (EST)(envelope-from listmaster at nyphp.org)
Message-Id: <200212171735.gBHHZSSt048050 at parsec.nyphp.org>
X-Paralist-Archived: <http://nyphp.org/list/paralist_archive.php?L_mid=1942>
X-List-Software: Paralist 0.6
List-ID: <nyphptalk.nyphp.org>
List-Owner: <mailto:listmaster at nyphp.org>
List-Archive: <http://nyphp.org/list/paralist_archive.php?L_lid=1>
List-Subscribe: <http://nyphp.org/list/>
List-Unsubscribe: <http://nyphp.org/list/>
Organization: New York PHP
X-Mailer: Paramail 0.5
Return-Path: listmaster at nyphp.org
X-OriginalArrivalTime: 17 Dec 2002 17:44:28.0113 (UTC)
FILETIME=[F255A410:01C2A5F3]
It doesn't matter what code you have in the .php file, what the webserver is
trying to "say" is that it doesn't know how to handle files with a php file
extension. I'm not sure how you set everything up... but you need to
configure the webserver to recognize them.
----- Original Message -----
From: "jessica kelly" <jkelly at sussex.cc.nj.us>
To: "NYPHP Talk" <talk at nyphp.org>
Sent: Tuesday, December 17, 2002 12:19 PM
Subject: [nycphp-talk] Config Problems, Apache-PHP on Windows
> I'm trying to get Apache 1.3.26 and PHP 4.2.3 setup on my win production
computer after a crash a week ago. I don't want to use the PHP module for
apache I'd rather run it as a separate program. I'll worry about MySQL after
I have the PHP working.
>
> After setting up per the instructions from adslworld (A.K.A. GeekForums)
I
get this message upon trying to get the phpinfo();
> "You have chosen to download a file of type: application/x-httpd-php from
127.0.0.1/a/test.php"
> The page will not display and acts as if it is a download. When I do
download & display the page it only has the <? phpinfo(); ?> text and that
is it so the server is not processing the PHP.
>
> Anyone have a clue? I've been at this since Friday and have compared the
conf file with my web server conf file (That's working fine, Apache-1.3.24
PHP-4.0.5). It has to be something simple I'm overlooking....
>
> TIA,
>
> Jessica
>
>
>
>
>
>
>
>
>
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
--- Unsubscribe at http://nyphp.org/list/ ---
More information about the talk
mailing list