<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 文件在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                    <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>