Created
April 21, 2016 10:04
-
-
Save phpfour/2249e07456eb030b6a5ec02dfce97f42 to your computer and use it in GitHub Desktop.
CentOS 6.x Preparation for PHP Application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add the EPEL repositories: | |
sudo yum install epel-release | |
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
sudo rpm -Uvh epel-release-6*.rpm | |
# Add the Remi Repositories: | |
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
sudo rpm -Uvh remi-release-6*.rpm | |
# Install the required packages: | |
sudo yum --enablerepo=remi,remi-php56 install httpd php php-common | |
sudo yum --enablerepo=remi,remi-php56 install php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml php-devel | |
sudo yum --enablerepo=remi,remi-php56 ImageMagick php-imagick php-curl | |
# Enable Apache to load on startup and start it: | |
chkconfig --levels 235 httpd on | |
service httpd start | |
# Allow Apache to connect to DB: | |
setsebool -P httpd_can_network_connect=1 | |
setsebool -P httpd_can_network_connect_db=1 | |
# Allow Apache to write to directory: | |
chcon -R -t httpd_sys_content_t /var/www | |
chcon -R -t httpd_sys_content_t /var/www/docudex |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment