PHPManager
PHPManager copied to clipboard
Modules missing a section declaration
Installed .Net 4.5 Ran the phpmanagerv1.5.0 Get Error 1001. Filename: \?\C:\Windows\system32\inetsrv\config\administration.config Error: The configuration section 'modules' cannot be read because it is missing a section declaration.
Running on Server 2008R2 IIS7
Not really a IIS kind of person so I have no idea if this is because the installer is looking for PHP somewhere that it's not, which it is in the C:\Program Files\PHP. If this is a .NET problem because there are 1500 versions of .NET so when you state that it works with 4.5 is that 4.5.1 or 4.5.2 ect ect..
Any light you can shed on this would be helpful.
I am facing the same problem.
Sorry about not replying earlier
This version was built for server 2016 with IIS7 while you are using an earlier IIS version, Their is a IIS7 sub branch that would have a working MSI for use.
I am investigating moving back to IIS7 web.administration for all builds just need more testing
The cause of the exception is simple. The installer you built use .NET Framework 4.x to load the custom action, and on IIS 7.x machine such a way will lead to exceptions.
The only way to fix is to let the installer run the same custom action on .NET Framework 3.5, then the exception would disappear.
Update: Sounds like it is impossible to choose .NET Framework version in Custom Actions, https://blogs.msdn.microsoft.com/astebner/2005/03/10/dont-use-managed-code-to-write-your-custom-actions/ So other workarounds need to be used.
Update: Fixed in latest installers, https://ci.appveyor.com/project/lextm/phpmanager/build/artifacts .
I am not sure of your solution to the problem as this then generates more then one MSI. Would it be possible to insert these MSIs into a master MSI with a simple check script on IIS version and Windows architecture on run on which one installs?
@RonaldCarter That's not something Visual Studio Setup Project supports. I don't plan to create a master MSI yet, but that is clearly a better way to simplify installation.
@RonaldCarter I am able to ship a single MSI package now in 2.0 Beta 2.
was this ever solved, as I am also having this issue on Windows server 2012. Cannot install php manager either via WPI or manually from MSI
@deltaforce what MSI did you use? I am confident that the ones created by me do not have this issue, https://github.com/phpmanager/phpmanager/releases
I tried via Web platform installer and used the download from the Microsoft site
@deltaforce those are extremely old installers and they won't work as expected if you read my comment in Aug 2018 above.
You can either,
- Uninstall .NET Framework 4.x and then use that old installers.
- Or simply use PHP Manager 2.x installers maintained by me.
ok thanks, I did not realise these were different versions from the official.
ok I downloaded your version, but still getting the error
Make sure you go to Control Panel | Programs to uninstall the previous version.
Mine should call "PHP Manager 2 for IIS" when you install it.
There is no previous version installed as the install failed with the same above error.
@deltaforce All installers I created come with SHA1 hash values, https://github.com/phpmanager/phpmanager/releases
Which one did you use and what is the hash code?
PHPManagerForIIS_x64.msi - FB2D89986D6E467EBB10C2090AB7D475F9369268
nevermind, I rebooted and that fixed it.
The cause of the exception is simple. The installer you built use .NET Framework 4.x to load the custom action, and on IIS 7.x machine such a way will lead to exceptions. The only way to fix is to let the installer run the same custom action on .NET Framework 3.5, then the exception would disappear. Update: Sounds like it is impossible to choose .NET Framework version in Custom Actions, https://blogs.msdn.microsoft.com/astebner/2005/03/10/dont-use-managed-code-to-write-your-custom-actions/ So other workarounds need to be used.
Update: Fixed in latest installers, https://ci.appveyor.com/project/lextm/phpmanager/build/artifacts . Your (Microsoft) Link for the Fix worked - Thanks.