aj-techsoul / ELECTRON-4-PHP

An easiest way to use php in electron
MIT License
203 stars 46 forks source link

PHP server not started. Retrying... #27

Closed PeaKyyI closed 3 years ago

PeaKyyI commented 3 years ago

I have the same error than sheerazahmadpk, the console display PHP server not started. Retrying... I need help thanks.

PeaKyyI commented 3 years ago

Ive got the answer like Rajeshwaran2001 said you nedd to replace the server creation code in MAIN.js by this : const server = new PHPServer({ php: "php/php.exe", // <==== ADDED port: 5555, directory: __dirname, directives: { display_errors: 1, expose_php: 1 } });

dont forget to keep this line const PHPServer = require('php-server-manager'); if is display 'PHPServer not define' I hope it will help

aj-techsoul commented 3 years ago

Thanks its really good.