Re: help: apache
| From: | Student7 SNT | Date: | Thu, 21 Dec 2000 16:44:27 +0000 |
| Subject: | Re: help: apache | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-1314@lists.php.net to get a copy of this message | ||
Hi,
You seem to be getting your installation versions confused.
Now, since Windoze doesn't have any real effective file permissions (due to its stupid flat file system) any scripts that you want to run have to be aliased for Apache.
You need the line:
ScriptAlias /php/ "c:/path-to-php-dir/" #This refers to $APACHE_HOME/php/ as your php scripts dir.
as specified in the manual in your httpd.conf.
Also, delete the line "AddModule blah" from your config, because there is no way you have compiled PHP as an Apache module under Windoze.
Next, you need to add to you 'PATH' environmental variable. You can do this via Control Panel > System... Add the directory in which the PHP DLLs are stored, if you don't PHP will die saying it can't link to blah.dll or some such crap.
Having done all that, PHP should work fine, but make sure the PHP files have the extension .php4 (or add another AddType line for another extension).
Finally, PHP really does work a whole lot better on a Unix system, consider running Linux on your x86 platform, or better still, buy a Sparc on which to host your website.
Good Luck,
C.Davies
At 03:42 PM 12/21/00 +0000, you wrote:
Dear Miles, i have restarted the apache server and copied the php.ini file to the winnt directory. do i maybe need a special version of the apache ? i use apache 1.3.9 thanks bob