In the following article you will know how to build the project on Vegas Library.
Install php (at least 5.4 version). Vegas library is based on PHP language.
//Ubuntu 14.04
sudo apt-get install php5
sudo apt-get install php-pear
Install HTTP server. You can choose between Apache and Nginx.
Apache | Nginx |
---|---|
|
|
Install git
//Ubuntu 14.04
sudo apt-get install git
Install curl
//Ubuntu 14.04
sudo apt-get install curl
Install phing
//Ubuntu 14.04
sudo pear channel-discover pear.phing.info
sudo pear install phing/phing
Install Phalcon
Install Phalcon Library
//Ubuntu 14.04
sudo apt-get install php5-dev libpcre3-dev gcc make php5-mysql
Download Phalcon
//Ubuntu 14.04
sudo apt-add-repository ppa:phalcon/stable
sudo apt-get update
sudo apt-get install php5-phalcon
If you are missing apt-add-repository run the following command:
//Ubuntu 14.04
sudo apt-get install python-software-properties
Create your project using vegaser tool
cd /var/www
sudo mkdir vegas-test
sudo chown {your_user}:{your_user} -R vegas-test
cd vegas-test
wget https://github.com/vegas-cmf/vegaser/raw/master/build/vegaser.phar --no-cache
php vegaser.phar build-project
During building project you will see some questions like
...
Enter name of project (eg. vegas-demo): vegas-test
Enter description of project [Project based on Vegas CMF] This is test of vegas project
Enter project domain [vegasdemo.com] vegas-test.local
...
Remember the domain you answer to the question "Enter project domain" because you will need it for virtual host
Install vendors
php composer.phar install
Virtual Host Apache | Virtual Host Nginx |
---|---|
Create virtual host file
Set content of the file
Enable virtual host file and enable mod rewrite
|
Install php5-fpm
Create virtual host file
Set content of the file
Enable virtual host file
Restart nginx
|
Add host to /etc/hosts file
sudo vim /etc/hosts
Add the following line to the file
127.0.0.1 www.vegas-test.local vegas-test.local
Run your project in your browser http://vegas-test.local