Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Owain Jones
gliders-webserver
Commits
9fee810c
Commit
9fee810c
authored
9 years ago
by
Owain Jones
Browse files
Options
Download
Email Patches
Plain Diff
update install script to install PHP7
parent
9d76be58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
install.sh
install.sh
+14
-0
No files found.
install.sh
View file @
9fee810c
...
...
@@ -13,6 +13,8 @@
# As root:
yum check-update
-y
yum
install
-y
epel-release
# enables 'enterprise' software repo
yum
install
yum-plugin-replace
rpm
-Uvh
https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum update
-y
# Install needed tools
...
...
@@ -63,6 +65,18 @@ yum install -y MySQL-python python-sqlalchemy
# Install PHP
yum
install
-y
php php-fpm php-apc php-pdo php-mcrypt php-mbstring php-pecl-runkit phpmyadmin
# We install normal PHP *then* replace with php7 packages because phpmyadmin
# wants original PHP, by replacing with php7 after the phpMA package doesn't
# complain about wrong package versions.
yum replace php-common
--replace-with
=
php70w-common
yum
install
php70w-fpm php70w-opcache php70w-devel php70w-pecl-apcu
# Install "backwards compatability" extension for PHP-APC; our site and a bunch
# of other stuff depends on it.
pecl
install
"channel://pecl.php.net/apcu_bc-1.0.3"
echo
"extension=apc.so"
>>
/etc/php.d/apcu.ini
cp
php.ini /etc/php.ini
cp
php-d-fpm.ini /etc/php.d/fpm.ini
cp
php-fpm-www.conf /etc/php-fpm.d/www.conf
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment