-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP SERVER NOT STARTED. RETRYING... #26
Comments
Please add the repo to a c drive and also please click on the bat file. in
the root of repo.
…On Sun, Nov 8, 2020 at 9:14 PM sheerazahmadpk ***@***.***> wrote:
I just use this repo but I am getting this error
PHP SERVER NOT STARTED: RETRYING...
[image: electron]
<https://user-images.githubusercontent.com/29297868/98469722-2a02b980-2203-11eb-824a-2a72b56d8bc7.PNG>
and output is showing raw php file
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#26>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGP4QICY3M6UY7GNAHEV2Y3SO24GZANCNFSM4TOMULCQ>
.
|
I follow your steps but I am getting same error |
Please (in Windows) disable antivirus and firewall and also reduce the the
UAC to last down.
let me know.
…On Mon, Nov 16, 2020, 6:27 PM Rajeshwaran ***@***.***> wrote:
I just use this repo but I am getting this error
PHP SERVER NOT STARTED: RETRYING...
I had the file in c drive only
[image: Screenshot (69)]
<https://user-images.githubusercontent.com/54212165/99255029-4e7d1800-2839-11eb-8533-6b495462b975.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGP4QIGKUWTX7XZZ253XFDDSQEOVPANCNFSM4TOMULCQ>
.
|
Hi, I had the same issue. I have installed the xampp package, and I had C:\xampp\php in my PATH environment variable. 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... const server = new PHPServer({ Regards |
Please run .bat file you get with package.
…On Fri, Nov 20, 2020, 7:49 PM Rajeshwaran ***@***.***> wrote:
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
Rajeshwaran
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGP4QICBUS76YKKVXNVZ5A3SQZ3GNANCNFSM4TOMULCQ>
.
|
Did anyone else find a valid solution to this problem other than just saying "please run the .bat file". |
This is the solution, thanks ! |
I'm using Laravel with this repo, and was getting the same issue. My code in main.js (lines 68-87): (Github didn't let me format this code for some reason, sorry) When I ran this, I got one "PHP server not started. Retrying..." message, then it opened up my app and gave me this message: |
I'm still getting this issue...
Maybe this should be fixed. |
Check if the administration permission is given.
…On Mon, Feb 27, 2023, 6:41 PM Pedro Gouveia ***@***.***> wrote:
I'm still getting this issue...
I'm using MacOS and I get this error : "PHP Server error Error: spawn php
ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
at onErrorNT (internal/child_process.js:465:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn php',
path: 'php',
spawnargs: [
'-S',
'127.0.0.1:5555',
'-t',
'/Users/pedrogouveia/ELECTRON-4-PHP',
'-d',
'display_errors=1',
'-d',
'expose_php=1'
]
}
PHP Server closed
PHP server not started. Retrying..."
Maybe this should be fixed.
—
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGP4QIFAF5DGUHA7MR3LDYTWZSRYFANCNFSM4TOMULCQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Dear AJ, I'm running the program on my mac, and when I run the "sudo npm start" it gives me this error:
I'm I suppose to have PHP installed? Because in main.js you don't have any path for php if not running in windows. I'm running this command in "sudo". Any idea on why I might be having this issue? |
Solved the issue by installing PHP on macOS. |
Great, thanks for letting me know.
…On Tue, Feb 28, 2023 at 7:52 PM Pedro Gouveia ***@***.***> wrote:
Solved the issue by installing PHP on macOS.
—
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGP4QIGGPZR46SARK2B6AH3WZYC3NANCNFSM4TOMULCQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I just use this repo but I am getting this error
PHP SERVER NOT STARTED: RETRYING...
and output is showing raw php file
The text was updated successfully, but these errors were encountered: