Setup on Windows Problem
See original GitHub issueGreetings, awesome project! Have been wanting to learn more about electron, especially with PHP.
I have installed using GIT and can start (npm start) but showing “PHP server not started. Retrying…”
Running Windows 10. Here is my config:
const PHPServer = require('php-server-manager');
const server = new PHPServer({
port: 5555,
directory: __dirname,
directives: {
display_errors: 0,
expose_php: 0
}
});
server.run();
Sure it is something I do not understand about configuring main.js
Could you give me example of what you have working for Windows?
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Get help with Windows upgrade and installation errors
Make sure that your device has enough space. · Run Windows Update a few times. · Check third-party drivers and download any updates....
Read more >How to troubleshoot Windows Installer errors - Microsoft Support
Identify Windows Installer issues · Click Start windows icon · Right-click Windows Installer, and then click Properties. · If the Startup type box...
Read more >Troubleshoot common Setup and Stop Errors during Windows ...
Power down the computer. Unplug it, then wait 20 mins to 1 hour. If you are using a laptop, remove the battery if...
Read more >Troubleshoot problems updating Windows - Microsoft Support
Learn how to troubleshoot problems updating Windows. Find answers to common questions and issues installing Windows updates.
Read more >Troubleshoot installing Office - Microsoft Support
If you encountered a problem while installing Office on a PC, try restarting your computer and then attempting to install Office again. If...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi,
I had the same issue.
I have installed the xampp package, and I had
C:\xampp\php
in my PATH environment variable. So thephpinfo()
here always showed the PHP installed with xampp.I removed
C:\xampp\php
from my PATH in order to see the PHP info which came with the ELECTRON-4-PHP git package. Then it showedIt works when you change
main.js
to add the path to the bundled PHP like this:Perhaps this should just be added to the README file?
Regards Joachim
@juppwerner I have updated the Windows branch also. Kindly check in the Branch. https://github.com/AJ-TechSoul/ELECTRON-4-PHP/tree/Electron-4-PHP-Windows