Skip to content

Instantly share code, notes, and snippets.

@maliMirkec
Last active July 5, 2017 21:21
Show Gist options
  • Save maliMirkec/bf7a2843884756e1b5ba to your computer and use it in GitHub Desktop.
Save maliMirkec/bf7a2843884756e1b5ba to your computer and use it in GitHub Desktop.
Local vagrant developement server - Vesta, PhalconPHP, Git, NodeJs, Bower, Grunt, Gulp, Yeoman
// general update
sudo apt-get update
// general upgrade
sudo apt-get upgrade
// install midnight commander
sudo apt-get install mc
// install git
sudo apt-get install git
// install vestacp
curl -O http://vestacp.com/pub/vst-install.sh
sudo bash vst-install.sh --nginx yes --apache yes --phpfpm no --vsftpd yes --proftpd no --exim yes --dovecot yes --spamassassin yes --clamav yes --named yes --iptables yes --fail2ban yes --mysql yes --postgresql yes --remi yes --quota yes --email user_email --password user_pass --force
// check if http://YOUR_IP_ADDRESS is working
// now go to https://YOUR_IP_ADDRESS:8083, login with given credentials and edit admin password
// install PHP, GCC compiler
sudo apt-get install php5-dev libpcre3-dev gcc make php5-mysql
// install phalconphp
git clone --depth=1 https://github.com/phalcon/cphalcon.git
cd cphalcon/build
sudo ./install
// install phalcon-dev-tools
git clone https://github.com/phalcon/phalcon-devtools.git
cd phalcon-devtools/
. ./phalcon.sh
// add phalcon extension
cd /etc/php5/mods-available
touch phalcon.ini
sudo mcedit phalcon.ini
// write 'extension=phalcon.so' to file, save and exit
// login as root, make symlink on given file for all php5 instances
// restart services
sudo service vesta restart
sudo service apache2 restart
// install composer
sudo curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
// install xdebug
sudo apt-get install php5-xdebug
// install imagemagick
sudo apt-get install imagemagick --fix-missing
// install libjpeg
sudo apt-get install libjpeg-dev
// install
git clone https://github.com/tjko/jpegoptim.git
cd jpegoptim
./configure
sudo make
sudo make strip
sudo make install
// enable mod_deflate, mod_expires and mod_headers
cd /etc/apache2/mods-enabled/
// make symlink to /etc/apache2/mods-available/ files
// restart services
sudo service vesta restart
sudo service apache2 restart
// install node
sudo apt-get install nodejs
// install node package manager
sudo apt-get install npm
// create symbolic link for node
sudo ln -s /usr/bin/nodejs /usr/bin/node
// install bower
sudo npm install -g bower
// install grunt
sudo npm install -g grunt-cli
// install gulp
sudo npm install --g gulp
// install yeoman
sudo npm install -g yo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment