久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      yum httpd 不解析php怎么辦

      yum httpd不解析php的解決辦法:1、打開“httpd.conf”文件,添加“index.php”索引;2、增加文件解析類型,修改內(nèi)容如“AddType application/x-httpd-php .php”;3、設(shè)置php-fpm連接參數(shù),并增加fastcgi支持模塊;4、重載httpd服務(wù)即可。

      yum httpd 不解析php怎么辦

      本教程操作環(huán)境:linux5.9.8系統(tǒng)、PHP8.1版、DELL G3電腦

      yum httpd 不解析php怎么辦?

      yum安裝php apache(httpd)無法正常解析php界面

      背景

      yum安裝php7.2 httpd后,apache無法正常解析index.php

      解決辦法

      一般修改httpd.conf即可,括號路徑為我實際修改文件

      添加index.php索引(/etc/httpd/conf/httpd.conf)

      <IfModule dir_module>     DirectoryIndex index.php index.htm index.html #增加index.php </IfModule>
      登錄后復(fù)制

      增加文件解析類型(/etc/httpd/conf/httpd.conf)

          AddType application/x-compress .Z     AddType application/x-gzip .gz .tgz     AddType application/x-httpd-php .php#增加php類型
      登錄后復(fù)制

      設(shè)置php-fpm連接參數(shù)(/etc/httpd/conf/httpd.conf)

      SetHandler "proxy:fcgi://127.0.0.1:9000"#增加到httpd.conf #也可用socket模式連接 #/path/to/unix/socket必須和php-fpm.conf里面配置的一致 #SetHandler "proxy:unix:/path/to/unix/socket|fcgi://localhost" // unix socket 形式
      登錄后復(fù)制

      增加fastcgi支持模塊(/etc/httpd/conf.modules.d/00-proxy.conf)

      LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
      登錄后復(fù)制

      重載httpd服務(wù)

      systemctl restart httpd #重啟
      登錄后復(fù)制

      推薦學(xué)習(xí):《PHP視頻教程》

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號