2. Vagrant install
portable development environments
$ mkdir beykent_sample
$ cd beykent_sample
$ vagrant init precise32 http://files.vagrantup.com/precise32.box
!
Open the Vagrantfile and uncomment line 20:
# localhost:8080, Quest machine access port 80
# config.vm.network :forwarded_port, guest: 80, host: 8080
!
Start box
$ vagrant up
!
ssh into the ssh
$ vagrant ssh
3. Mysql install
open-source relational database management system
$ sudo apt-get update
$ sudo apt-get install mysql-server mysql-client
set root password
4. Nginx install
Nginx is an open source reverse proxy server for HTTP, HTTPS,
SMTP, POP3, and IMAP protocols, as well as a load balancer,
HTTP cache, and a web server
$ sudo apt-get install nginx
$ sudo servive nginx start
5. PHP-FPM
PHP is the most popular server-side language and it requires
minimal set-up
$ sudo apt-get install php5-fpm
!
$ sudo vim /etc/php5/fpm/pool.d/www.conf
!
Make the following changes
listen = /tmp/php5-fpm.sock
!
$ sudo service php5-fpm restart
6. php fpm configration
$ sudo vim /etc/php5/fpm/php.ini
Make the following changes
cgi.fix_pathinfo=0
max_execution_time = 90
display_errors = On
post_max_size = 16M
upload_max_filesize = 16M
default_socket_timeout = 90