'fork/exec /usr/bin/php: operation not permitted' again & again!
I was using the PHP - CLI as a free user. I had no problems. I thought I would give back to the developers and sign-up for the Hacker plan. I am trying to use PHP - Webserver, and it's basically unusable due to the following error 'fork/exec /usr/bin/php: operation not permitted' I've Googled to try to find out what the problem is many times - I've yet to find a proper answer.
It's not my code - it's about as basic as it gets. Could somebody please enlighten me? I will provide a link to the code - it may work the first time. Is there something I have to configure on my end? I've disabled UBlock Origin.
I may have to revert back t the free plan - not being able to use PHP Webserver is a deal breaker for me.
The error is a repl.it error that happens when either of the following 2 conditions are met: -
- You run out of resources while trying to do something. For example: infinitely creating new files with some content in them.
- Bad container.
Either way, forking the repl should fix it. Work on the newly forked repl and delete the old one and you're good to go!
@TheDrone7 It's deffo not No. 1. More likely No. 2. I'll try your suggestion - thanks for the help.
@TheDrone7 I did as you suggested, It worked for about 10 mins, then threw up the error, then stopped working. I'm going to post it as a bug report.
Repl is basically to my understanding just a remote server connection, it may be blocked by a firewall or your isp due to the locations of the ip's. if you have access to your router it usually has a firewall, just allow all incoming and out coming connections for repl and its servers. if your at school and i assume if your using UBlock as most schools do its your schools isp blocking the ips
@Masy Thanks for the response. I'm a grandad, so not at school :-) I doubt it's the router as I have complete control over it.
The strange thing is, if I go to this page: https://repl.it/talk/announcements/PHP-Language-Improvements-and-Web-Server-Capabilities/15085
I click on the link - 'launch your own PHP Web Server Today' - it creates a new repl and it actually works! Seems I can't create a new php web server via the create 'new repl' option. At least I've got a working PHP Web Server... for now.
@ziggy Probs just repl acting up, I'll mess with the PHP web servers in a lil after I'm out of geometry.
@Masy OK - thanks a lot.
@ziggy Yeah i looked into it, its repl mine wont work either
@Masy Thanks - the one I mentioned earlier in the thread has now stopped working. I'll have to file a bug report.