In this tutorial we will see how to install and configure a LAMP server on Ubuntu, this tutorial is for any version of Ubuntu 8.04 Hardy Heron from. A LAMP server refers to a set of applications for short is Linux + Apache + MySQL + PHP and in this case we will install and configure a server with the following components: Apache 2 - Web Server versatile and one of the most used worldwide MySQL 5 - One of the database servers and used in popular sites and web applications PHP 5 - it is a scripting language used to build web pages and applications and look at some utilities like phpmyadmin that will allow us to better manage our server.
Whether you're a web developer or if you like to test the possibilities of having your own server at home, this entry might be interesting.
In Ubuntu 12.04 the process is fairly simple. Just type the following line in your terminal:
The symbol ^ is important. Not a mistake.
* Note: It is important to define our password to the MySQL database.
And presto, after a few minutes we can move using the / var / www /, which by default will stay our website, the only thing left to do is assign permissions to that directory so we can copy our files. From terminal:
Whether you're a web developer or if you like to test the possibilities of having your own server at home, this entry might be interesting.
In Ubuntu 12.04 the process is fairly simple. Just type the following line in your terminal:
sudo apt-get install lamp-server^
The symbol ^ is important. Not a mistake.
* Note: It is important to define our password to the MySQL database.
And presto, after a few minutes we can move using the / var / www /, which by default will stay our website, the only thing left to do is assign permissions to that directory so we can copy our files. From terminal:
sudo chown -R usuario
Another method is easier to create a symbolic link to a folder in our "home" without editing rights or complications. For example:
ln -s /var/www /home/usuario/www
Where is our user user session and www is the folder where we store our website.
It may be interesting to use phpmyadmin to create, edit, delete, query our database.
sudo apt-get install phpmyadmin
Then write http://localhost/phpmyadmin/ from browser to access phpmyadmin and get down to work.
0 comments:
Post a Comment