sh 在CentOS上的LAMP堆栈上设置Laravel

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 在CentOS上的LAMP堆栈上设置Laravel相关的知识,希望对你有一定的参考价值。

# Commands to install required packages
sudo yum -y update
sudo yum -y install epel-release
sudo yum -y wget
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
wget https://centos6.iuscommunity.org/ius-release.rpm
sudo rpm -Uvh ius-release*.rpm
sudo yum -y update
sudo yum -y install php56u php56u-opcache php56u-xml php56u-mcrypt php56u-gd php56u-devel php56u-mysql php56u-intl php56u-mbstring php56u-bcmath

# Verify PHP version
php -v

# Install MySQL
sudo yum -y install mysql-server

# Start MySQL
sudo service mysqld start

# Setup MySQL
sudo /usr/bin/mysql_secure_installation

# Update httpd conf file
sudo vi /etc/httpd/conf/httpd.conf # Change DocumentRoot to /var/www/public , also change AllowOverride None to AllowOverride All


# Restart apache
sudo service httpd restart

# Download Composer by following the commands here https://getcomposer.org/download/

# To use globally
sudo mv composer.phar /usr/local/bin/composer

# Enable Composer to root user
sudo ln -s /usr/local/bin/composer /usr/bin/composer

以上是关于sh 在CentOS上的LAMP堆栈上设置Laravel的主要内容,如果未能解决你的问题,请参考以下文章

sh 在Ubuntu 16.04中,Lamp堆栈,sublime,appache2配置更改,wp cli安装,节点安装

Laravel - 在 LAMP 堆栈上将 /public 设置为 root

如何在 LAMP(Python) 堆栈上打开远程 MySQL 连接

Docker LAMP 堆栈

获取在 Vagrant VM 上运行的 LAMP 堆栈(在 Windows 7 主机下),完整说明?

LINUX下 lamp安装及配置