Thursday, September 17, 2009

Running Wordpress Locally and Editing with Netbeans

NetBeans
  1. Open Netbeans
  2. Tools>Plugins>Available tab
  3. Choose PHP plugin and install it
  4. File>New Project
  5. Expand the PHP Folder
  6. Choose PHP Project From Existing Source and press Next
  7. Find the root directory of your Wordpress files
  8. Give the project a name and import it
Debugging
  1. Install XAMPP as detailed in another post
  2. Point XAMPP's Apache to your Wordpress files by editing
    xampp\apache\conf\httpd.conf
  3. Search the document for htdocs -- there will be two occurences.
  4. Replace the two paths to point to your wordpress code.
Wordpress uses absolute URLs, so it will load pages from the internet if you try to view the local copy of Wordpress
So whenever you need to debug:
  1. Open your hosts file
  2. Add the following entry:
    127.0.0.1 your_domain_name
    (you can comment it out with a # at the beginning of a line)
  3. Start Mysql using XAMPP control panel
  4. Start Apache
  5. Point your browser at http://localhost

No comments:

Labels

Blog Archive

Contributors