Re: using php under win32
| From: | Ian Gan | Date: | Fri, 10 Nov 2000 07:32:45 +0000 |
| Subject: | Re: using php under win32 | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24503@lists.php.net to get a copy of this message | ||
Julia, did you install php as a cgi service or apache module? If as a cgi
service, use a texteditor to edit your httpd.conf file (in apache/conf
folder) and set your scriptalias according to where you installed php:
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the
client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "C:/Apache/cgi-bin/PHP/"
Action application/x-httpd-php4 "/cgi-bin/php.exe"
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php3
See this URL for more info: http://php.weblogs.com/apache_windows
Regards, ian
----- Original Message -----
From: Julia A . Case <julie@MageNet.com>
To: <php-general@lists.php.net>
Sent: Thursday, November 09, 2000 7:07 AM
Subject: Re: [PHP] using php under win32
I've almost this working... When I connect to http://localhost/test.php it
sends part of the
phpInfo() page, but hangs on the graphics...
I instlalled phpMyAdmin and it gives an internal error... the log file says
bad header from script. Bad Header=HTTP/1.0 401 Unauthorized c:/php/php.exe
Thanks,
Julie
Quoting Julia A . Case (julie@magenet.com):
> Well, I finally got apache working well and tried to add php support (next
is MySQL).
>
> The trouble I get is when I try to open test.php (<? phpInfo() >?) I get a
file not found
> message.
> The requested URL /php/php.exe/test.php ...
>
> Why is it trying to add the file name to the exe path?
>
> Thanks for any help,
> Julie
>
> --
> [ Julia Anne Case ] [ Ships are safe inside the harbor, ]
> [Programmer at large] [ but is that what ships are really for. ]
> [ Admining Linux ] [ To thine own self be true. ]
> [ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
[ Julia Anne Case ] [ Ships are safe inside the harbor, ]
[Programmer at large] [ but is that what ships are really for. ]
[ Admining Linux ] [ To thine own self be true. ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net