2017-05-11 23 views
1

我wampserver運行,並通過wampserver.Now字按在http://localhost:81/wordpress/地址wampserver raned設置Listen 0.0.0.0:81 Listen [::0]:81httpd.conf文件運行WordPress目前。 我需要通過visual studio運行wordpress。我安裝php工具,並創建新的php項目,然後將所有文件和文件夾複製到wordpress文件夾F:\ wamp \ www \ wordpress到我的php項目中。現在當運行項目打開瀏覽器並轉到http://localhost:9600/?XDEBUG_SESSION_START=87B9D26B然後重定向到http://localhost:81/?XDEBUG_SESSION_START=87B9D26B url。如何通過PHP工具在Visual Studio中運行WordPress?

這個網站無法達到

本地主機拒絕連接。谷歌搜索本地主機 ERR_CONNECTION_REFUSED

的wp-config.php文件:

// ** MySQL settings - You can get this info from your web host ** // 
/** The name of the database for WordPress */ 
define('DB_NAME', 'wordpress'); 

/** MySQL database username */ 
define('DB_USER', 'root'); 

/** MySQL database password */ 
define('DB_PASSWORD', ''); 

/** MySQL hostname */ 
define('DB_HOST', 'localhost'); 

/** Database Charset to use in creating database tables. */ 
define('DB_CHARSET', 'utf8mb4'); 

/** The Database Collate type. Don't change this if in doubt. */ 
define('DB_COLLATE', ''); 

我怎樣才能在Visual Studio中運行通過PHP工具WordPress的?在你的第一張截圖 ![enter image description hereenter image description here enter image description here

回答

0

通知PHP路徑指向IIS快遞。您需要「註冊新的PHP路徑」並將其設置爲WAMP PHP安裝的位置。

相關問題