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: 1252
Joined: January 7th, 2012, 8:36 pm

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

Postby Akash » January 14th, 2018, 9:03 am

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.
Akash
 
Posts: 1
Joined: January 14th, 2018, 9:02 am

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

Postby Miloslav Beno » January 24th, 2018, 3:14 pm

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

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

Postby Miloslav Beno » January 24th, 2018, 3:16 pm

I've found the link http://technobuckets.com/how-to-install-wordpress-on-xampp-localhost/

Very helpful, thank you so much!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 42 guests

cron

User Control Panel

Login

Who is online

In total there are 42 users online :: 0 registered, 0 hidden and 42 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 42 guests