search for: yourservice

Displaying 2 results from an estimated 2 matches for "yourservice".

2019 Apr 24
4
Systemd, PHP-FPM, and /cgi-bin scripts
CentOS 7 server and Fedora 29 dev workstation, both with PHP 7.2, Apache 2.4, php-fpm, all updated. I have a web-based app I've been developing for some time, and recently the need to upload files of large size EG 1 GB or larger, has come up. So I wrote a /cgi-bin script that works, takes the input, and even runs the same application framework as the main application which normally
2019 Apr 24
0
Systemd, PHP-FPM, and /cgi-bin scripts
...different parts of the web app. This includes related things like access to > the $_SESSION data files, and so on. Don't share data between services with /tmp. Create a separate directory to share data, make sure the permissions and SELinux attributes allow writing there. Put it in /run/yourservice/ if you want it to be ephemeral and small. The reason why the php-fpm service has its own private /tmp directory is because the php-fpm.service has "PrivateTmp=true" in its [Service] section. This creates a private /tmp namespace for the php-fpm process, which is a good security practic...