alejandrocastrounqui / composer-template Goto Github PK
View Code? Open in Web Editor NEWTemplate to deploy a php project with composer
Template to deploy a php project with composer
############################## # apache2 # ############################## # add last apache2 version repository sudo add-apt-repository ppa:ondrej/apache2 # install sudo apt-get update sudo apt-get upgrade sudo apt-get install apache2 # change root directory sudo geany /etc/apache2/sites-available/000-default.conf ############################## # mysql # ############################## # install sudo apt-get update sudo apt-get upgrade sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql # password project1234 # install db sudo mysql_install_db # deploy sudo /usr/bin/mysql_secure_installation ############################## # php # ############################## # add last php version repository sudo add-apt-repository ppa:ondrej/php5 # install sudo apt-get update sudo apt-get upgrade sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt php5-curl # configure extension priority sudo nano /etc/apache2/mods-enabled/dir.conf # set index.php as firs option # restart apache to init php sudo service apache2 restart # change root directory owner in order to avoid permission conflicts between user and apache sudo chown -R $user:$user /var/www # change display errors options sudo geany /etc/php5/apache2/php.ini ############################## # composer # ############################## # install curl -sS https://getcomposer.org/installer | php # If the above fails for some reason, you can download the installer with php instead: # php -r "readfile('https://getcomposer.org/installer');" | php # move to global path - it allows invoke composer anywhere sudo mv composer.phar /usr/local/bin/composer # change owner in order to avoid change the binary sudo chown root:root /usr/local/bin/composer # install dependencies (it can take several minutes) composer update --no-scripts ############################## # xdebug # ############################## sudo apt-get install php5-dev php-pear sudo pecl install php5-xdebug # add to php.ini # '20121212' can change depending on OS version [xdebug] ; php debugger zend_extension = "/usr/lib/php5/20121212/xdebug.so" xdebug.remote_enable = on xdebug.remote_handler = dbgp xdebug.remote_mode = req xdebug.remote_host = localhost xdebug.remote_port = 9090 # restart apache # secure php_info() shows: # This program makes use of the Zend Scripting Language Engine: # Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies # with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans # with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies ############################## # Aptana # ############################## # PHP interpreter name: PHP5.5 Executable path: /usr/bin/php PHP init file: /etc/php5/apache2/php.ini # create new PHP server, with following data: Name: localhost Base URL: http://localhost Document Root: /var/www ############################## # phpmyadmin # ############################## # install sudo apt-get install phpmyadmin apache2-utils # Select Apache2 for the server # input mysql password # let phpmyadmin password blank # add next line to sudo nano /etc/apache2/apache2.conf Include /etc/phpmyadmin/apache.conf # restart apache and check localhost/phpmyadmin (use 'root' user and mysql password) ############################## # laravel # ############################## # install laravel-installer sudo composer global require "laravel/installer=~1.1" # create proyect sudo composer create-project laravel/laravel project-name --prefer-dist # change permission sudo chmod 755 -R project-name/ sudo chmod -R 775 project-name/app/storage # change owner sudo chown desarrollo:desarrollo -R project-name/ sudo chown -R :www-data project-name/app/storage
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.