All Questions
400
questions
0
votes
1
answer
42
views
I need to kill a process in windows but i have 2 scripts under the same process id
i've the next issue: i'm running through an url a php script, this script makes a query to mongoDb and brings a loooot of registers, this takes almost an hour to finish. To this point everything goes ...
2
votes
0
answers
263
views
Laravel Horizon - Jobs in queue take much longer to complete when under load even though CPU/mem resources are abundant
Let me start off by saying that I am no PHP or Laravel expert, but a just a humble Engineer trying to figure out why Laravel Horizon job runtime spikes when a large influx of jobs is observed. Since ...
1
vote
1
answer
717
views
What causes TerminateProcess: Access is denied. when trying to run a Symfony server on Windows?
Context
I am using Symfony for a website and I worked on it during around two weeks.
I'm on Windows 10, I use Symfony 5.8.12 and php 8.1.13 along with Wamp 3.3.0 for the database.
Everything worked ...
0
votes
0
answers
49
views
How does threading and statefulness work in Laravel?
I’m trying to understand the process and execution model for Laravel/php running on httpd or in dev mode with php artisan serve. I’ve been struggling to find a resource that answers questions like the ...
0
votes
0
answers
36
views
how to terminate a running PHP instance (running with ignore_user_abort(1) and set_time_limit(0))
I have a PHP script that runs automatically from the CLI every day (using Task Scheduler on Windows) but may also be run manually via the browser. The script may conclude very quickly - within a ...
1
vote
1
answer
286
views
Dynamic Node path in laravel
I want to execute a js code in the node shell in a specific node version. The Script file is in the root of my project. Right now I am doing it like this:
$process = new Process(['/home/user/.nvm/...
1
vote
1
answer
244
views
How can PHP-FPM and nginx interpret php code
Been doing PHP for a while and I still can't understand how can nginx make use of PHP-FPM to interpret PHP code. When a request hits the nginx webserver, does it spawn a process and pass some streams ...
0
votes
2
answers
830
views
Unable to run Node Script file from Laravel Controller function
I am trying to run node js file function from Laravel Controller function. Basically Node js file called as translate.js have function which can translate input text to required language ( Like ...
0
votes
2
answers
198
views
Piping output of one command to the input of another in php
I'm attempting to run a bash command in a php script. Unfortunately, because the command contains a pipe to another command, it doesn't seem to work as simple as writing the actual bash command into ...
0
votes
0
answers
329
views
Why adding proc_get_status() makes proc_close() to return -1?
proc_close() returns 0, if I do not write proc_get_status() function
proc_close() returns 1, if I write proc_get_status() before proc_close() function
without calling proc_get_status() function
code:...
1
vote
1
answer
178
views
What does it actually mean by the term 'single-threaded process' specific to PHP and how and why does the request get blocked in this case?
Today I came across the following statement from PHP Manual:
The web server runs only one single-threaded process, so PHP
applications will stall if a request is blocked.
After reading and trying to ...
0
votes
1
answer
462
views
PHP prevent SIGTERM to bubble to proc_open process
Original question (Send SIGTERM to child on CTRL+C and parent should wait for it to close). See update below!
I have a PHP script (see below) starting a process and tailing it's output. This process ...
0
votes
0
answers
28
views
how to stop PHP forking a shell_exec?
So I am running a lumen application which spins up processes.
these processes are meant to run in the backround and they run as a daemon, we send a start command to the api in php and that spins up ...
0
votes
0
answers
1k
views
How to see a list of processes like in cpanel
cPanel has a feature in where if you click on the processes hyper link it shows you the PID, Process, CPU, MEM and an option to kill the process. How can I get a list of processes like in cPanel but ...
0
votes
2
answers
894
views
PHP SSE (EventSource) timeout every 2 minutes
I'm using this Mozilla SSE example
I added inside the loop a sample PHP proc_open example.
Run from browser, everything works fine.
The only problem is proc_open() execute a command that can take ...