Need help? Chat now!
Search results for:
Table of Contents
Make sure your server is up-to-date with this guide.
The LAMP stack is a development stack that is common for PHP-based websites and web applications. LAMP stands for Linux, Apache, MySQL, PHP.
You will want to run the following command to install Apache:
apt-get install apache2 -y
Running this command with the -y option will automatically proceed through any installation parts that would prompt you for a yes/no answer.
Test your installation by opening a web browser and navigating to HTTP://\
Run this command to install MySQL. Once again, we are using they option:
apt-get install mysql-server -y
It is highly recommended to set the root password for MySQL after installation. You can use the following steps to change the password:
Start MySQL configuration:
Make sure MySQL is running:
Log in to MySQL:
mysql -u root -p
Change the root password:
UPDATE user SET authentication_string=password('YourPassword');
Type "quit" to exit MySQL.
PHP is the server-side scripting language that gives your application or website the ability to interact with the server. To install PHP, run the following command:
apt-get install php libapache2-mod-php php-mbstring php-mysql -y
To verify the installation of PHP, you can check your version with this command:
Written by Hostwinds Team / June 14, 2019