Solved

PHP server API change

Posted on 2011-03-03
14
1,287 Views
Last Modified: 2013-12-03
I'm getting an error running an install.php script and the document states that If you experience problems installing with this script, or while installing Trendy Site Builder
try changing PHP's Server API to ISAPI .This Server's API is: CGI-FCGI

I cannot find where to make this change.
0
Comment
Question by:TechResource
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 4
14 Comments
 
LVL 15

Expert Comment

by:pcsmitpra
ID: 35035284
To execute the PHP on IIS , You would have made configuration like :
Create a Application extension
Extn name : - .php, File Path: -  C:\PHP\php-cgi.exe , Verbs : - All Verbs , Script Engine checked.
And also create  a Web Service Extension
Extn name : - PHP , File Path: -  C:\PHP\php-cgi.exe

They are asking you to run PHP using PHP Isapi DLL like :
Create a Application extension
Extn : - .php , Path : - C:\PHP\php5isapi.dll  , Verbs ; - All Verbs ,  Script Engine checked.
And also create  a Web Service Extension
Extension Name : PHP , File Path : - C:\PHP\php5isapi.dll

I hope this will help. Cheers.
0
 

Author Comment

by:TechResource
ID: 35038285
I have everything in place as you say to have it already, except the first application extension is C:\PHP5.2\php.exe

And the Web service extention is C:\PHP5.2\php5isapi.dll

After changing the Application extention to C:\PHP5.2\php-cgi.exe I get the following error.
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.





0
 

Author Comment

by:TechResource
ID: 35038335
The page doens't even display any longer, it just gives that error message now. I'm researching the error but MS states that it must be a programming issue, but the page worked before I made the application change.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:TechResource
ID: 35038490
Ok, after some testing I see what is going on but not sure how to fix it.

If I use PHP version 4.4 it shows the page but has the original error. and it could be because I am using PHP version 5.2 for the Web service extention here C:\PHP5.2\php5isapi.dll because PHP version 4.4 does not come with a php isapi.dll file.

So where can I find the version 4.4 isapi.dll?

0
 

Author Comment

by:TechResource
ID: 35040329
I found the dlls and am now using PHP 4.4.9 with the Application extention at C:\PHP4.4.9\php.exe because there is no php-cgi.exe in the 4.4.9 version.

I also change the web extention to C:\PHP4.4.9\php4isapi.dll

I still get the original error. How can I change the server API to ISAPI? like they are sugesting?
0
 
LVL 15

Expert Comment

by:pcsmitpra
ID: 35055340
C:\PHP4.4.9\php4isapi.dll

Go to Web Service extension ,  you will find the Web Service extension for PHP  , you  can either modify same or create a new one with mapping to : C:\PHP4.4.9\php4isapi.dll

Go to IIS -> WebSite -> Properties -> Home directory -> Configuration -> Locate .php and click edit/Modify
Map it to : C:\PHP4.4.9\php4isapi.dll
click ok
Apply -> Ok -> Ok

Run IISreset command and try to browse it again.
0
 

Author Comment

by:TechResource
ID: 35098005
Sorry for the delay!

 I did try this and still get the same original error.
0
 
LVL 15

Expert Comment

by:pcsmitpra
ID: 35107535
Could you please paste the file you have mapped to :
Web Service Exten
Application Mapping for .PHP extn
0
 

Author Comment

by:TechResource
ID: 35149226
0
 

Author Comment

by:TechResource
ID: 35149269
0
 

Author Comment

by:TechResource
ID: 35149298
You can see the error message at http://spokanetechresource.com/install.php if you click on install
0
 
LVL 15

Accepted Solution

by:
pcsmitpra earned 500 total points
ID: 35155826
your website is running on 'Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618' . Please check if PHP is installed on server on not. You can run any test page with this code :
<? phpinfo(); ?>
On IIS 6 , Any case in automatic installation or zip installation : The configuration is different in case of PHp 4 , Please follow the steps given here http://www.simongibson.com/intranet/php2003/ 
I believe this will help you. Cheers
0
 
LVL 16

Expert Comment

by:CWS (haripriya)
ID: 39692039
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
The viewer will learn how to count occurrences of each item in an array.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question