[How to] Locate PHP configuration files for a domain?

Created:

2016-11-16 13:13:04 UTC

Modified:

2017-08-16 16:10:27 UTC

0

Was this article helpful?


Have more questions?

Submit a request

[How to] Locate PHP configuration files for a domain?

Applicable to:

  • Plesk for Linux
  • Plesk 11.x for Linux

Question

How to find php.ini file for a domain?

Answer

PHP uses different configuration files depending on a handler type:

  1. Nging + PHP-FPM by OS vendor

for Ubuntu

    /etc/php5/fpm/fpm.d/domain_name.conf

for Centos

    /etc/php-fpm.d/domain_name.conf
  1. Nging + PHP-FPM supplied with Plesk

    /opt/plesk/php/<php_verion>/etc/php-fpm.d/domain_name.conf
  2. Apache + FastCGI:

    /var/www/vhosts/system/domain_name/etc/php.ini
  3. Apache + PHP_mod:

    /var/www/vhosts/system/domain_name/conf/httpd.conf
Have more questions? Submit a request
Please sign in to leave a comment.