Making your own mini-hosting: Installing LAMP

   For starters, what is LAMP - is, of course, an acronym for Linux Apache MySQL PHP. With the title of the topic should already be clear. It serves that would test their projects on their home computer. When you set the Lamp, you will realize just how much a lot of advantages in this program. 
   With the Lamp, we can test our sites do not have to upload them to FTP our hosting, and most importantly, you save both money and time. 
   Between hosting and Lamp no any differences in ideas Lamp is hosting - only at home. If we suddenly occasional constipation our website Lamp, it's okay, because the working site on the net will not be touched by these consequences. Before you upload to the virtual machine's FTP, I always spend it on experiences in the Lamp, in order to achieve the proper setup and finish work on the nuances. And also, if you are using an operating system Windows, and also want to install the Lamp - you will need to install to start Ubuntu as a virtual operating system.

                                                                                                          Installing Apache.


   You must write in the command line: sudo apt-get install apache2 A on everything from swinging, and establish automatic and will be all at the highest level. 
And if you need to:
start / stop / restart Apache - it is necessary to rewrite the command line: sudo invoke-rc.d apache2 startsudo invoke-rc.d apache2 stopsudo invoke-rc.d apache2 restart then run Apache, and see whether it will work for us, in order to check whether Apache or not, you just need to follow the link http: // localhost

                                                                                                          Install PHP.


   There is nothing supernatural, so start writing the command line: sudo apt-get install php5 libapache2-mod-php5 on, when everything is downloaded, you need to restart Apache. You have already learned to restart Apache (we considered this option above).

                                                                                                         Installing MySQL.
   Whatever earned WordPress software necessary to start to install MySQL. Next you need to copy the bottom line, insert it into the terminal and run: sudo apt-get install mysql-server. Next, when you install, you need to change the password of the administrative root to service the entire base system: sudo mysqladmin -u root password pridumayte_parol again reload Apache2: sudo invoke-rc.d apache2 restart

   Everything is done. To check whether we have PHP, you need to open a text editor and write: kate (in Kubuntu) or gedit (in Ubuntu): sudo kate /var/www/test.phpsudo gedit /var/www/test.php Then paste there this code and save the file: <? php phpinfo (); ?> Now let's pereshagnem at http: //localhost/test.php and if you slelali all the instructions, you will see information about PHP
  And that would establish the banker: 
phpMyAdmin: sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin All work ready. Restarting Apache and can continue to work. PhpMyAdmin is available at url http: // localhost / phpmyadmin 


                                                                                                         Solving Problems when installing LAMP:

   Firstly, if you do not want to run phpmyadmin, you need to log in naeshm directory / etc / apache2 / and see if there is apache2.conf file and the files you want conf.d / phpmyadmin.conf no, then you must perform: sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.confi restart Apache


   Secondly there are errors when you restart Apache: Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerNameLechitsya add to /etc/apache2/apache2.conf subsequent line: ServerName mysite, where mysite - the name for our site on your home computer. 
As soon as you got - go further, to creation of the first of our site to LAMP
Well, good luck to you!