- Server operating system version
- Ubuntu 18.04.4 LTS
- Plesk version and microupdate number
- 18.0.50
I want to set up chroot environment not only for shell access. So how to do this manually for PHP too?
First part is simple - just add the configuration like
and restart php-fpm.
But I stuck to configure nginx to supply the correct headers for PHP.
Calling a script in the browser ends with: File not found or Primary script unknown
Assuming docroot is /httpdocs inside the chroot-directory I tried
Anyone got this working?
First part is simple - just add the configuration like
[php-fpm-pool-settings]
chroot = /var/www/vhosts/your-domain.tld
and restart php-fpm.
But I stuck to configure nginx to supply the correct headers for PHP.
Calling a script in the browser ends with: File not found or Primary script unknown
Assuming docroot is /httpdocs inside the chroot-directory I tried
in the nginx directive for php but it still doesn't work and the proxy_error_log just shows a similar error message.fastcgi_param SCRIPT_FILENAME /httpdocs$fastcgi_script_name;
Anyone got this working?