Got error 'Primary script unknown\n'
Means that index.php can't be found in /var/www/roundcubemail are you sure that it is there ? For roundcube it is a good practise to use the public_html folder to keep sensitive files out of reach, so your index.php might be there instead.
Although this post is from 2015 and I feel I am necroing (sorry community), I feel like it's valuable to add at this point in time:
Nowadays (and since Kubernetes was mentioned) when you're working with Docker you can use Kubernetes or Docker Swarm very easily to solve this problem. Both orchestrators will take in your docker nodes (one node = one server ...
This is a PHP-FPM prank.
Setup the clear_env = no on /etc/php/7.2/fpm/pool.d/www.conf, so;
On Dockerfile start de php-fpm with init.d, not use service.
CMD /etc/init.d/php7.2-fpm start && nginx -g 'daemon off;'
Check environment variables now 🤩
Another method for MaxOS
Open ActivityMonitor, search php-fpm, find the pid.
Open terminal, use kill [pid] to stop php-fpm
Then php-fpm on terminal to start it.
If there is error information that 127.0.0.1:9000 Already in use, just ignore that.
Refresh Nginx page, should see php.ini changes take effects.
It wasn't a php-fpm issue, it was a web-server permission issue.
By default on Arch nginx server runs workers as http user, you can see it at the start of your nginx.conf file:
So the http user couldn't access files in the directory /home/MYUSERNAME/Desktop/grav;
When you moved the files to the directory to which the http ...
I had this problem with a few PHP scripts and finally resolved it. I had written a script to close and release the browser connection but continue processing the script. The problem was my script was timing out (because it was doing a time-intensive activity) causing the connection to be stuck in "Gracefully finishing." My PHP was doing some third party API ...
Got it. The issue was listen.acl_users (emphasis mine):
When POSIX Access Control Lists are supported you can set them using
these options, value is a comma separated list of user/group names.
When set, listen.owner and listen.group are ignored.
Solution: comment out this line:
;listen.acl_users = apache,nginx
The error occurs most probably due to a malformed URL - even though it reports just a vague Bad Request error.
It was probably the missing /....
RewriteRule ^(.*)$ /index.php [L,QSA]
RewriteRule ^(.*)$ index.php [L,QSA]
Why is my rewrite rule resulting in "400: Bad Request"?