Sab
Verified User
- Joined
- Jul 1, 2019
- Messages
- 35
I deployed a new server with DirectAdmin and enabled php-fpm74
Setup a test site and find that php is very slow
Even a simple phpinfo() page takes 30sec to load
Apache MPM: Event
Contents of /usr/local/directadmin/data/users/user/php/php-fpm74.conf
Contents of /usr/local/directadmin/data/users/admin/php/php-fpm74.conf
No constraints on ram, cpu or io
Any ideas on how to fix this?
Setup a test site and find that php is very slow
Even a simple phpinfo() page takes 30sec to load
Apache MPM: Event
Contents of /usr/local/directadmin/data/users/user/php/php-fpm74.conf
[user]
user = $pool
group = $pool
listen = /usr/local/php74/sockets/$pool.sock
listen.owner = $pool
listen.group = apache
listen.mode = 660
pm = ondemand
pm.max_children = 10
pm.process_idle_timeout = 20
pm.max_requests = 500
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f [email protected]
php_admin_value[session.save_path] = /home/user/tmp
php_admin_value[open_basedir] = /home/user/:/tmp/:/var/tmp/:/opt/alt/php74/usr/share/pear/:/dev/urandom:/usr/local/php74/lib/:/usr/local/php74/lib/:/usr/local/php73/lib/:/usr/local/php80/lib/:/usr/local/lib/php/
php_admin_value[mail.log] = /home/user/.php/php-mail.log
security.limit_extensions = .php .php52 .php53 .php54 .php55 .php56 .php60 .php70 .php71 .phtml .inc .php74
Contents of /usr/local/directadmin/data/users/admin/php/php-fpm74.conf
[admin]
user = $pool
group = $pool
listen = /usr/local/php74/sockets/$pool.sock
listen.owner = $pool
listen.group = apache
listen.mode = 660
pm = ondemand
pm.max_children = 10
pm.process_idle_timeout = 20
pm.max_requests = 500
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f [email protected]
php_admin_value[session.save_path] = /home/admin/tmp
php_admin_value[open_basedir] = /home/admin/:/tmp/:/var/tmp/:/opt/alt/php74/usr/share/pear/:/dev/urandom:/usr/local/php74/lib/:/usr/local/php74/lib/:/usr/local/php73/lib/:/usr/local/php80/lib/:/usr/local/lib/php/
php_admin_value[mail.log] = /home/admin/.php/php-mail.log
security.limit_extensions = .php .php52 .php53 .php54 .php55 .php56 .php60 .php70 .php71 .phtml .inc .php74
No constraints on ram, cpu or io
Any ideas on how to fix this?
Last edited: