A “LAMP” stack is a group of open source software that is typically installed together in order to enable a server to host dynamic websites and web apps written in PHP. This term is an acronym which represents the Linux operating system with the Apache web server. The site data is stored in a MySQL database, and dynamic content is processed by PHP.
In this guide, you’ll set up a LAMP stack on an Ubuntu 22.04 server.
Commands Used
sudo apt install apache2
sudo apt install mysql-server
sudo mysql
exit
sudo apt install php libapache2-mod-php php-mysql
php -v
sudo mkdir /var/www/your_domain
sudo chown -R $USER:$USER /var/www/your_domain
sudo nano /etc/apache2/sites-available/your_domain.conf
sudo a2ensite your_domain
sudo a2dissite 000-default
sudo apache2ctl configtest
sudo systemctl reload apache2
nano /var/www/your_domain/index.html
Useful Links
VPS/VDS -
https://www.mivocloud.com/
Тэги:
#LAMP #Apache #MySQL #Ubuntu #Linux #VPS #VDS #PHP