configure website lamp stack in ubuntu output
out of 2
Post on 23-Jul-2015
<p>installing and configuring LAMP on Ubuntu - Part 1</p> <p>In this multi-part article, I'm going to be showing you how to install the popular LAMP stack - that's Linux, Apache, the MySQL database system and PHP (in this example, although you can have Perl, Python etc. instead) for running your own website or web development server.</p> <p>The LAMP stack is a very popular setup and many websites run on it (including FOSSwire!). Best of all, all four of the tools in the stack are free and open source and really easy to get started with. For this tutorial, I'm going to be showing you how to install LAMP on Ubuntu 7.04 Feisty Fawn, but the process is very similar for other Linux distributions too. By the way, if you have a Windows machine that you want to do this on, check out this tutorial on our sister site GizBuzz instead for a nice easy WAMP setup.</p> <p>Step One - get the software</p> <p>All the stuff you need is pre-loaded into Ubuntu's software repositories, and it's really simple to install everything you need. If you're doing a new install, you may want to take a look at the server edition of Ubuntu as it allows for a pre-configured profile that you can pick at install time.</p> <p>For this tutorial, I'm going to assume you've already got your Ubuntu desktop up and running, though.</p> <p>To get stuff installed, you need to install the following packages:</p> <p> apache2 </p> <p> php5-mysql </p> <p> libapache2-mod-php5 </p> <p> mysql-server</p> <p>The most universal and quickest way to do this is to pop open a terminal and type in the following command:</p> <p>$ sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server</p> <p>Step Two - do some minimal configuration</p> <p>Let that download and install. Once that's all finished, we need to do just a little bit of configuration before we can start using our new LAMP setup and that is to set a root password for the MySQL database server (without this step, you will have an insecure setup).</p> <p>It's pretty simple to do:</p> <p>$ mysqladmin -u root password yournewrootpassword</p> <p>That will set your MySQL root password, which you can now use to log in to your MySQL server.</p> <p>Step Three - start using it!</p> <p>That's pretty much all the configuration you need to do, so you can now grab any web applications you want and install them. Don't use the root MySQL user for your databases though if you are working in an environment where you need things to be secure. Set up a user and database for each application you install (you can use something like PHPMyAdmin for this).</p> <p>In the next part of this tutorial, I'll be looking at some awesome tweaks you can make to your LAMP setup and how to easily install some of the most popular web applications.</p> <p>Tips and tricks</p> <p>To start and stop the servers independently of rebooting (for example after changing configuration files, you can use these commands):</p> <p>Apache and PHP</p> <p>$ sudo /etc/init.d/apache2 restart</p> <p>Replace 'restart' with either 'start' or 'stop', as needed.</p> <p>MySQL</p> <p>$ sudo /etc/init.d/mysql restart</p>
View more >
Ubuntu LAMP in Hyper-V - Ubuntu LAMP Server - Install Ubuntu Server . Installing the server is relatively easy. Once you start your configured virtual machine and connect
Step By Step Ubuntu 12.04 LAMP Server - By Step Ubuntu 12.04 (Precise) LAMP Server Setup ... Mail Server, Open SSH Server ... Step By Step Ubuntu 12.04 LAMP Server ...