Sorry the problem is that wincache is not seeming to cache any files according to the wincache.php I've setup php by downloading the NTS version of the zip file for 5.3.2 and copying the contents to the c:/php directory the copying the mssql php drivers into
the ext directory and the php_wincache.dll there as well I set up the ini file to load the nts version of the db driver and wincache dll the php info function shows that the are loaded correctly I put the wincache file in the web root folder the iis server
is set to run c:/php/php-cgi.exe thanks
I am noticing something wrong though, why your PHPRC variable not set? Are you using IIS FastCGI to host PHP? Seems you are using CGI or ISAPI? You will need to move to IIS FastCGI. Please follow intsructions at:
Why did you edited the fcgiext.ini yourself? The FastCGI installation should do that. Also ensure that you are saving the file as plain text and not in some other format. Read
http://forums.iis.net/t/1158901.aspx.
The ini file had nothing after the [TYPES] section. I assummed that I had been mucking about with it when I was trying to install it ages ago I eventually made php run via directly pointing to the php-cgi.exe probably because I needed to get some work done
and its only recently that I got time to look at it all again.
yeksa
16 Posts
having problem with wincache
Apr 28, 2010 03:44 PM|LINK
Hi,
Any help on this would be great thanks
Sorry for all the copy/pasting
I'm running 5.3.2 NTS on IIS 5.1 on XP
IIS is set to run .php files against c:\php\php-cgi.exe
Web root is c:\inetpub\wwwroot
I have the wincache.php file in the wwwroot folder and it gives me the following
<div class=overview> <div class=wideleftpanel>--snip from phpinfo()
PHP Version 5.3.2
-- end snip
-- snip win cache
wincache
Adrian Sweeney
don.raman
1207 Posts
Microsoft
Moderator
Re: having problem with wincache
Apr 28, 2010 06:14 PM|LINK
Hi,
Can you let me know what is the problem exactly? I can't make out anything form this. Also let me know how did you install PHP5.3.2?
Thanks,
Don
yeksa
16 Posts
Re: having problem with wincache
Apr 28, 2010 09:13 PM|LINK
don.raman
1207 Posts
Microsoft
Moderator
Re: having problem with wincache
Apr 28, 2010 09:29 PM|LINK
Hi,
I don't see any reason why it should not work?
I am noticing something wrong though, why your PHPRC variable not set? Are you using IIS FastCGI to host PHP? Seems you are using CGI or ISAPI? You will need to move to IIS FastCGI. Please follow intsructions at:
Please remove PHP completely and also all the script mapping for php in IIS. IIS FastCGI is the supported way to host PHP.
Thanks,
Don.
yeksa
16 Posts
Re: having problem with wincache
Apr 29, 2010 07:39 AM|LINK
Have removed php and am currently reinstalling via your first post.
will get back to you when tested
thanks
yeksa
16 Posts
Re: having problem with wincache
Apr 29, 2010 07:50 AM|LINK
#update #2
I editted the C:\WINDOWS\system32\inetsrv\fcgiext.ini file and added the following lines and hey presto fast cgi is working and so is wincache
[Types]
php=PHP
[PHP]
ExePath=C:\Program Files\PHP\php-cgi.exe
------------------------
Ok, got the first part don't and it didn't work out of the box seems it didn't se the .php extension on the IIS5.1 configuration for me
I configured it to run "c:/program files/php/php-cgi.exe"
and wincache.php still returning that nothing is caching.
is that correct?
The WPI installer states that IIS5.1 is installed and FASTCGI 1.5 is installed.
How do I test if the FAST-CGI is running on iis5.1
-- edit
I've read your next post and told it to use the fastcgi ie something like ".php,C:\WINDOWS\system32\inetsrv\fcgiext.dll,5,GET,HEAD,POST" taken from your comment on http://blogs.iis.net/donraman/archive/2009/10/08/upgrading-to-php-5-3-an-easy-way.aspx
I now get
--snip -> from index.php
FastCGI Error
The FastCGI Handler was unable to process the request.
Error Details:
HTTP Error 500 - Server Error.
Internet Information Services (IIS)
--/snip
--/edit
thanks
don.raman
1207 Posts
Microsoft
Moderator
Re: having problem with wincache
Apr 29, 2010 03:49 PM|LINK
Hi,
Why did you edited the fcgiext.ini yourself? The FastCGI installation should do that. Also ensure that you are saving the file as plain text and not in some other format. Read http://forums.iis.net/t/1158901.aspx.
Thanks,
Don.
yeksa
16 Posts
Re: having problem with wincache
Apr 30, 2010 10:23 AM|LINK
The ini file had nothing after the [TYPES] section. I assummed that I had been mucking about with it when I was trying to install it ages ago I eventually made php run via directly pointing to the php-cgi.exe probably because I needed to get some work done and its only recently that I got time to look at it all again.
Thanks for all your help.
Adrian