Author |
|
al0000
Joined: 29 Jan 2007 Posts: 24
|
Posted: Mon 29 Jan '07 22:48 Post subject: Apache config |
|
|
Hello,
I just moved from PHP module to FastCGI.
However, i have trouble with one website, which requires a .htaccess file (for SEO)
For all other website, i have added:
<Directory "D:/www/********.com">
FCGIWrapper "c:/php5/php-cgi.exe" .php
Options ExecCGI
</Directory>
And my php is working fine.
However, this particular website doesnt work with that (because of it's .htaccess i guess)
I have tried:
<Directory "D:/www/***.com">
Options Indexes FollowSymLinks
FCGIWrapper "c:/php5/php-cgi.exe" .php
Options ExecCGI
</Directory>
but i was getting the folloing error when i tried to access the file:
Forbidden
You don't have permission to access /index.php on this server.
Any help is welcomed
Thanx |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7405 Location: EU, Germany, Next to Hamburg
|
|
Back to top |
|
al0000
Joined: 29 Jan 2007 Posts: 24
|
Posted: Mon 29 Jan '07 23:13 Post subject: |
|
|
I have tried the following:
<Directory "D:/www/****.com">
FCGIWrapper "c:/php5/php-cgi.exe" .php
Options All
</Directory>
but i got a server error |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7405 Location: EU, Germany, Next to Hamburg
|
Posted: Mon 29 Jan '07 23:19 Post subject: |
|
|
For me worked
Code: |
LoadModule fcgid_module modules/mod_fcgid.so
<IfModule mod_fcgid.c>
IPCCommTimeout 40
IPCConnectTimeout 10
MaxProcessCount 8
OutputBufferSize 64
ProcessLifeTime 240
MaxRequestsPerProcess 500
Alias /fcgi/ "C:/server2/fcgi/"
<Directory C:/server2/fcgi>
AddHandler fcgid-script .php
Options Indexes FollowSymLinks ExecCGI
FCGIWrapper "/server2/php/php-cgi.exe" .php
AllowOverride all
Order allow,deny
Allow from all
Satisfy any
</Directory>
</IfModule>
|
|
|
Back to top |
|
al0000
Joined: 29 Jan 2007 Posts: 24
|
Posted: Mon 29 Jan '07 23:23 Post subject: |
|
|
This is what i get to my apache log file:
[Mon Jan 29 23:23:01 2007] [alert] [client 85.74.106.6] D:/www/****.com/.htaccess: order not allowed here |
|
Back to top |
|
al0000
Joined: 29 Jan 2007 Posts: 24
|
Posted: Mon 29 Jan '07 23:42 Post subject: |
|
|
I just tried this:
<Directory "D:/www/****.com">
FCGIWrapper "c:/php5/php-cgi.exe" .php
Options All
AllowOverride All
</Directory>
and i am still getting apache configuration error |
|
Back to top |
|