Hi so far the servers I did for my studies were with Node.js. I am starting a new job and I need to have installed an Apache-PHP-MySQL installation, it can be: XAMPP, MAMP or WAMP. What would be the most effective option for my Ubuntu 18.04? I've seen some tutorial in google but it was complicated and a bit messed up, maybe I did not find the correct tutorial, but that's why I decided to go here. With effective I mean, the best way or the most recommended way and the best performance. The utility is to create some application with PHP and MySQL Thank you.
2 Answers
There is a package called lamp-server
that installs them all and has all of the packages pre-configured to work out of the box where you see a "it works" when you open http://localhost.
LAMP is what we use.
WAMP is WINDOWS so not useable. MAMP is MacOS so also not useable. Stay away from XAMPP. It is not suited for production systems so if you use that you will learn all the wrong things.
All you need on Ubuntu is ...
sudo apt install lamp-server^
and sit back until it finishes (well along the way you will need to add a password for MySQL but that should be it).
Step 1 - Install the Apache Server
sudo apt update
sudo apt install apache2
If it is installed successfully then type localhost in the browser. You will see something like this:
Step 2 - Install MySQL Database
sudo apt install mysql-server
Step 3 - Install PHP
sudo apt install php libapache2-mod-php php-mysql
Happy Coding! Happy Ubuntu!
Note: if you got any error or an issue please edit your question