Can I have a local php.ini for WordPress only? -


i have wordpress set on linux in directory:

/var/www/html/myblog

there 3 lines need add php.ini , when made these php.ini in directory works expected:

/etc

is there way can have php.ini in blog directory , have wordpress use values rather having change /etc/php.ini ?

note did try creating 3 line php.ini changes need in /var/www/html/myblog did not seem recognize changes. seem recognize changes when add them end of php.ini in /etc

you can take @ using php .user.ini files. following php documentation:

.user.ini files

since php 5.3.0, php includes support configuration ini files on per-directory basis. these files processed cgi/fastcgi sapi. functionality obsoletes pecl htscanner extension. if using apache, use .htaccess files same effect.

in addition main php.ini file, php scans ini files in each directory, starting directory of requested php file, , working way current document root (as set in $_server['document_root']). in case php file outside document root, directory scanned.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -