开发者

Location of php.ini?

开发者 https://www.devze.com 2023-02-28 21:38 出处:网络
I have to increase my memory limit, but there is no php.ini anywhere on my server. When I query 开发者_高级运维php_info(), it says it\'s in a folder called web/conf, but there is no such folder on m

I have to increase my memory limit, but there is no php.ini anywhere on my server.

When I query 开发者_高级运维php_info(), it says it's in a folder called web/conf, but there is no such folder on my server. I looked in every folder.


Run the script:

<? phpinfo() ?>

And you'll see the path under the "Loaded Configuration File" value/row.


Try to do a

find / -name "php.ini"

to locate your php.ini. If you have php installed, it will be there. If not, reinstall php.


If you don't have access to your php.ini file you can always set a configuration option at runtime with ini_set()


You can (re)install PHP by downloading this package and you can see a full tutorial over here. Goodluck!


C:\xampp\php\php.ini

I found this here:PHP.ini location

0

精彩评论

暂无评论...
验证码 换一张
取 消