Skip to content

Commit 6cd4e16

Browse files
committed
Updated readme
1 parent 730dc18 commit 6cd4e16

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ With this simple script, one can execute PHP scripts directly from CLI. It is co
66

77
This script is based on [Mathias Leppich's gist][1], with added support for loading the script from a file (instead of input code as CLI argument), query-string parameters and verification of not only the exit code of the script - but also http-status-code.
88

9-
## Dependencies
9+
See more details in: https://elisegev.medium.com/running-php-fpm-in-cli-e1f0f4b4f59a
10+
11+
## Requirements
12+
13+
### Dependencies
1014

1115
RHEL / CentOS
1216
```shell script
@@ -18,6 +22,16 @@ Ubuntu / Debian
1822
apt-get install libfcgi0ldbl
1923
```
2024

25+
### Setup
26+
27+
PHP script needs to be executable and owned by an allowed user (ACL):
28+
```shell script
29+
vi /etc/php-fpm.d/www.conf
30+
# add your group to the comma-delimited list: listen.acl_users
31+
# e.g. listen.acl_users = apache,nginx,mygroup
32+
systemctl restart php-fpm
33+
```
34+
2135
## Usage
2236

2337
Run PHP script:

0 commit comments

Comments
 (0)