Now just read how to create PHP ini file recursive. In fact, the file which is showing in the root directory cannot make changes in the child directories. So if you want to make changes in subdirectories then you need to create PHP ini file recursive.
Now just see an example if you have a directory in the public_html folder like public_html/blog. Now when you change memory limit from php.ini. Then it will apply on a public_html folder, not blog directory. So if you want to make changes on subdirectory also then “create PHP ini file recursive”.
Furthermore, it’s difficult to make PHP ini file for every subdirectory. So better to tell the server via .htaccess file to modify all subdirectories when any change occurs in PHP ini file.
Update suPHP_Config Path in .htaccess file
Now read how to update suPHP_ConfigPath in the .htaccess file? If you want to make your PHP ini file recursive then enter the below code in your .htaccess file. If .htaccess available then good otherwise create .htaccess file first.
The line will show the location of the PHP ini file. Don’t forget to change “username” to your CPanel username.
Test Create PHP ini File Recursive
Now just test create PHP ini file recursive. While create a phpinfo page in the subdirectory and test it. After loading the phpinfo page you will see the “Loaded Configuration File” is reflection site’s PHP ini file which you want to create recursively.
Note if you get an error which is as under, then its mean PHP version is not rendering correctly.
The above error is common for those who are using PHP version switcher. To rid of this error just check .htaccess file available in your root directory. Check correct AddHandler is available in your .htaccess file. If you see in the below image then PHP 5.4 AddHandler is showing. By the way, if you have failed to rid of this issue then contact us.
You understood about to create PHP ini file recursive. If you like this then don’t forget to subscribe our blog for upcoming articles. You can also read the below helpful articles for rid of difficulty regarding WordPress.