Last active
August 10, 2020 23:21
-
-
Save horitaku1124/9c4899e381ea655977843661f4b5c67e to your computer and use it in GitHub Desktop.
Phalcon getting started
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "bento/ubuntu-19.10" | |
config.vm.network "private_network", ip: "192.168.33.9" | |
config.vm.synced_folder "./", "/mnt/phalcon_test" | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo add-apt-repository -y ppa:ondrej/php | |
sudo apt-get update | |
sudo apt -y install php5.6 libapache2-mod-php5.6 php5.6-mbstring php5.6-mysql php5.6-mcrypt php5.6-dev | |
sudo a2enmod php5.6 | |
git clone https://github.com/phalcon/cphalcon | |
cd cphalcon/build | |
git checkout v3.4.5 | |
sudo ./install | |
echo 'extension=phalcon.so' | sudo tee /etc/php/5.6/apache2/conf.d/phalcon.ini | |
echo 'extension=phalcon.so' | sudo tee /etc/php/5.6/cli/conf.d/30_phalcon.ini | |
sudo apachectl restart | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://qiita.com/kasyuu/items/dfa8e17e7e1d94a2f56e
https://qiita.com/knymssh/items/24b5a94d827abad80f0d
https://qiita.com/mzmiyabi/items/984335fc05faaf35428d