There are probably a lot of different ways to test Drupal. I’ll be testing it on a local computer using a LAMP server, in my case Ubuntu with Apache, MySQL and PHP.
Note: this might be a rather technical post.
Steps:
- Install Ubuntu 11.04
This step is dead-easy, just download the latest version and either put it on a USB stick or write it to disk. Boot it and follow the steps. - Install tasksel
Required to easily install the rest of the LAMP server. Installing tasksel can be done using sudo apt-get install tasksel. - Install LAMP
Do this using sudo tasksel install lamp-server and away you go. You’ll only have to provide a password for your MySQL sa account. - Install phpmyadmin
For easy database administration do sudo apt-get install phpmyadmin. Make sure to include the phpmyadmin configuration file:- Add the line Include /etc/phpmyadmin/apache.conf to the /etc/apache2/apache2.conf file
- Restart apache by sudo /etc/init.d/apache2 restart.
- Download Drupal 7.2 and extract to /var/www.
- Make a database for drupal using myphpadmin
- Then go to http://localhost/drupal-7.2/install.php. Probably the sites/default/files and sites/default/settings.php are not writable, this can be temporarily set using e.g. chmod a+w files. Don’t forget to reset using chmod go-w files.
- You’re all set!!
Add 3
- Testing Apache can be done by trying to access http://localhost.
- Testing php can be done by creating a file in /var/www called e.g. testing.php. Add the content <?php phpinfo(); ?> and restart apache with sudo /etc/init.d/apache2 restart. Then try to access http://localhost/testing.php.
Add 4
Testing phpmyadmin by trying to access http://localhost/phpmyadmin.