Skip to content

Commit

Permalink
fixing readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pali ondras committed Mar 24, 2017
1 parent c4fa1c7 commit a4c5b86
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ vagrant ssh
```
and executing script directly from vagrant shell.

Installing custom php version:
Edit custom-php.sh install script in line:
### Installing custom php version:
- Edit custom-php.sh install script in line:
- yum-config-manager --enable remi-php56
- this will install php 5.6 (use 55, 70 as different versions)
Enable custom-php.sh in Vagrantfile
- Enable custom-php.sh in Vagrantfile

Downgrade php version - see instructions in custom-php.sh

## Post installation setup

Expand Down
16 changes: 8 additions & 8 deletions custom-php.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
#!/bin/bash

# stiahni a nainstaluj EPEL / REMI
# download and install EPEL / REMI
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7*.rpm epel-release-latest-7*.rpm

# nainstaluj yum-config-manager
# install yum-config-manager
yum install -y yum-utils

# povol php56
# enable php56
yum-config-manager --enable remi-php56

# nainstaluje sa nova verzia php
# new version will be installed
yum update -y

# restart apache
service httpd restart

# downgrade
# sudo yum-config-manager --disable remi-php56
# sudo yum remove php*
# a potom nainstalovat php kniznice, ktore potrebujem (pripadne zbehnut vagrant provision)

# restartuj apache
service httpd restart
# vagrant provision

0 comments on commit a4c5b86

Please sign in to comment.