{"id":131,"date":"2017-01-02T20:17:25","date_gmt":"2017-01-02T20:17:25","guid":{"rendered":"http:\/\/cellbiol.com\/test-bioinfo\/?page_id=131"},"modified":"2017-06-04T17:10:49","modified_gmt":"2017-06-04T17:10:49","slug":"setting-up-an-ubuntu-linux-web-server-reference-summary","status":"publish","type":"page","link":"http:\/\/www.cellbiol.com\/bioinformatics_web_development\/chapter-2-the-linux-operating-system-setting-up-a-linux-web-server\/setting-up-an-ubuntu-linux-web-server-reference-summary\/","title":{"rendered":"2-7: Setting up an Ubuntu Linux Web Server &#8211; Reference Summary"},"content":{"rendered":"<p>In this chapter we have gone through all the knowledge required to set up a Linux web server from scratch, and explained in detail, step my step, the procedures and command involved. We have also provided the first rudiments of Linux system administration and filesystem management.<\/p>\n<p>Despite the lengthy explanations in the previous sections, once you have some familiarity with Linux, and have an Ubuntu desktop linux installed on a machine, setting up a web server is actually a matter of a few minutes.<\/p>\n<p>In this section we summarize, for quick reference, with no further explanations (please refer to previous sections), all the commands required to install the server software and configure the machine so that each user have access to an individual web folder with a dedicated address.<\/p>\n<p><strong>Updating repositories<\/strong><\/p>\n<p>andrea@ubuntu:~$ sudo apt-get update<\/p>\n<p><strong>Installing OpenSSH Server<\/strong><\/p>\n<p>andrea@ubuntu:~$ sudo apt-get install openssh-server<\/p>\n<p><strong>Installing tasksel<\/strong><\/p>\n<p>andrea@ubuntu:~$ sudo apt-get install tasksel<\/p>\n<p><strong>Installing LAMP server<\/strong><\/p>\n<p>andrea@ubuntu:~$ sudo apt-get install lamp-server<\/p>\n<p><strong>Activate module userdir<\/strong><\/p>\n<p>andrea@ubuntu:~$ sudo a2enmod userdir<\/p>\n<p><strong>Create public_html directories for each user<\/strong><\/p>\n<p>Unlike the steps above, this step can be done directly by each user<\/p>\n<p>username@ubuntu:~$ mkdir \/home\/username\/public_html<\/p>\n<p>if the administrator does it, it is then a good idea to assign ownership of the public_html directories to each user with chown.<\/p>\n<p>Also, make sure the users directories at \/home\/username have a 755 permission.<\/p>\n<p><strong>Find out the name of the apache mods-enabled php configuration file<\/strong><\/p>\n<p>andrea@ubuntu:~$ ls \/etc\/apache2\/mods-enabled\/ | grep php<\/p>\n<p><strong>Comment out a directive in the apache php configuration file<\/strong><\/p>\n<p>andrea@ubuntu:~$sudo nano -w \/etc\/apache2\/mods-enabled\/php7.0.conf (to be adjusted to the correct name of the php conf file)<\/p>\n<p>Comment out (add # at the beginning of the line) all the lines from:<\/p>\n<p>&lt;ifModule mod_userdir.c&gt;<\/p>\n<p>to<\/p>\n<p>&lt;\/ifModule&gt;<\/p>\n<p><strong>Restart apache<\/strong><\/p>\n<p>andrea@ubuntu:~$ sudo service apache2 restart<\/p>\n<p>Done! If you have comments or issues or success reports (most welcome!), please share by posting below.<\/p>\n<div class=\"google-ad\">\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<!-- bioinfo web dev 2 --><br \/>\n<ins class=\"adsbygoogle\"\n     style=\"display:inline-block;width:728px;height:90px\"\n     data-ad-client=\"ca-pub-0159360445983090\"\n     data-ad-slot=\"3442176918\"><\/ins><br \/>\n<script>\n(adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n<\/div>\n<h2>Chapter Sections<\/h2>\n<p>[pagelist include=&#8221;63&#8243;]<\/p>\n<p>[siblings]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this chapter we have gone through all the knowledge required to set up a Linux web server from scratch, and explained in detail, step my step, the procedures and command involved. We have also provided the first rudiments of Linux system administration and filesystem management. Despite the lengthy explanations in the previous sections, once &hellip; <a href=\"http:\/\/www.cellbiol.com\/bioinformatics_web_development\/chapter-2-the-linux-operating-system-setting-up-a-linux-web-server\/setting-up-an-ubuntu-linux-web-server-reference-summary\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;2-7: Setting up an Ubuntu Linux Web Server &#8211; Reference Summary&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":63,"menu_order":7,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-131","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/www.cellbiol.com\/bioinformatics_web_development\/wp-json\/wp\/v2\/pages\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.cellbiol.com\/bioinformatics_web_development\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.cellbiol.com\/bioinformatics_web_development\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.cellbiol.com\/bioinformatics_web_development\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.cellbiol.com\/bioinformatics_web_development\/wp-json\/wp\/v2\/comments?post=131"}],"version-history":[{"count":9,"href":"http:\/\/www.cellbiol.com\/bioinformatics_web_development\/wp-json\/wp\/v2\/pages\/131\/revisions"}],"predecessor-version":[{"id":2668,"href":"http:\/\/www.cellbiol.com\/bioinformatics_web_development\/wp-json\/wp\/v2\/pages\/131\/revisions\/2668"}],"up":[{"embeddable":true,"href":"http:\/\/www.cellbiol.com\/bioinformatics_web_development\/wp-json\/wp\/v2\/pages\/63"}],"wp:attachment":[{"href":"http:\/\/www.cellbiol.com\/bioinformatics_web_development\/wp-json\/wp\/v2\/media?parent=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}