Page 1 of 1

How to Run WordPress in visual studio via PHP Tools?

PostPosted: May 11th, 2017, 6:38 pm
by hmahdavi921
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:\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?
http://stackoverflow.com/questions/43921699/how-to-run-wordpress-in-visual-studio-via-php-tools

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

PostPosted: May 12th, 2017, 3:37 pm
by Miloslav Beno
Hello,

Thanks for the post!

There is another thread discussing some issues with Wordpress which might help http://support.devsense.com/viewtopic.php?f=21&t=1860&p=8330&hilit=wordpress+custom+server#p8330

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 http://www.wpbeginner.com/wp-tutorials/how-to-install-wordpress-on-your-windows-computer-using-wamp/

Please let me know if any of that helped.

Thanks!

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

PostPosted: January 14th, 2018, 9:03 am
by Akash
This is very nice tutorial about how to install wordpress locally, I also written article <a href="http://technobuckets.com/2018/01/how-to-install-wordpress-on-xampp-localhost/">How to install wordpress on XAMPP locally</a>, I wrote this article with complete screenshot reference. You can refer this for more in detail installation of Wordpress on localhost.

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

PostPosted: January 24th, 2018, 3:14 pm
by Miloslav Beno
Hi Akash,

Wow, tutorial with screenshots would be great! Could you please check the link, it seems the page is no there.

Thank you so much for this!

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

PostPosted: January 24th, 2018, 3:16 pm
by Miloslav Beno
I've found the link http://technobuckets.com/how-to-install-wordpress-on-xampp-localhost/

Very helpful, thank you so much!