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 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
hmahdavi921
 
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

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!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1053
Joined: January 7th, 2012, 8:36 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 3 guests

User Control Panel

Login

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 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: No registered users and 3 guests
Phalanger