question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setup on Windows Problem

See original GitHub issue

Greetings, 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:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
juppwernercommented, Aug 13, 2019

Hi,

I had the same issue.

I have installed the xampp package, and I had C:\xampp\php in my PATH environment variable. So the phpinfo() 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 showed

PHP server not started. Retrying...

It works when you change main.js to add the path to the bundled PHP like this:

const server = new PHPServer({
    php: "php\\php.exe",  // <==== ADDED
    port: 5555,
    directory: __dirname,
    directives: {
        display_errors: 1,
        expose_php: 1
    }
});

Perhaps this should just be added to the README file?

Regards Joachim

0reactions
aj-techsoulcommented, Aug 13, 2019

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found