<small id='CxjdX'></small><noframes id='CxjdX'>

    <i id='CxjdX'><tr id='CxjdX'><dt id='CxjdX'><q id='CxjdX'><span id='CxjdX'><b id='CxjdX'><form id='CxjdX'><ins id='CxjdX'></ins><ul id='CxjdX'></ul><sub id='CxjdX'></sub></form><legend id='CxjdX'></legend><bdo id='CxjdX'><pre id='CxjdX'><center id='CxjdX'></center></pre></bdo></b><th id='CxjdX'></th></span></q></dt></tr></i><div id='CxjdX'><tfoot id='CxjdX'></tfoot><dl id='CxjdX'><fieldset id='CxjdX'></fieldset></dl></div>
    <tfoot id='CxjdX'></tfoot>
      • <bdo id='CxjdX'></bdo><ul id='CxjdX'></ul>
      <legend id='CxjdX'><style id='CxjdX'><dir id='CxjdX'><q id='CxjdX'></q></dir></style></legend>

      1. Linux/CentOS PC 上的 php.ini 文件在哪里?

        Where is the php.ini file on a Linux/CentOS PC?(Linux/CentOS PC 上的 php.ini 文件在哪里?)
            <i id='gdAl0'><tr id='gdAl0'><dt id='gdAl0'><q id='gdAl0'><span id='gdAl0'><b id='gdAl0'><form id='gdAl0'><ins id='gdAl0'></ins><ul id='gdAl0'></ul><sub id='gdAl0'></sub></form><legend id='gdAl0'></legend><bdo id='gdAl0'><pre id='gdAl0'><center id='gdAl0'></center></pre></bdo></b><th id='gdAl0'></th></span></q></dt></tr></i><div id='gdAl0'><tfoot id='gdAl0'></tfoot><dl id='gdAl0'><fieldset id='gdAl0'></fieldset></dl></div>
            <tfoot id='gdAl0'></tfoot>
            <legend id='gdAl0'><style id='gdAl0'><dir id='gdAl0'><q id='gdAl0'></q></dir></style></legend>

                <tbody id='gdAl0'></tbody>
                • <bdo id='gdAl0'></bdo><ul id='gdAl0'></ul>

                  <small id='gdAl0'></small><noframes id='gdAl0'>

                  本文介绍了Linux/CentOS PC 上的 php.ini 文件在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在我的服务器上找不到 PHP.ini 位置.我检查了所有 Stack Overflow 答案,但找不到我的 php.ini 位置.

                  I can't find PHP.ini location on my server. I've checked all Stack Overflow answers but I can't find my php.ini location.

                  我有 Linux、Cent OS、zPanel.PHP 的最新版本.

                  I have Linux, Cent OS, zPanel. Last version of PHP.

                  我的电脑:Linux Mint 15 KDE.

                  My computer: Linux Mint 15 KDE.

                  推荐答案

                  在你的终端/控制台中(只有 Linux,在 windows 中你需要 腻子)

                  In your terminal/console (only Linux, in windows you need Putty)

                  ssh user@ip
                  php -i | grep "Loaded Configuration File"
                  

                  它会显示类似这样的内容 Loaded Configuration File =>/etc/php.ini.

                  And it will show you something like this Loaded Configuration File => /etc/php.ini.

                  替代方法

                  你可以在你的网站上创建一个php文件,运行:<?php phpinfo();?>,可以看到php.ini的位置在一行:"Loaded Configuration File".

                  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".

                  更新该命令立即给出路径

                  cli_php_ini=php -i | grep /.+/php.ini -oE  #ref. https://stackoverflow.com/a/15763333/248616
                      php_ini="${cli_php_ini/cli/apache2}"   #replace cli by apache2 ref. https://stackoverflow.com/a/13210909/248616
                  

                  这篇关于Linux/CentOS PC 上的 php.ini 文件在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Converting string to MySQL timestamp format in php(在php中将字符串转换为MySQL时间戳格式)
                  datetime to timestamp(日期时间到时间戳)
                  PHP timestamp date to user timezone(PHP时间戳日期到用户时区)
                  Converting TIMESTAMP to unix time in PHP?(在 PHP 中将 TIMESTAMP 转换为 unix 时间?)
                  Convert ISO 8601 to unixtimestamp(将 ISO 8601 转换为 unixtimestamp)
                  Finding days between 2 unix timestamps in php(在php中查找2个unix时间戳之间的天数)
                    <tbody id='MSn3u'></tbody>

                      <small id='MSn3u'></small><noframes id='MSn3u'>

                      <i id='MSn3u'><tr id='MSn3u'><dt id='MSn3u'><q id='MSn3u'><span id='MSn3u'><b id='MSn3u'><form id='MSn3u'><ins id='MSn3u'></ins><ul id='MSn3u'></ul><sub id='MSn3u'></sub></form><legend id='MSn3u'></legend><bdo id='MSn3u'><pre id='MSn3u'><center id='MSn3u'></center></pre></bdo></b><th id='MSn3u'></th></span></q></dt></tr></i><div id='MSn3u'><tfoot id='MSn3u'></tfoot><dl id='MSn3u'><fieldset id='MSn3u'></fieldset></dl></div>
                        <bdo id='MSn3u'></bdo><ul id='MSn3u'></ul>
                          <tfoot id='MSn3u'></tfoot>
                        • <legend id='MSn3u'><style id='MSn3u'><dir id='MSn3u'><q id='MSn3u'></q></dir></style></legend>