enter image description here

I run wampserver and set Listen 0.0.0.0:81 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:wampwwwwordpress into my php project . Now when run project open browser and go to http://localhost:81/?XDEBUG_SESSION_START=87B9D26B url.

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', '');

How can i run wordpress via php tools in visual studio?

Read more here: How to Run WordPress in visual studio via PHP Tools?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: