php的各種配置

2022-02-25 13:34:24 字數 650 閱讀 4187

問題:

1、如果去掉url_model=1時的index.php

第一步:把apache配置檔案中的loadmodule rewrite_module modules/mod_rewrite.so 取消注釋

第二步:在和index.php的根目錄新增.htaccess檔案 並寫入

rewriteengine on

rewritecond % !-d

rewritecond % !-f

rewriterule ^(.*)$ index.php/$1 [qsa,pt,l]

第三步:重啟apache

問題2、如何把localhost變成自定義的網域名稱如:tp.com

第一步:把apache配置檔案中的include conf/extra/httpd-vhosts.conf 取消注釋

第二步:在apache配置檔案中conf/extra/httpd-vhosts.conf加入

documentroot "你的專案的絕對路徑f:\wamp\www"

servername tp.com(你自定義的網域名稱)

第三步:在c:\windows\system32\drivers\etc\hosts檔案中加入

127.0.0.1 tp.com

第四步:重啟apache

php各種排序

file test.php 進行各種排序demo author xiaobai version 1 people array acc peter joe glenn cleveland echo the key from the current position is key people arr ...

Bash on Windows各種配置

powershell裡面執行 enable windowsoptionalfeature online featurename microsoft windows subsystem linux重啟電腦 原檔案重新命名備份sudo mv etc apt sources.list etc apt so...

apache的各種配置過程

apache基本配置過程 step2 安裝過程 注意 要選擇安裝為服務,這樣才可以修改配置。解除安裝apache也只需要執行httpd 2.2.25 win32 x86 no ssl.msi即可。2.配置apache php環境 step3 開啟apache的httpd.conf,新增一行 load...