The version of RMH Homebase that was used on previous exercises was the 1.5 version, and the version needed for the new database exercises is the 2.0 version. What this meant was that I needed to start from scratch as far as getting a new development sandbox ready. Going back to Scott's awesome instructions for doing this made the process a lot less of a headache. The switch over from 1.5 to 2.0 involved the following steps:
- Downloading the new 2.0 code and placing the rmh20 folder into my /var/www folder
- Creating a new MySQL database in phpMyAdmin named rmh20DB
- Setting up myself with security privileges in the new database
- Entering these privileges into the dbinfo.php file in my webroot folder
- Adding the project to Eclipse
- Running (as a web page) dbinstall.php then dbinstallsandbox.php in Eclipse to set up the sandbox
- Download the tarball here for the Eclipse plugin
- Extract in whatever folder you downloaded into
- Open up Eclipse and go into Help > Install new software. Enter the following url into the "work with" box > http://simpletest.org/eclipse/ and then click add.
- After installing the plugin, its time to configure. Restart Eclipse
- Go into Window > Preferences > Simpletest
- Enter the executable location for php (mine is /usr/bin/php5), the php.ini location (mine is /etc/php5/cli/php.ini/), and the path to where the extracted Simpletest folder is. Then put down the file extension as .php
- Now go into Run > Run Configuration. Highlight Simpletest and then click on 'New' (tiny box at top left).
- Enter into the form that pops up a name for your new configuration, the project (rmh20), and then the test file (alltests.php). Save it and you are ready to test.
No comments:
Post a Comment