{"id":1561,"date":"2016-04-29T12:42:46","date_gmt":"2016-04-29T19:42:46","guid":{"rendered":"http:\/\/internetofhomethings.com\/homethings\/?p=1561"},"modified":"2016-04-29T14:58:55","modified_gmt":"2016-04-29T21:58:55","slug":"usb-lamp-web-server-part-5-wordpress","status":"publish","type":"post","link":"https:\/\/internetofhomethings.com\/homethings\/?p=1561","title":{"rendered":"USB LAMP Web Server Part 5 &#8211;  WordPress"},"content":{"rendered":"<p style=\"text-align: center;\"><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_icon.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1568\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_icon.jpg\" alt=\"wordpress_icon\" width=\"225\" height=\"225\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_icon.jpg 225w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_icon-150x150.jpg 150w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/p>\n<p>Alas we come to the final installment of this 5-part series. Last but not least, let&#8217;s install WordPress on our private USB-based LAMP server. And in case you just joined us, <a href=\"http:\/\/wp.me\/p5NRQ8-n3\" target=\"_blank\">here is a link<\/a> to the first part, which also provides references\u00a0to all the other pieces to this puzzle.<\/p>\n<p>WordPress is the most widely used Content Management System (CMS) used today. As of April, 2016, 22% of all new website use WordPress. With all the options available today, that\u00a0is impressive market penetration!<\/p>\n<h2 style=\"text-align: center; color: red;\"><strong>Major Shortcut!!!<\/strong><\/h2>\n<p>And, just like with my last post, for those who do not want to go through all the setup steps, a Linux session save file is included with this post.<\/p>\n<p>Simply replace your existing save file with this one and you will be 99% complete with a web server that supports both php and mySQL server. <a href=\"https:\/\/www.dropbox.com\/s\/g4tfjpt31x9vot2\/precisesave-lampserver.zip?dl=0\" target=\"_blank\">Here it is<\/a>.<\/p>\n<p>Now let&#8217;s get to the step-by-step instructions&#8230;<\/p>\n<h3 style=\"text-align: center;\"><strong>Adding WordPress\u00a0to the USB Web\u00a0Server<\/strong><\/h3>\n<p><strong>Step 1:\u00a0Installing the WordPress Package.<\/strong><\/p>\n<p>Start the USB installed Precision Puppy Linux from <a href=\"http:\/\/wp.me\/p5NRQ8-oN\" target=\"_blank\">part 4<\/a>. Then launch the Puppy Package Manager. In the search window (Find), enter &#8220;wordpress&#8221; and search all repositories.<\/p>\n<p>Select wordpress_3.3.1 (or higher revision if available).<\/p>\n<p>Then click &#8220;Examine dependencies&#8221; \u00a0 and &#8220;Download and install selected packages&#8221;.<\/p>\n<p>Now close and restart the\u00a0Puppy Package Manager. In the search window (Find), enter &#8220;php5-gd&#8221; and search all repositories.<\/p>\n<p>Select php5-gd_5.3.10 (or higher revision if available)<\/p>\n<p>If the Description says &#8220;ALREADY INSTALLED&#8221;, then quit Puppy Package Manager<br \/>\nand continue to the next step.<\/p>\n<p><span style=\"line-height: 1.5;\">Otherwise, click &#8220;Examine dependencies&#8221; \u00a0 and &#8220;Download and install selected packages&#8221;.<\/span><\/p>\n<p><strong>Step 2: Create a WordPress Database and user in mySQL.<\/strong><\/p>\n<p>Start the mySQL server and open 2 console windows.<\/p>\n<p>In the first windows, start the mySQL server by entering (adjust IP to your conversion):<\/p>\n<p>#\u00a0mysqld &#8211;bind-address 192.168.0.11<\/p>\n<p>In the second widow, start the Apache Server by entering:<\/p>\n<p># \/etc\/init.d\/apache2 restart<\/p>\n<p>On\u00a0another computer on the same network as the LAMP server, enter the following in a web browser:<\/p>\n<p>http:\/\/192.168.0.11:9777\/phpmyadmin\/<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/phpmyadmin-1.png\"><br \/>\n<\/a><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql1-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1572\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql1-1.jpg\" alt=\"wordpress_mysql1\" width=\"447\" height=\"577\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql1-1.jpg 447w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql1-1-232x300.jpg 232w\" sizes=\"auto, (max-width: 447px) 100vw, 447px\" \/><\/a><\/p>\n<p>Use the Username &#8220;root&#8221; with no password and click &#8220;Go&#8221; to enter phpMyAdmin, the mySQL database administration tool installed in <a href=\"http:\/\/wp.me\/p5NRQ8-oN\" target=\"_blank\">part 4<\/a> of this series of USB LAMP server articles.<\/p>\n<p>From the page that is now displayed, click on the databases tab.<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql2-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1574\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql2-1.jpg\" alt=\"wordpress_mysql2\" width=\"465\" height=\"117\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql2-1.jpg 465w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql2-1-300x75.jpg 300w\" sizes=\"auto, (max-width: 465px) 100vw, 465px\" \/><\/a><\/p>\n<p>Now lets create a database called &#8220;wordpress&#8221; to check out our installation. \u00a0Enter &#8220;wordpress&#8221; for the database name and click &#8220;Create&#8221;:<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql3-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1576 aligncenter\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql3-1.jpg\" alt=\"wordpress_mysql3\" width=\"525\" height=\"128\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql3-1.jpg 525w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql3-1-300x73.jpg 300w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/a><\/p>\n<p style=\"text-align: left;\">The new database will appear in the list of databases. We are now going to link\u00a0a\u00a0user to this database. Click &#8220;Check Privileges&#8221;.<\/p>\n<p style=\"text-align: left;\"><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1577 alignleft\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql4.jpg\" alt=\"wordpress_mysql4\" width=\"305\" height=\"33\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql4.jpg 305w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql4-300x32.jpg 300w\" sizes=\"auto, (max-width: 305px) 100vw, 305px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Then click &#8220;Add a new user&#8221;.<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1578 alignleft\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql5.jpg\" alt=\"wordpress_mysql5\" width=\"183\" height=\"67\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Enter &#8220;demowpuser&#8221; in the &#8220;User name&#8221;, &#8220;Password&#8221;, and &#8220;Re-type&#8221; fields. Then click &#8220;Go&#8221; at the bottom of this page.<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1579\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql6.jpg\" alt=\"wordpress_mysql6\" width=\"548\" height=\"503\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql6.jpg 548w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql6-300x275.jpg 300w\" sizes=\"auto, (max-width: 548px) 100vw, 548px\" \/><\/a><\/p>\n<p>This demo WordPress database setup is now complete.<\/p>\n<p style=\"text-align: center;\"><strong>Step 3: Get the WordPress files.<\/strong><\/p>\n<p>The WordPress files can be downloaded either from a separate computer or the USB LAMP server. Assuming you are using the USB LAMP server:<\/p>\n<p>Open the Puppy Linux Web Browser by clicking on the &#8220;browse&#8221; icon on the desktop. Then got to the URL: https:\/wordpress.org\/download.<\/p>\n<p>Click &#8220;Download WordPress&#8221;.<\/p>\n<p>Save the zip file to &#8220;\/mnt\/home&#8221;.<\/p>\n<p>Using the Pupply Linux file Manager (Menu&gt;Filesystem&gt;ROX-Filer file manager), navigate to &#8220;\/mnt\/home&#8221; and click on the WordPress zip file that was downloaded.<\/p>\n<p>Right-click on the &#8220;wordpress&#8221; folder and select &#8220;Extract&#8221;.<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_zipfile.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1593\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_zipfile.jpg\" alt=\"wordpress_zipfile\" width=\"644\" height=\"424\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_zipfile.jpg 644w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_zipfile-300x198.jpg 300w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/a><\/p>\n<p>Enter &#8220;\/var\/www&#8221; as the &#8220;Directory to extract to&#8221;.<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_extract.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1592 aligncenter\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_extract.jpg\" alt=\"wordpress_extract\" width=\"235\" height=\"120\" \/><\/a><\/p>\n<p>Click &#8220;OK&#8221;.<\/p>\n<p style=\"text-align: center;\"><strong>Step 4: Setup the WordPress Configuration<\/strong><\/p>\n<p>Using the\u00a0ROX-Filer file manager, navigate to &#8220;\/var\/www\/wordpress&#8221;.<\/p>\n<p>Open the file &#8220;wp-config-sample.php&#8221; (right-click on it and select &#8220;Open as Text&#8221;).<\/p>\n<p>Find the section that contains:<br \/>\n<code><br \/>\n\/\/ ** MySQL settings - You can get this info from your web host ** \/\/<br \/>\n\/** The name of the database for WordPress *\/<br \/>\ndefine('DB_NAME', 'database_name_here');<\/code><\/p>\n<p>\/** MySQL database username *\/<br \/>\ndefine(&#8216;DB_USER&#8217;, &#8216;username_here&#8217;);<\/p>\n<p>\/** MySQL database password *\/<br \/>\ndefine(&#8216;DB_PASSWORD&#8217;, &#8216;password_here&#8217;);<\/p>\n<p>Change it to:<br \/>\n<code><br \/>\n\/\/ ** MySQL settings - You can get this info from your web host ** \/\/<br \/>\n\/** The name of the database for WordPress *\/<br \/>\ndefine('DB_NAME', 'wordpress');<\/code><\/p>\n<p>\/** MySQL database username *\/<br \/>\ndefine(&#8216;DB_USER&#8217;, &#8216;demowpuser&#8217;);<\/p>\n<p>\/** MySQL database password *\/<br \/>\ndefine(&#8216;DB_PASSWORD&#8217;, &#8216;demowpuser&#8217;);<br \/>\nSave the file as wp-config.php and exit the file<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_config.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1594\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_config.jpg\" alt=\"wordpress_config\" width=\"844\" height=\"416\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_config.jpg 844w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_config-300x148.jpg 300w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_config-768x379.jpg 768w\" sizes=\"auto, (max-width: 844px) 100vw, 844px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><strong>Step 5: Set folder permissions<\/strong><\/p>\n<p>Open a console window and enter:<\/p>\n<p># chmod -R o777 \/var\/www\/wordpress<\/p>\n<p style=\"text-align: center;\"><strong>Step 6: Setting up your installation<\/strong><\/p>\n<p>Start your mySQL database and Apache servers:<\/p>\n<ul>\n<li>Open two console windows from Puppy Linux<\/li>\n<li>In the first window, start the mySQL database server by entering:<\/li>\n<\/ul>\n<p><strong># mysqld &#8211;bind-address 192.168.0.11<\/strong><\/p>\n<ul>\n<li>In the second\u00a0window, start the Apache Server by entering:<\/li>\n<\/ul>\n<p><strong># \/etc\/init.d\/apache2 restart<\/strong><\/p>\n<p class=\"western\" align=\"left\">Now a web-browser on your network.<\/p>\n<p class=\"western\" align=\"left\">Assuming the Apache Server IP is: 192.168.0.11 (Change per your installation)<\/p>\n<p class=\"western\" align=\"left\">and the Apache listening port is 9777 (Change per your installation)<\/p>\n<p class=\"western\" align=\"left\">Enter the URL:<\/p>\n<p class=\"western\" align=\"left\"><strong>http:\/\/192.168.0.11:9777\/wordpress\/wp-admin<\/strong><\/p>\n<p class=\"western\" align=\"left\">The screen should look similar to the following:<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql7.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1588\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql7.jpg\" alt=\"wordpress_mysql7\" width=\"876\" height=\"796\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql7.jpg 876w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql7-300x273.jpg 300w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2016\/04\/wordpress_mysql7-768x698.jpg 768w\" sizes=\"auto, (max-width: 876px) 100vw, 876px\" \/><\/a><\/p>\n<p class=\"western\" align=\"left\">Congratulations, if you made it this far, your LAMP WordPress installation is successfully completed!<\/p>\n<p class=\"western\" align=\"left\">After filling out the form and clicking \u201cInstall WordPress\u201d, you should receive a \u201cSuccess! Prompt, indicating the installation is finished. Click \u201cLogin\u201d to open the WordPress Login page.<\/p>\n<p class=\"western\" align=\"left\">From here, you can perform any and all of the actions the WordPress content management system offers. Like picking a theme, adding plug-ins, writing and posting blog entries, etc.<\/p>\n<p class=\"western\" align=\"left\">You can even copy an existing WordPress site to your USB LAMP server, copying the folder to the Apache server root folder:<\/p>\n<p class=\"western\" align=\"left\">\/var\/www\/&lt;YOURWORDPRESSFOLDER&gt;<\/p>\n<p class=\"western\" align=\"left\">For more information, just look on-line at wordpress.org or the wealth of information available through a google search. <a href=\"https:\/\/codex.wordpress.org\/Getting_Started_with_WordPress\" target=\"_blank\">Here<\/a>\u00a0is a great place to start.<\/p>\n<p style=\"text-align: center;\"><strong>In Closing<\/strong><\/p>\n<p class=\"western\" align=\"left\">That&#8217;s it!\u00a0If you have completed all 5 parts of this series, you now have a solid server platform to work from. What is great about this setup is that it is portable. Allowing you to run it anywhere, on any i386 computer.<\/p>\n<p class=\"western\" align=\"left\">I hope this information serves as a practical guide and reference for all that come across it&#8230;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Alas we come to the final installment of this 5-part series. Last but not least, let&#8217;s install WordPress on our private USB-based LAMP server. And in case you just joined &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,19,132],"tags":[131,130],"class_list":["post-1561","post","type-post","status-publish","format-standard","hentry","category-alltheposts","category-internet-of-things","category-web-server","tag-usb-lamp-server","tag-usb-lamp-wordpress"],"_links":{"self":[{"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=\/wp\/v2\/posts\/1561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1561"}],"version-history":[{"count":22,"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=\/wp\/v2\/posts\/1561\/revisions"}],"predecessor-version":[{"id":1602,"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=\/wp\/v2\/posts\/1561\/revisions\/1602"}],"wp:attachment":[{"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}