{"id":12517,"date":"2016-03-25T21:07:18","date_gmt":"2016-03-25T15:37:18","guid":{"rendered":"http:\/\/blog.taragana.com\/?p=15"},"modified":"2016-03-25T21:07:18","modified_gmt":"2016-03-25T15:37:18","slug":"single-line-command-to-install-php5-mysql-apache2-xcache-php-pear-on-raspberry-pi","status":"publish","type":"post","link":"https:\/\/blog.taragana.com\/single-line-command-to-install-php5-mysql-apache2-xcache-php-pear-on-raspberry-pi-12517","title":{"rendered":"Single line command to install PHP5, MySQL, Apache2, XCache, PHP-Pear on Raspberry Pi"},"content":{"rendered":"
Installing LAMP on Raspberry Pi<\/strong> is very very simple. It takes a single line to execute on terminal \/ console. The following instruction was tested on Raspbian Jessie build, which at the time of writing is the latest build. Installing LAMP on Raspberry Pi is very very simple. It takes a single line to execute on terminal \/ console.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12],"tags":[15,65,74,81,87,88],"_links":{"self":[{"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/posts\/12517"}],"collection":[{"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/comments?post=12517"}],"version-history":[{"count":0,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/posts\/12517\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/media?parent=12517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/categories?post=12517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/tags?post=12517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\nsudo apt-get update; sudo apt-get -y install mysql-server php5-mysql apache2 apache2-utils php5 libapache2-mod-php5 php-pear php5-xcache php5-curl php5-gd<\/code>
\nCopy-paste the above line in terminal and press Enter. You will be asked to choose MySQL Server password. Choose wisely. Wait for it to complete and you are done. Now you can install any PHP \/ MySQL based programs and run it on the installed Apache server.
\nNotes;<\/p>\n\n
\nQuestions:<\/p>\n\n
\nIt is maintained by the developers of Pi and as such most optimized for Pi hardware and most aggressively maintained<\/li>\n
\nLatest versions supports newer peripherals and comes with all the latest bug fixes and optimizations.<\/li>\n
\nYou can check the default web page at http:\/\/localhost\/ if you are accessing from Pi or http:\/\/ip-address-of-pi\/ from any other machine.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"