PHP Manager IIS fails to install on Windows Server 2016 - php

I have recently installed Windows Server 2016 and I'm trying to get my IIS 10 set-up to create a site.
The PHP 5.6.30 installed just fine, but the PHP Manager 1.2, WinCache 1.3 for PHP 5.6 and CGI didn't install!
The dialog image:
The PHP Manager log: http://pastebin.com/Y9Ud1XUU
The WebPI log: http://pastebin.com/H13fJU0Z
I've tried setting the MajorVersion to 7 (and other values), but the installer still fails. I have .NET 4.5> installed.

as far as i know this addon/tool has not been working since the release of Windows Server 2012 R2.
i have still to find Another tool like it, but so far nothing has come up
though i have found this solution:
https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/php-manager-for-iis-on-windows-10/33ef32f0-6a86-4803-abc1-6de81110f9a8
(confirmed to work, just remember to restart the IIS manager)

PHP Manager requires .NET Framework 3.5 installed and may require a small hack in the registry as outlined here:
I was able to find a workaround at the PHP manager's site.
Just make sure you have .NET 3.5 installed and modify the following registry:
HKLM/System/CCS/Services/W3SVC/Parameters/MajorVersion
The value is 10 (Ax0). Just change the value to 9 (or 8), then try to install it again.
To avoid future issues with other IIS stuff, change back to 10 (Ax0). It seems that PHP Manager validates the value converting it into string or something related.

On my Windows Server 2016 machine for some reason the Web Platform Installer (downloaded from https://php.iis.net/) gave me a less recent PHP version (5.3.28) than yours, but all components were correctly installed, with the exception of PHP Manager (which I was expecting given it has been discontinued, and I didn't really care anyway...):
Also, if you want, you can install the components manually, by following this detailed post:
Steps to Install PHP manually on Windows 2016 server
It's really not complicated and it will give you a better understanding of what is not working, should that be the case.
With the help of above article I could also verify that the Web Platform Installer did not miss any important parts (modifying php.ini as required by extensions, setting environment variables, and so on).
Hope it helps.

We have several Windows Server 2012 R2 servers with PHP Manager running without problems (sorry Robert). I have just setup a new one and added PHP Manager and others by installing PHP 5.6 with Web Platform installer. The only thing needed extra was .NET 3.5. Have you tried to setup with .NET 3.5 installed?
When you try to install PHP Manager using the direct download link, the setup will ask you to install .NET 2.0. That isn't necessary :).

Related

SUITE CRM 7.5.3 - Installation on Windows 7 / Apache 2.x / PHP 7/MYSQL5.6 hangs after Database Configuration

I am installing SuiteCRM 7.1 on
Windows 7
Apache 2.4
PHP 7.0.4
MySQL 5.6
I am following step by step instructions from suitecrm.com/wiki/index.php/Installation...allation_of_SuiteCRM
This is a local installation and I am not going to send emails. I am going to evaluate whether this is good enough for client's requirements. Based on my findings, I will recommend it to them.
I have tested APACHE, PHP and MYSQL connectivity and all of them work fine.
The installation goes from System Requirements to Database Confiuration & Site Configuration and after filling out all the data there, when I click on NEXT, I see some 25+ messages like this
"Deprecated: Methods with the same name as their class will not be
constructors in a future version of PHP; SugarView has a deprecated
constructor in
C:\Users\Hornigold\MyWebSite\MyCRM\include\MVC\View\SugarView.php on
line 44 ?"
And when I click NEXT here, nothing happens..... What do I do.
Installing SuiteCRM 7.1 requires PHP version 5 not version 7. There is some active development in the latest version to support PHP version 7. However it is not ready for production purposes.
An alternative method to installing SuiteCRM on a windows desktop machine is via the bitnami installer.
https://bitnami.com/stack/suitecrm/installer

Installing Apache, PHP, MySQL on Windows 8.1 - Apache won't start - Requested operation has failed [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am having trouble installing a home personal LAMP development server in Windows 8.1.
I tried to manually install Apache, MySQL, and PHP on Windows 8.1. It appears that both Apache and MySQL installed correctly because I can do "select databases" in MySQL, and localhost said something to the effect of "If you are seeing this message it means Apache installed correctly".
When I try to start the Apache2 service it says:
The requested operation has failed.
But, the service started after I installed it just fine. Only after a reboot did it start giving me this error and refusing to start.
I wonder why this so troublesome? I followed the instructions perfectly but it didn't give me the results that I was told to expect.
Specifications
OPERATING SYSTEM:
Windows 8.1 64-bit
APACHE SERVER:
httpd-2.0.65-win32-x86-openssl-0.9.8y.msi
MYSQL SERVER:
mysql-installer-community-5.6.19.0.msi
PHP for Windows:
php-5.3.28-Win32-VC9-x86.msi
VC9 x86 Thread Safe (2013-Dec-12 01:59:01)
Some final notes
IIS is not installed on this machine.
Firewall is disabled as 3dmasters recommends
I'm not an Apache expert, which is why on a previous system I used WAMP, but I remember when I installed it in 2009, even with a turnkey "package" that was supposed to eliminate problems, I still had problems of compatibility and configuration after the install. I eventually had success with WAMP and used it for learning PHP.
I am aware that there are pre-made packages like XAMPP and WAMP, but I don't want to use them this time, unless somebody can tell me unequivocally that there is absolutely no way even a seasoned programmer/computer specialist/network administrator can manually install Apache/MySQL/PHP on Windows 8.1.
In 3dmasters' tutorial video he is using VirtualBox and the no-ssl version of Apache. Again, his tutorial seems great and perhaps others were able to get up and running the first time with his instructions. However, I followed his instructions fairly close and it didn't work for me. It may be useful to note that Both of the sources (the most recent I could find) I used for the install were published last summer (2013). In McMillian's article, he summarizes the various concurrent problems that may be causing the "The requested operation has failed" error:
"The problem seems to by [sic] that there are numerous versions of Apache
and PHP. Most combinations of them are incompatible with each other.
Support does not seem to have been kept remotely up to date and the
documentation is terrible. Vital information is missing and in places
it seems to be inaccurate. This paper describes what worked mid
2013."
Thus, there were conflicts that at least one person knew about and was able to articulate and write about it. Yet I have found no other resources that address this in a step-by-step "this is what you should do, and this is why" along with, "don't do this because" manner. The closest admonishment of that sort was to make sure you are installing "thread safe" versions of the software, which I am.
Sources
Installing Apache 2.2.22, Php 5.3.26 and Mysql 5.6.12 Microsoft
Publisher: 3dmasters
Published: Jun 28, 2013
https://www.youtube.com/watch?v=UKbEzmMliNM
Installing Apache and PHP on Windows
Author: John McMillan
Published: July 25, 2013
http://johnrmcmillan.wordpress.com/2013/07/25/installing-apache-and-php-on-windows./
You are using an Apache 2.0 VC6 build with a PHP 5.3 VC9 build. Those builds have to at least match; you can't have Apache VC6 load a PHP VC9 module/extension. And I'm not even sure if Apache 2.0 can load PHP5 above 5.2 at all.
Is there a reason for these older versions?
But, the service started after I installed it just fine. Only after a reboot did it start giving me this error and refusing to start
Open the command line in Admin mode (right click cmd.exe, select Run as admin) and execute:
httpd -t
httpd -k start
It will output the problem.
If it says something about not being able to bind to port 80, check for the Services outlined in this guide:
Opening Up Port 80 For Apache to Use On Windows
unless somebody can tell me unequivocally that there is absolutely no way even a seasoned programmer/computer specialist/network administrator can manually install Apache/MySQL/PHP on Windows 8.1
It will take at least a few days to a few weeks if you really want to get it working fully, and correct for all edge-cases. Otherwise you should check out Xampp, WampServer, WampDeveloper Pro (not free), EasyPHP.
You shouldn't use the binaries from apache.org with the latest PHP builds. They use different CRT, furthermore - apache.org still uses VC6 and that is legacy. You can fetch a newer apache build from http://www.apachelounge.com/ and the corresponding PHP from http://windows.php.net/ . Be sure that the builds use the same CRT.

PHP Manager for IIS fails to install

I am trying to install PHP on IIS 8.
Every time I start the PHP installation, PHP installs but I get the follow error:
As Abhi says: fire up regedit.exe and change the decimal value of Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\MajorVersion from 10 (as set by Windows 10) to e.g. 8. Installer should work now. Afterwards, you can set the value back to 10 (or whatever value your Windows env. had at first).
Tip: For quick navigation, paste the path Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parametersinto the address-bar of Registry Editor and hit Enter.
Also, for me on Windows 10, I had to enable .NET Framework 3.5 > Windows Communication Foundation HTTP Activationfor the installer to progress. Without this enabled, installer would just hang at step 1. Requires reboot.
Installation of PHP Manager for IIS via the Web Platform Installer requires .NET 3.5 to work properly. Install .NET 3.5 first, and you should be all set.
The setup program checks that the registry value HKLM/System/CCS/Services/W3SVC/Parameters/MajorVersion is >= 7. The value in the registry is 0xA, which I am assuming is the problem. For a workaround, change the registry value to 9 (or 8 or 7) and PHP Manager for IIS should install correctly. [insert standard disclaimer about editing the registry]
Currently the installation also fails in case of using the Web Platform Installer because the Codeplex download link used by the Web Platform Installer does not exist anymore.
Luckily some guys created GitHub repositories to update PHP Manager. These repositories provide new releases witch should work without the registry hack.
The MSI installer can be downloaded here:
https://github.com/phpmanager/phpmanager/releases
https://github.com/RonaldCarter/PHPManager/releases

Installing PHP on IIS 6 (Win2003)

I have been trying to install PHP 5.3.6 on a clean install of Win2003, no dot net or anything else much installed. Unfortunately I have tried 'thread safe', 'non thread safe', installer file, zip file etc. but whatever I try PHP just doesn't seem to work. I have also installed Microsoft C++ 2008 redistributable as suggested on PHP site but still nothing.
Any suggestions on how I should actually be installing this properly. There seems to be vague and at times conflicting instructions on the PHPweb site.
Make sure that you have told IIS how to handle PHP files.
In IIS Manager, expand the tree and find web service extensions, then make sure you have a spot for PHP, pointing to the php dll.
then make sure that your MIME types are set up correctly. Right click your website under Web Sites, view properties, then the HTTP Headers Tab. Click the MIME Types button, and make sure you have an entry for PHP.
This is how we got it set up in IIS Manager. Hope it helps you too.
Further investigation suggests that PHP 5.3.x will only work with IIS using FastCGI; isapi is no longer supported hence the reason that PHP5isapi.dll is missing. Unfortunately FastCGI cannot be installed on IIS without first installing Microsoft Web Platform Installer which requires dot net to be installed first.
This is crazy, PHP are effectively insisting that dot net is a pre-requisite for PHP - madness!
And further investigation reveals I was wrong - it is now installed and working.
Download and install FastCGI from here:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=227219AA-6AEC-4B80-A9FA-76F811EE9E84&amp%3Bdisplaylang=en
This is a simple .msi install, no dot net required.
Restart IIS
Then download the NON Thread Safe PHP and install to IIS FastCGI Server option.
Now all working.
Here's how I installed PHP 5.3 on IIS 6 (running on Windows 2003 server):
http://www.howtoadvice.com/PHPIIS
This document is a little old and outdated but you should be able to use Web Platform Installer to install PHP on IIS6 for you.

How to Mono, PHP and .NET module run together on Ubunty Hardy at Slicehost?

I'm running a rails app and PHP at my SliceHost Ubuntu Hardy Heron vps server. I've a PdfProcess.exe module built upon ASP.NET (.NET 2).
I've one PHP file which uses a passthru("PdfProcess.exe ......") function which loads a pdf template and outputs a new processed pdf file and sent to browser.
The combination of PdfProcess.exe and PHP passthru(...) function works on my Windows Apache/PHP server in my development system.
Now I got to use this in my Ubuntu Hardy. I googled on how to run a .NET app using Mono in Ubuntu and I found Mono.
And I've been trying to install Mono 2.0.1, 2.2 since 2 days, still figuring out the installation error and I'm getting no-where.
So, before spending anymore time on it I want to know what are the things to install to make work the PHP passthru(...) function and PdfProcess.exe work together?
Only installing Mono will work or do I have to install XSP and MCS as well?
And which version of Mono is required to run this PdfProcess.exe .NET 2 based module?
First, you should use Moma to check if you PdfProcess.exe can run without a problem on Mono.
http://mono-project.com/Moma
Second, install Mono on Ubuntu is hard. There is no official support yet. You may try other Linux distribution.
Are you running Apache? most probably.
You need to install and configure mod_mono to run Asp.net applications.
On Mono project site you can find details instructions to configure mod_mono
I suggest you to look in repo(Add/remove program ) for mono, but there will be older version.
Is PdfProcess.exe is .net application? if yes than First check it with MoMa
If PdfProcess.exe is not .net application than you have find replacement of it.

Categories