2017-05-11 17 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安装的位置。

相关问题