How do I preview PHP (or eRuby) files using built-in web server?

Built-in web server allows you to avoid setting up full-size web server on your local computer.

To enable the built-in web server:

  1. On the Options menu, click Preferences.
  2. Under Preview - Mappings uncheck Use mappings;
  3. Under Preview - Script Preview check the option Use built-in web server;
  4. Click Web Server Settings and specify the path to php-cgi.exe file. If you do not have the PHP interpreter on your computer, you must download and install it. Click here to download a self-installing PHP package.

After completing these steps, your computer should be set up and ready to preview the PHP (or eRuby) files using the built-in web server.