{"id":164,"date":"2017-05-23T14:26:07","date_gmt":"2017-05-23T12:26:07","guid":{"rendered":"http:\/\/blog.van-daag.nl\/?p=164"},"modified":"2018-06-15T18:36:00","modified_gmt":"2018-06-15T17:36:00","slug":"install-webserver-on-raspberry-pi","status":"publish","type":"post","link":"https:\/\/van-daag.nl\/?p=164","title":{"rendered":"Install webserver on Raspberry Pi"},"content":{"rendered":"<p><a href=\"https:\/\/www.raspberrypi.org\/downloads\/raspbian\/\">Download Raspbian<\/a><br \/>\n<a href=\"https:\/\/www.raspberrypi.org\/documentation\/installation\/installing-images\/windows.md\">Place it on SD card<\/a><br \/>\nStart the raspberry.<\/p>\n<p>Login with: <strong>pi<\/strong> (root)<br \/>\nPassword: <strong>raspberry<\/strong><\/p>\n<p>Type <strong>sudo<\/strong>\u00a0<strong>raspi-config\u00a0<\/strong>to start the config.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-166 size-full\" src=\"https:\/\/i0.wp.com\/blog.van-daag.nl\/wp-content\/uploads\/2017\/05\/IMG_20170523_134939-1.jpg?resize=640%2C360\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/i0.wp.com\/van-daag.nl\/wp-content\/uploads\/2017\/05\/IMG_20170523_134939-1.jpg?w=4640&amp;ssl=1 4640w, https:\/\/i0.wp.com\/van-daag.nl\/wp-content\/uploads\/2017\/05\/IMG_20170523_134939-1.jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/van-daag.nl\/wp-content\/uploads\/2017\/05\/IMG_20170523_134939-1.jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/van-daag.nl\/wp-content\/uploads\/2017\/05\/IMG_20170523_134939-1.jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/van-daag.nl\/wp-content\/uploads\/2017\/05\/IMG_20170523_134939-1.jpg?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/van-daag.nl\/wp-content\/uploads\/2017\/05\/IMG_20170523_134939-1.jpg?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>Change the password<br \/>\nChange the Hostname<br \/>\nChange Localisation Options -&gt; Change Timezone to Europe, Amsterdam<br \/>\nChange Interfacing Options -&gt; Enable SSH<br \/>\nUpdate the Raspberry<\/p>\n<p>Exit menu<br \/>\nReboot the raspberry\u00a0<strong>sudo reboot<\/strong><\/p>\n<p>Open putty and connect to the raspberry and login<\/p>\n<p>Install Apache webserver on your Raspberry<\/p>\n<pre class=\"lang:default decode:true\">sudo apt-get install apache2 -y<\/pre>\n<p>Install PHP<\/p>\n<pre class=\"lang:default decode:true \">sudo apt-get install php5 libapache2-mod-php5 -y\r\n\r\n13-03-2018\r\nsudo apt-get install libapache2-mod-php\r\n\r\n<\/pre>\n<p>Install Mysql<\/p>\n<pre class=\"lang:default decode:true \">sudo apt-get install mysql-server php5-mysql -y<\/pre>\n<p>You get a message to enter MySQL root password. Enter this password and Reenter the password in the next screen<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-170 size-full\" src=\"https:\/\/i0.wp.com\/blog.van-daag.nl\/wp-content\/uploads\/2017\/05\/SQLPW-1.jpg?resize=640%2C387\" alt=\"\" width=\"640\" height=\"387\" srcset=\"https:\/\/i0.wp.com\/van-daag.nl\/wp-content\/uploads\/2017\/05\/SQLPW-1.jpg?w=644&amp;ssl=1 644w, https:\/\/i0.wp.com\/van-daag.nl\/wp-content\/uploads\/2017\/05\/SQLPW-1.jpg?resize=300%2C181&amp;ssl=1 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>Secure your MySQL<\/p>\n<pre class=\"lang:default decode:true \">sudo mysql_secure_installation<\/pre>\n<p>and enter the MySQL root password<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-171 size-full\" src=\"https:\/\/i0.wp.com\/blog.van-daag.nl\/wp-content\/uploads\/2017\/05\/Secure-MySQL-1.jpg?resize=566%2C159\" alt=\"\" width=\"566\" height=\"159\" srcset=\"https:\/\/i0.wp.com\/van-daag.nl\/wp-content\/uploads\/2017\/05\/Secure-MySQL-1.jpg?w=566&amp;ssl=1 566w, https:\/\/i0.wp.com\/van-daag.nl\/wp-content\/uploads\/2017\/05\/Secure-MySQL-1.jpg?resize=300%2C84&amp;ssl=1 300w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><\/p>\n<p>You get the message to change the password. Type <strong>No<\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-172 size-full\" src=\"https:\/\/i0.wp.com\/blog.van-daag.nl\/wp-content\/uploads\/2017\/05\/Change-Password-1.jpg?resize=576%2C145\" alt=\"\" width=\"576\" height=\"145\" srcset=\"https:\/\/i0.wp.com\/van-daag.nl\/wp-content\/uploads\/2017\/05\/Change-Password-1.jpg?w=576&amp;ssl=1 576w, https:\/\/i0.wp.com\/van-daag.nl\/wp-content\/uploads\/2017\/05\/Change-Password-1.jpg?resize=300%2C76&amp;ssl=1 300w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/p>\n<p>Now you get some questions. Answer is <strong>Yes<\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-173 size-full\" src=\"https:\/\/i0.wp.com\/blog.van-daag.nl\/wp-content\/uploads\/2017\/05\/SQL-questions-1.jpg?resize=639%2C545\" alt=\"\" width=\"639\" height=\"545\" srcset=\"https:\/\/i0.wp.com\/van-daag.nl\/wp-content\/uploads\/2017\/05\/SQL-questions-1.jpg?w=639&amp;ssl=1 639w, https:\/\/i0.wp.com\/van-daag.nl\/wp-content\/uploads\/2017\/05\/SQL-questions-1.jpg?resize=300%2C256&amp;ssl=1 300w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Download Raspbian Place it on SD card Start the raspberry. Login with: pi (root) Password: raspberry Type sudo\u00a0raspi-config\u00a0to start the config. Change the password Change the Hostname Change Localisation Options -&gt; Change Timezone to Europe, Amsterdam Change Interfacing Options -&gt; Enable SSH Update the Raspberry Exit menu Reboot the raspberry\u00a0sudo reboot Open putty and connect [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-164","post","type-post","status-publish","format-standard","hentry","category-raspberry"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/posts\/164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=164"}],"version-history":[{"count":4,"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/posts\/164\/revisions"}],"predecessor-version":[{"id":289,"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/posts\/164\/revisions\/289"}],"wp:attachment":[{"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}