{"id":141,"date":"2011-05-28T16:39:33","date_gmt":"2011-05-28T16:39:33","guid":{"rendered":"http:\/\/www.lelieveld.info\/?p=141"},"modified":"2011-06-18T19:33:17","modified_gmt":"2011-06-18T19:33:17","slug":"test-drupal-on-a-ubuntu-11-04-lamp-server","status":"publish","type":"post","link":"https:\/\/www.lelieveld.info\/?p=141","title":{"rendered":"Test Drupal on a Ubuntu 11.04 LAMP server"},"content":{"rendered":"<p>There are probably a lot of different ways to test <a title=\"Drupal\" href=\"http:\/\/drupal.org\/\">Drupal<\/a>. I&#8217;ll be testing it on a local computer using a LAMP server, in my case <a title=\"Ubuntu\" href=\"http:\/\/www.ubuntu.com\/\">Ubuntu<\/a> with Apache, MySQL and PHP.<\/p>\n<p>Note: this might be a rather technical post.<\/p>\n<p><!--more-->Steps:<\/p>\n<ol>\n<li>Install Ubuntu 11.04<br \/>\nThis 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.<\/li>\n<li>Install tasksel<br \/>\nRequired to easily install the rest of the LAMP server. Installing tasksel can be done using <em>sudo apt-get install tasksel<\/em>.<\/li>\n<li>Install LAMP<br \/>\nDo this using <em>sudo tasksel install lamp-server<\/em> and away you go. You&#8217;ll only have to provide a password for your MySQL sa account.<\/li>\n<li>Install phpmyadmin<br \/>\nFor easy database administration do <em>sudo apt-get install phpmyadmin<\/em>. Make sure to include the phpmyadmin configuration file:&nbsp;<\/p>\n<ol>\n<li>Add the line <em>Include \/etc\/phpmyadmin\/apache.conf<\/em> to the <em>\/etc\/apache2\/apache2.conf<\/em> file<\/li>\n<li>Restart apache by <em>sudo \/etc\/init.d\/apache2 restart<\/em>.<\/li>\n<\/ol>\n<\/li>\n<li>Download Drupal 7.2 and extract to <em>\/var\/www<\/em>.<\/li>\n<li>Make a database for drupal using myphpadmin<\/li>\n<li>Then go to <em>http:\/\/localhost\/drupal-7.2\/install.php<\/em>. Probably the <em>sites\/default\/files<\/em> and <em>sites\/default\/settings.php<\/em> are not writable, this can be temporarily set using e.g. <em>chmod a+w files<\/em>. Don&#8217;t forget to reset using <em>chmod go-w files<\/em>.<\/li>\n<li>You&#8217;re all set!!<\/li>\n<\/ol>\n<p><strong>Add 3<\/strong><\/p>\n<ul>\n<li>Testing Apache can be done by trying to access <em>http:\/\/localhost<\/em>.<\/li>\n<li>Testing php can be done by creating a file in <em>\/var\/www<\/em> called e.g.<em> testing.php<\/em>. Add the content <em>&lt;?php phpinfo(); ?&gt;<\/em> and restart apache with <em>sudo \/etc\/init.d\/apache2 restart<\/em>. Then try to access <em>http:\/\/localhost\/testing.php<\/em>.<\/li>\n<\/ul>\n<p><strong>Add 4<\/strong><br \/>\nTesting phpmyadmin by trying to access <em>http:\/\/localhost\/phpmyadmin<\/em>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are probably a lot of different ways to test Drupal. I&#8217;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.<\/p><p><a class=\"more-link btn\" href=\"https:\/\/www.lelieveld.info\/?p=141\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":214,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[38,5,37],"class_list":["post-141","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website","tag-drupal","tag-learning","tag-ubuntu","item-wrap"],"_links":{"self":[{"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=\/wp\/v2\/posts\/141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=141"}],"version-history":[{"count":18,"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions"}],"predecessor-version":[{"id":215,"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions\/215"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=\/wp\/v2\/media\/214"}],"wp:attachment":[{"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}