PHP scoop install on wapper local server - detection fails?

Wappler Version : 5.8.2
Operating System : Windows 10
Server Model: PHP
Database Type: not applicable
Hosting Type: locval

Expected behavior

PHP should install and be detected

…YOUR TEXT HERE …

Actual behavior

PHP installs but wappler does not sdetect it’s presence

See video

Could you open the terminal in Wappler and enter:

php -v

to see what the output is.

Then you can also enter:

scoop list

to see which packages are installed with scoop.

So paste the out of both commands here.

php -v has no output

scoop shows installed

should mention I have already tried
scoop uninstall php
followed by scoop install php

well maybe there is another php installed that conflicts…

try:

where php

to see where php is coming from.

other thing to try is, as maybe php errors are disabled:

php -d display_errors=1 -v

Hmm, no output

For info this is factory reset machine i was going to use for a video about the various new server/database/publishing features (which is why i am doing the php server setup) so there is only wappler and video recording software installed

also where output

Having php -v without any output is very weird.
Do other commands give output? Like node -v

could you try in a cmd window outside of wappler to see if you get any ourput from php -v

other test you can try is have a simple php file that echoes some output and execute it with php test.php to see if you get any output at all.

created a node project and got:

Page Includes: Asset add to head: https://use.fontawesome.com/releases/v5.14.0/css/all.css
Page Includes: Head node changed successfully
Page Includes: Asset add to head: /bootstrap/5/css/bootstrap.min.css
Page Includes: Asset add to head: /bootstrap/5/js/bootstrap.bundle.min.js
Page Includes: Head node changed successfully
Page Includes: Asset add to head: /dmxAppConnect/dmxAppConnect.js
Page Includes: Head node changed successfully
Page Includes: Asset add to head: /css/style.css
Page Includes: Head node changed successfully
Copy file dmxAppConnect.js
Page Includes: Asset add to head: /dmxAppConnect/dmxRouting/dmxRouting.js
Page Includes: Head node changed successfully
Copy file dmxRouting.js
Copy file bootstrap.min.css
Copy file bootstrap.bundle.min.js
Error: EBUSY: resource busy or locked, open 'C:\webs\test2\lib\validator\db.js' at Object.openSync (node:fs:585:3) at Object.func [as openSync] (node:electron/js2c/asar_bundle:5:1812) at Object.readFileSync (node:fs:453:35) at Object.e.readFileSync (node:electron/js2c/asar_bundle:5:9160) at C:\Users\Hyperbytes\AppData\Local\Wappler\resources\app\Shared\DMXzone\dmxAppCreator\UI\lib\file.js:8:3310 at C:\Users\Hyperbytes\AppData\Local\Wappler\resources\app\Shared\DMXzone\dmxAppCreator\UI\lib\file.js:8:6142 at C:\Users\Hyperbytes\AppData\Local\Wappler\resources\app\Shared\DMXzone\dmxAppCreator\UI\lib\file.js:8:5075 at FSReqCallback.oncomplete (node:fs:188:23)
Check completed successfully...
Check completed successfully...

Checking NodeJS installation and version...

Checking NodeJS installation and version...

Installing 'nodejs-lts' (18.16.0) [64bit] [main]WARN  By installing you accept following license: MIT (https://spdx.org/licenses/MIT.html)

WARN  By installing you accept following license: MIT (https://spdx.org/licenses/MIT.html)
Starting download with aria2 ...Starting download with aria2 ...

Download: [#45f991 624KiB/17MiB(3%) CN:2 DL:2.3MiB ETA:7s]                                                                                  Download: [#Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 45f991|OK  |   1.5MiB/s|C:/Users/Hyperbytes/scoop/cache/nodejs-lts#18.16.0#https_nodejs.org_dist_v18.16.0_node-v18.16.0-win-x64.7z
Download: Status Legend:
Download: (OK):download completed.
Checking hash of node-v18.16.0-win-x64.7z ... Get-FileHash : The file 'C:\Users\Hyperbytes\scoop\cache\nodejs-lts#18.16.0#https_nodejs.org_dist_v18.16
.0_node-v18.16.0-win-x64.7z' cannot be read: 
The process cannot access the file 'C:\Users\Hyperbytes\scoop\cache\nodejs-lts#18.16.0#https_nodejs.org_dist_v18.16.0_node-v18.16.0-win-x64.7z' 
because it is being used by another process.
At C:\Users\Hyperbytes\scoop\apps\scoop\current\lib\install.ps1:734 char:21
+ ...          return (Get-FileHash -Path $file -Algorithm $algname).Hash.T ...
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ReadError: (C:\Users\Hyperb...16.0-win-x64.7z:PSObject) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : FileReadError,Get-FileHash
 
ERROR You cannot call a method on a null-valued expression.
ERROR Hash check failed!
App:         main/nodejs-lts
URL:         https://nodejs.org/dist/v18.16.0/node-v18.16.0-win-x64.7z       
First bytes: 55 122 188 175 39 28 0 4
Expected:    007848640ba414f32d968d303e75d9841ecd2cd95d6fdd81f80bc3dcbd74ae44
Actual:      
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 45a9ba|OK  |   1.4MiB/s|C:/Users/Hyperbytes/scoop/cache/nodejs-lts#18.16.0#https_nodejs.org_dist_v18.16.0_node-v18.16.0-win-x64.7z
Download: Status Legend:
Download: (OK):download completed.
Checking hash of node-v18.16.0-win-x64.7z ... 
Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Main/issues/new?title=nodejs-lts%4018.16.0%3a+Hash+check+failed&body=Hash+check+failed!%0aApp%3a+++++++++main%2fnode
js-lts%0aURL%3a+++++++++https%3a%2f%2fnodejs.org%2fdist%2fv18.16.0%2fnode-v18.16.0-win-x64.7z%0aFirst+bytes%3a+55+122+188+175+39+28+0+4%0aExpected%3a+
+++007848640ba414f32d968d303e75d9841ecd2cd95d6fdd81f80bc3dcbd74ae44%0aActual%3a++++++
ERROR This application failed to install: main/nodejs-lts
Checking hash of node-v18.16.0-win-x64.7z ... Resolve-Path : Cannot find path 'C:\Users\Hyperbytes\scoop\cache\nodejs-lts#18.16.0#https_nodejs.org_dis
t_v18.16.0_node-v18.16.0-win-x64.7z' because 
it does not exist.
At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Utility\Microsoft.PowerShell.Utility.psm1:110 char:36
+                 $pathsToProcess += Resolve-Path $Path | Foreach-Objec ...
+                                    ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\Hyperb...16.0-win-x64.7z:String) [Resolve-Path], ItemNotFoundException  
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.ResolvePathCommand
 
ERROR You cannot call a method on a null-valued expression.
ERROR Hash check failed!
App:         main/nodejs-lts
URL:         https://nodejs.org/dist/v18.16.0/node-v18.16.0-win-x64.7z       
Expected:    007848640ba414f32d968d303e75d9841ecd2cd95d6fdd81f80bc3dcbd74ae44
Actual:      
NodeJS installation failed!

Node is not installed. You might need it to develop NodeJS based web sites & apps!

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Main/issues/new?title=nodejs-lts%4018.16.0%3a+Hash+check+failed&body=Hash+check+failed!%0aApp%3a+++++++++main%2fnode
js-lts%0aURL%3a+++++++++https%3a%2f%2fnodejs.org%2fdist%2fv18.16.0%2fnode-v18.16.0-win-x64.7z%0aExpected%3a++++007848640ba414f32d968d303e75d9841ecd2cd
95d6fdd81f80bc3dcbd74ae44%0aActual%3a++++++
ERROR This application failed to install: main/nodejs-lts
NodeJS installation failed!

Node is not installed. You might need it to develop NodeJS based web sites & apps!

running in command prompt i get

I will try another factory reset i think

Try (re)installing the microsoft c++ runtime libraries.

Latest supported Visual C++ Redistributable downloads | Microsoft Learn

Still problems, going to reset laptop.
As a note, i suspect the missing DLL probably has not been flagged as that DLL is also installed when setting up docker desktop so the issue would only be flagged on a new system which has never had docker desktop install.
will report back

If it is a problem with the php configuration you could try php -n -v, that ignores the php.ini configuration.

OK, did a full re-install and re-added wappler
Created a PHP site and left scoop to install php

Exactly the same issue HOWEVER i did see this error which I did not spot the previous time

“ODE” is not recognised?
Is that command correct?

Did installing the Microsoft runtime helped?

You can also do it with scoop in a wappler terminal, just execute:

scoop bucket add extras
scoop install extras/vcredist2022

Let me know if this works and help, so we can incorporate it in Wappler.
It is usually only needed on a brand new PC without anything installed as the Microsoft runtimes are almost immediately installed with any other software.

Just done another run through and manually installing dependencies (2012-2022) seems to have resolved the PHP issue.

Also tried a node setup and got


Should i worry about that

20 posts were split to a new topic: New installation on brand new Windows PC - some project files locked

splitted the topic, as it was different problem. Current PHP install problem on brand new pc is clear now and we will resolve it in the future by also auto installing Microsoft Runtime VCREDIST (which is actually already installed on the most PC’s, but on a brand new ones without any software on them, it might not yet.