<tfoot id='1MFp0'></tfoot>

    1. <small id='1MFp0'></small><noframes id='1MFp0'>

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

      • <bdo id='1MFp0'></bdo><ul id='1MFp0'></ul>
    2. <legend id='1MFp0'><style id='1MFp0'><dir id='1MFp0'><q id='1MFp0'></q></dir></style></legend>

      使用 Apache 时在 PHP 中设置用于访问的环境变量

      Setting environment variables for accessing in PHP when using Apache(使用 Apache 时在 PHP 中设置用于访问的环境变量)
      • <small id='fV5cw'></small><noframes id='fV5cw'>

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

              • <tfoot id='fV5cw'></tfoot>

                <legend id='fV5cw'><style id='fV5cw'><dir id='fV5cw'><q id='fV5cw'></q></dir></style></legend>
                本文介绍了使用 Apache 时在 PHP 中设置用于访问的环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有一个 Linux 环境,我有一个 PHP Web 应用程序,它使用 PHP 中的 getenv 根据环境变量有条件地运行.我需要知道如何设置这些环境变量以使应用程序正常工作.我不确定如何在 Apache 上进行设置.

                I have a Linux environment and I have a PHP Web Application that conditionally runs based on environment variables using getenv in PHP. I need to know how these environment variables need to be set for the application to work correctly. I am not sure how to set this up on Apache.

                另外,我需要能够为每个域分别配置单独的环境变量.

                Also, I need to be able to configure separate environment variables for each domain separately.

                请就我如何实现这一点提出建议.

                Please advice on how can I achieve this.

                推荐答案

                大意:

                <VirtualHost hostname:80>
                   ...
                   SetEnv VARIABLE_NAME variable_value
                   ...
                </VirtualHost>
                

                这篇关于使用 Apache 时在 PHP 中设置用于访问的环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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 的问题)
              • <i id='JUwrl'><tr id='JUwrl'><dt id='JUwrl'><q id='JUwrl'><span id='JUwrl'><b id='JUwrl'><form id='JUwrl'><ins id='JUwrl'></ins><ul id='JUwrl'></ul><sub id='JUwrl'></sub></form><legend id='JUwrl'></legend><bdo id='JUwrl'><pre id='JUwrl'><center id='JUwrl'></center></pre></bdo></b><th id='JUwrl'></th></span></q></dt></tr></i><div id='JUwrl'><tfoot id='JUwrl'></tfoot><dl id='JUwrl'><fieldset id='JUwrl'></fieldset></dl></div>
                    <tbody id='JUwrl'></tbody>

                      • <tfoot id='JUwrl'></tfoot>
                        <legend id='JUwrl'><style id='JUwrl'><dir id='JUwrl'><q id='JUwrl'></q></dir></style></legend>
                          <bdo id='JUwrl'></bdo><ul id='JUwrl'></ul>

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