All checks were successful
Cloud Apache Container / Build-and-Push (74) (push) Successful in 1m45s
Cloud Apache Container / Build-and-Push (80) (push) Successful in 1m39s
Cloud Apache Container / Build-and-Push (81) (push) Successful in 1m38s
Cloud Apache Container / Build-and-Push (82) (push) Successful in 1m39s
Cloud Apache Container / Build-and-Push (83) (push) Successful in 1m42s
Cloud Apache Container / Build-and-Push (84) (push) Successful in 1m50s
PHP error logs were incorrectly being written to /etc/httpd/logs/error_log instead of the expected /home/$user/logs/php-fpm/ directory. Updated the php_admin_value[error_log] setting to point to the proper location. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
31 lines
550 B
Bash
31 lines
550 B
Bash
#!/bin/bash
|
|
|
|
rm /etc/php-fpm.d/www.conf
|
|
|
|
cat <<EOF > /etc/php-fpm.d/$user.conf
|
|
|
|
[$user]
|
|
|
|
user = $user
|
|
group = $user
|
|
listen = /run/php-fpm/www.sock
|
|
listen.owner = apache
|
|
listen.group = apache
|
|
|
|
pm = dynamic
|
|
pm.max_children = 5
|
|
pm.start_servers = 2
|
|
pm.min_spare_servers = 1
|
|
pm.max_spare_servers = 3
|
|
pm.max_requests = 500
|
|
|
|
slowlog = /etc/httpd/logs/error_log
|
|
request_slowlog_timeout = 3s
|
|
|
|
php_admin_value[error_log] = /home/$user/logs/php-fpm/error.log
|
|
php_admin_flag[log_errors] = on
|
|
php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache
|
|
|
|
EOF
|
|
|
|
exit 0 |