How to Run WordPress in visual studio via PHP Tools?

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

How to Run WordPress in visual studio via PHP Tools?

Postby hmahdavi921 » May 11th, 2017, 6:38 pm

I run wampserver and set Listen Listen [::0]:81 into httpd.conf file for run wordpress currently via wampserver.Now word press raned in wampserver in http://localhost:81/wordpress/ address. I need to run wordpress via visual studio. I install php tools and create new php project by vs and then copy all files and folders that exist into wordpress folder F:\wamp\www\wordpress into my php project . Now when run project open browser and go to http://localhost:81/?XDEBUG_SESSION_START=87B9D26B url.

wp-config.php :

Code: Select all
// ** 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', '');

How can i run wordpress via php tools in visual studio?
Posts: 1
Joined: May 11th, 2017, 6:35 pm

Re: How to Run WordPress in visual studio via PHP Tools?

Postby Miloslav Beno » May 12th, 2017, 3:37 pm


Thanks for the post!

There is another thread discussing some issues with Wordpress which might help

Anyway if you are using wampserver, just make sure you have Custom server settings in the project properties with the correct virtual address.

I've also noticed on screen which you've posted on stackoverflow which seems to indicate that you just get the response from the wamp server, not the actual page. You will need to setup the wampserver first to handle your virtual directory

Please let me know if any of that helped.

Miloslav Beno │ DEVSENSE s.r.o. │
User avatar
Miloslav Beno
Posts: 1002
Joined: January 7th, 2012, 8:36 pm

Return to PHP Tools

Who is online

Users browsing this forum: Bing [Bot] and 2 guests


User Control Panel


Who is online

In total there are 3 users online :: 1 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 62 on January 7th, 2012, 10:54 pm

Users browsing this forum: Bing [Bot] and 2 guests