It’s important to remember the caret (^) at the end of the command.
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
Clearly named after the initials of its components, these four applications are all lengthy subjects in their own right. So I won’t go much further on them, but if you have any questions post a comment and I’ll always try help.
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:
You can test the installation by visiting http://localhost/ in a browser, you should see a massage saying “It works!“.
Installing MySQL Server
Installing MySQL is as simple as another one line in the terminal:
This installs:
- MySQL Server – to store/serve your database
- MySQL Client – a client to access your MySQL server
Be sure to pay attention during the install. You will be asked to create a password for the MySQL root user. You can then access the server in the terminal by typing/copying:
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!
Installing PHP
PHP requires 3 packages to be installed, again its only one line:
You must restart your Apache server now for the changes to take effect:
To test this, open gedit and type/copy:
No hay comentarios:
Publicar un comentario