Install LAMP
Source
It’s important to remember the caret (^) at the end of the command.
Thought I’d get that out the way for all the hit and runners looking for the command!
If you try to remove this ‘meta-package’ you could remove a lot of programs you are not expecting to… SSH being one of them!
So please do install your lamp server using these instructions, but do not remove it using lamp-server^
Let’s proceed……
You can test the installation by visiting http://localhost/ in a browser, you should see a massage saying “It works!“.
This installs:
Obviously replace ‘password‘ with the password you just created (leave the ‘-u‘ and ‘-p‘ before your username and password). You should now be logged in and be displaying ‘mysql>‘ on your command line ready for your SQL queries!
You must restart your Apache server now for the changes to take effect:
To test this, open gedit and type/copy:
Save the file as info.php. Now navigate to this file in your web browser by visiting http://localhost/info.php, you should see a page displaying your PHP version and the rest of your PHP installation information.
1
sudo apt-get install lamp-server^
|
Thought I’d get that out the way for all the hit and runners looking for the command!
WARNING!
The use of ^ in the package name suggests that this is a ‘meta-package’. Meaning a number of programs that are usually installed together.If you try to remove this ‘meta-package’ you could remove a lot of programs you are not expecting to… SSH being one of them!
So please do install your lamp server using these instructions, but do not remove it using lamp-server^
Let’s proceed……
What is LAMP Server
LAMP Server is a collection of open source software used to create a web server. The collection consists of:- Linux – the operating system
- Apache server – the server
- MySQL – the database system
- PHP – the programming language
Installing Lamp Server components individually
Installing Linux
Installing Linux unfortunately isn’t as simple as one command. But installing Ubuntu is as simple as installing any other operating system. The latest installation .iso can be downloaded here. Ubuntu isn’t the only version of Linux, a list of major distributions can be found at distrowatch.Installing Apache Server
Apache Server can be installed in one line:Installing MySQL Server
Installing MySQL is as simple as another one line in the terminal:- MySQL Server – to store/serve your database
- MySQL Client – a client to access your MySQL server
Comentarios
Publicar un comentario