Re: PHP on Apache
| From: | Gonzalo Vera | Date: | Sat, 28 Oct 2000 18:29:58 +0000 |
| Subject: | Re: PHP on Apache | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-3568@lists.php.net to get a copy of this message | ||
You're missing the ScriptAlias line. Place it before the others:
ScriptAlias /cphp/ "c:/php4/php/"
Or whatever your php path is (use front slashes). Also, I think it is
best recomended to use the Action before the AddType (but I've tried
both and they seem to work).
Gonzalo.
> Hi,
> I followed the tutorial on how to install php on apache (on windows) and now
> when I approach a file like this: http://localhost/moo.php it
> automatically
> goes to http://localhost/php4/php.exe/moo.php .
> This doesn't really matter to me because it works just fine but I know this
> is not normal.
> Where did I go wrong?
> Attached - the code I put in my httpd.conf:
> AddType application/x-httpd-php .phtml .php
> AddType application/x-httpd-php-source .phps
> Action application/x-httpd-php "/php4/php.exe"
> _________________________________
> David Berlin
> webmaster@builder.co.il