1. Install apt install libfcgi0ldbl
2. Install apt install html2text
3. Sh script
SCRIPT_FILENAME=/path/to/site/php_info.php \REQUEST_URI=/ \
QUERY_STRING= \
REQUEST_METHOD=GET \
cgi-fcgi -bind -connect /run/php/php7.3-fpm.sock
4. script.sh | html2text
We will get phpinfo() function output through php-fpm, not through php-cli
Комментариев нет:
Отправить комментарий