{"id":117,"date":"2018-04-24T05:42:41","date_gmt":"2018-04-24T05:42:41","guid":{"rendered":"http:\/\/td_uid_68_5adec3d1a350e"},"modified":"2018-05-27T08:00:03","modified_gmt":"2018-05-27T08:00:03","slug":"configure-apache-mysql-php-lamp-on-ubuntu-12-04","status":"publish","type":"post","link":"https:\/\/forumweb.hosting\/blog\/configure-apache-mysql-php-lamp-on-ubuntu-12-04\/","title":{"rendered":"Configure Apache, MySQL, PHP (LAMP) on Ubuntu 12.04"},"content":{"rendered":"<p>LAMP is an acronym for Linux, Apache, MySQL and PHP, a set of open source software that is installed on the virtual server so that we can install and run other open source software using the php language. Like WordPress, Joomla &#8230;<\/p>\n<p>In this tutorial we will only learn how to install Apache, MySQL and PHP with just one command. I will do a tutorial on Ubuntu server 12.04, user root. Ubuntu is a Linux-based operating system, so I skipped the Linux installation.<\/p>\n<p><strong>1. Install LAMP<\/strong><br \/>\nTo install LAMP, you can install one service at a time, however, I will guide you through a quick installation:<\/p>\n<blockquote class=\"td_quote_box td_box_left\"><p># apt-get update<br \/>\n# apt-get install lamp-server^<\/p><\/blockquote>\n<p>During the installation, you will need to enter the root user password for MySQL, enter and save this password.<\/p>\n<p><strong>2. Check the operation and connection between Apache and PHP<\/strong><br \/>\nFrom the terminal window, create the file:<\/p>\n<blockquote class=\"td_quote_box td_box_left\"><p>#vim \/var\/www\/info.php<\/p><\/blockquote>\n<p>Copy the following code:<\/p>\n<blockquote class=\"td_quote_box td_box_left\"><p>phpinfo();<\/p><\/blockquote>\n<p>Moves the owner of the directory containing the web to apache&#8217;s user:<\/p>\n<blockquote class=\"td_quote_box td_box_left\"><p># chown www-data: www-data -R\/var\/www\/<\/p><\/blockquote>\n<p>Restart apache:<\/p>\n<blockquote class=\"td_quote_box td_box_left\"><p># service apache2 restart<\/p><\/blockquote>\n<p>Use wget to check:<\/p>\n<blockquote class=\"td_quote_box td_box_left\"><p># wget http:\/\/example.com\/info.php<\/p><\/blockquote>\n<p>Or from the browser, visit http:\/\/ example.com\/phpinfo.php<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-217\" src=\"https:\/\/forumweb.hosting\/blog\/wp-content\/uploads\/2018\/04\/Configure-Apache-MySQL-PHP-LAMP-on-Ubuntu-12.04-300x265.png\" alt=\"\" width=\"300\" height=\"265\" srcset=\"https:\/\/forumweb.hosting\/blog\/wp-content\/uploads\/2018\/04\/Configure-Apache-MySQL-PHP-LAMP-on-Ubuntu-12.04-300x265.png 300w, https:\/\/forumweb.hosting\/blog\/wp-content\/uploads\/2018\/04\/Configure-Apache-MySQL-PHP-LAMP-on-Ubuntu-12.04-475x420.png 475w, https:\/\/forumweb.hosting\/blog\/wp-content\/uploads\/2018\/04\/Configure-Apache-MySQL-PHP-LAMP-on-Ubuntu-12.04.png 673w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Then you have completed the installation of\u00a0LAMP on Ubuntu.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LAMP is an acronym for Linux, Apache, MySQL and PHP, a set of open source software that is installed on the virtual server so that we can install and run other open source software using the php language. Like WordPress, Joomla &#8230; In this tutorial we will only learn how to install Apache, MySQL and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":220,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[93,92,65,94],"_links":{"self":[{"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/posts\/117"}],"collection":[{"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/comments?post=117"}],"version-history":[{"count":5,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/posts\/117\/revisions"}],"predecessor-version":[{"id":469,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/posts\/117\/revisions\/469"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/media\/220"}],"wp:attachment":[{"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/media?parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/categories?post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/tags?post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}