sh 亚马逊Linux LAMP设置
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 亚马逊Linux LAMP设置相关的知识,希望对你有一定的参考价值。
sudo yum update -y
sudo yum -y install php56 php56-devel php56-mbstring php56-mcrypt php56-mysqlnd php56-pdo # or mysql56-server
sudo service httpd start
sudo chkconfig httpd on
# Check settings for httpd
chkconfig --list httpd
# Settings for work
sudo usermod -a -G apache ec2-user
exit
groups
sudo chown -R ec2-user:apache /var/www
sudo chmod 2775 /var/www
find /var/www -type d -exec sudo chmod 2775 {} \;
find /var/www -type f -exec sudo chmod 0664 {} \;
# Check php
echo "<?php phpinfo(); ?>" > /var/www/html/phpinfo.php
# Settings for DB
sudo service mysqld start
sudo mysql_secure_installation
sudo chkconfig mysqld on
# phpmyadmin(optional)
sudo yum install php70-mbstring.x86_64 php70-zip.x86_64 -y
sudo service httpd restart
cd /var/www/html
wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz
tar -xvzf phpMyAdmin-latest-all-languages.tar.gz
mv phpMyAdmin-4.7.5-all-languages phpMyAdmin
# Reference
# http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
以上是关于sh 亚马逊Linux LAMP设置的主要内容,如果未能解决你的问题,请参考以下文章
sql 设置亚马逊LAMP
LINUX下 lamp安装及配置
sh 亚马逊Linux操作系统调整
sh 亚马逊Linux的演员のコマンド
sh 在CentOS上的LAMP堆栈上设置Laravel
LAMP 和 PhpMyadmin 由 Intuz 提供支持 - 亚马逊 AWS