Giter Site home page Giter Site logo

ambiente-dev-php-ubuntu's Introduction

Lista de comandos

Configuração inicial do ambiente de desenvolvimento PHP. Estes comandos foram validados na distro Ubuntu 14.04 LTS

Instalar NGINX

sudo apt-get update
sudo apt-get install nginx

Instalar MySQL Server

sudo apt-get install mysql-server

Comando de segurança para mysql

sudo mysql_secure_installation

Instalar sublime text3

sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer

Instalar php5-fpm

Será instalado as duas extensões mysql, mcrypt, xdebug e intl

sudo apt-get install php5-cli php5-fpm php5-mysql php5-mcrypt php5-xdebug php5-intl

Configura php para rodar legal com nginx

cd /etc/php5/fpm
php.ini
Editar a linha abaixo inserindo 0
cgi.fix_pathinfo=0

Caso não instale a versão 5,6

sudo apt-get install python-software-properties 
sudo add-apt-repository ppa:ondrej/php5-5.6 
sudo apt-get update 
sudo apt-get install -y php5

Instalar GIT

sudo apt-get install git

Intalar Composer

php -r "readfile('https://getcomposer.org/installer');" | php
Com o comando abaixo, basta digitar composer no prompt para acessar
sudo mv composer.phar /usr/bin/composer

VHOST

cd /etc
sudo subl hosts
add o novo host EX teste.app

Exemplo de vhost

Gist do mestre Fábio Vedovelli :) THANKS

https://gist.github.com/vedovelli/a50fdd9c9b745b61407a

Criando vhost

cd /etc/nginx/sites-available
sudo subl teste.app.conf
cd ../sites-enabled
sudo ln -s ../sites-available/teste.app.conf

ambiente-dev-php-ubuntu's People

Contributors

casousa avatar diego-brocanelli avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.