我的php.ini文件在哪里? Linux,CentOS [英] Where is my php.ini file? Linux, CentOS
问题描述
我在我的服务器上找不到PHP.ini位置。我已经检查所有stackoverflow答案,但我找不到我的php.ini位置。
请帮助我!
我有Linux,Cent OS,zPanel。上一版本的PHP。
我的电脑:Linux Mint 15 KDE
p>在您的终端/控制台(仅限Linux,在Windows中,您需要 Putty )
ssh用户@ ip
php -i | grep加载配置文件
它会显示类似下面的内容配置文件=> /etc/php.ini
。
替换方法
您可以在您的网站上创建一个php文件,它运行:<?php phpinfo(); ?>
,您可以在加载配置文件上看到php.ini位置。
I can't find PHP.ini location on my server. I've checked all stackoverflow answers but i can't find my php.ini location.
Please help me!
I have Linux, Cent OS, zPanel. Last version of PHP.
My computer: Linux Mint 15 KDE
In your terminal/console (only Linux, in windows you need Putty)
ssh user@ip
php -i | grep "Loaded Configuration File"
And it will show you something like this Loaded Configuration File => /etc/php.ini
.
ALTERNATIVE METHOD:
You can make a php file on your website, which run: <?php phpinfo(); ?>
, and you can see the php.ini location on the line with: "Loaded Configuration File".
这篇关于我的php.ini文件在哪里? Linux,CentOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!