Skip to main content

Posts

Showing posts from August, 2020

Install PHP & MySQL on Amazon Linux 2

Install PHP sudo yum update -y sudo amazon-linux-extras install -y php7.3 sudo yum install -y httpd sudo systemctl start httpd sudo systemctl enable httpd sudo systemctl is-enabled httpd sudo systemctl restart httpd echo "<?php phpinfo(); ?>" > /var/www/html/phpinfo.php Install MYSQL 5.7 1. sudo yum update -y 2. sudo wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm 3. sudo yum localinstall mysql57-community-release-el7-11.noarch.rpm  4. sudo yum install mysql-community-server 5. sudo systemctl start mysqld.service     or    sudo service mysqld start    or    sudo service mysqld status   6. To get the default password    sudo grep 'temporary password' /var/log/mysqld.log  7. mysql -u root -p 8. Change the password    mysql_secure_installation Remove anonymous users? (Press y|Y for Yes, any other key for No) : y Success. Normally, root should only be allowed to con...