Where can found php.ini file from Parallels Panel?

417 views Asked by At

I need to increase memory limit in php.ini for WordPress website. So need to edit php.ini file but where is it in Parallels Panel I can not find.

1

There are 1 answers

1
AudioBubble On BEST ANSWER

It can be found which configuration file is used by PHP by using a script with the phpinfo(); function:

# cat /var/www/vhosts/domain.tld/httpdocs/info.php
<?php phpinfo();?>

Open a page which contains this PHP code and review the " Configuration File (php.ini) Path ", " Scan this dir for additional .ini files " and " additional .ini files parsed " sections at the beginning of the page.

Since Parallels Plesk 10 it is possible to set up php.ini per-domain for each domain which is running PHP scripts as a CGI of FastCGI application. In this case it should be located in ${VHOST_DIR}//etc/ directory to be recognized by PHP interpreter.

there are other ways for wordpress you can check at http://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/