- username: test@test.com
- pw: aaaaAAAA1111
sudo tail -f /var/log/httpd/error_log
ALTER TABLE products MODIFY COLUMN pid INT auto_increment;
sudo amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2
yum install gd gd-devel php-gd
ssh -i "ierg4210.pem" ec2-user@ec2-34-228-249-169.compute-1.amazonaws.com
/etc/php.ini
Random salt:
sudo apt-get install mcrypt php7.1-mcrypt
sudo systemctl start httpd
Ref. https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Tutorials.WebServerDB.CreateWebServer.html
mysql -uroot -p
use test
sudo chown -R ec2-user /var/www/html