Once you are sure Apache and MySQL servers are working, the next step is to check the status of PHP scripting language with the command below: $ php -v Verifying Installation of PHP Scripting Language You should get a success message at the end of the prompts. Enter password for root user: PASSWORDĬhange password for root: N (unless you want to change the password) Respond with the below answers when prompted to secure your MySQL server. Remember a default MySQL server installation is not secure and you should run the command below to remove anonymous users, test databases and disable remote root login. (Don't confuse this with the password for your Ubuntu server). Towards the end of the installation, you will be prompted to enter a root password for the MySQL server. Press Y and hit Enter when prompted to confirm the installation. You can run the command below to install MySQL server in case it is not setup in your ECS instance: $ sudo apt-get install mysql-server In case MySQL is not installed, the output will look similar to the text below: Active: inactive (dead) You should have an output similar to the one below if the MySQL server is running: Active: active (running) since Sun 10:24:44 UTC 1 day 21h ago Just like we did for Apache, you can check the status of MySQL server by running the command below: $ service mysql status | grep active The next step is to make sure that MySQL is installed. Press Y and hit Enter when prompted to confirm the installation Verifying Installation of MySQL Database Server If this is the case, update the package information index and install Apache using the commands below: $ sudo apt-get update If Apache is not installed, the output will look as follows: Active: inactive (dead) If Apache is installed and running, you should see the below output: Active: active (running) since Tue 00:49:19 EAT 10h ago To check whether Apache is installed, run the command below: $ service apache2 status | grep active Prior to installing phpMyAdmin, you should ensure that Apache web server, MySQL server and PHP packages are installed. Step 1: Verifying the Installation of LAMP Stack
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |