Upgrade to Pro — share decks privately, control downloads, hide ads and more …

MNPP on Drupal

MNPP on Drupal

Developing with drupal in MNPP [Mac + Nginx + Percona + PHP or Python]
A high performance web server in a one-click installer

Jyr Gaxiola

January 22, 2012
Tweet

More Decks by Jyr Gaxiola

Other Decks in Programming

Transcript

  1. $ drush help mnpp Quickly management to MNPP Examples: drush

    mnpp start Start all services drush mnpp stop Stop all services drush mnpp restart Restart all services drush mnpp --nginx=start|stop Start or Stop nginx drush mnpp --percona=start|stop Start or Stop percona drush mnpp --php-fpm=start|stop Start or Stop php-fpm Arguments: start Start MNPP services stop Stop MNPP services Options: --nginx --percona --php-fpm
  2. /Applications/MNPP • sudo sh /Applications/MNPP/init/environment.sh • source /Users/youruser/.bash_profile • conf/nginx/sites-available

    ◦ nano drupal.local • conf/nginx/sites-enabled ◦ ln -s ../sites-available/drupal.local drupal.local • drush dl drupal-7.x --drupal-project-rename=drupal7 • crear la bd y el user • drush site-install --account-name=admin --account-pass=admin --db-url=mysql: //drush:drush@localhost/drush • agregar drupal.local a /etc/hosts • drush mnpp start
  3. Flow • Ubicación /Applications/MNPP/ • Crear vhost en conf/sites-available •

    Activar vhost en conf/sites-enabled • Colocar archivos en htdocs/ • Iniciar MNPP
  4. server { listen 80; server_name drupal.local; root /Applications/MNPP/htdocs/drupal7; access_log /Applications/MNPP/logs/nginx/drupal7.access.log;

    error_log /Applications/MNPP/logs/nginx/drupal7.error.log; include /Applications/MNPP/conf/nginx/common/drupal; }
  5. $ mnpp Usage: Start sudo mnpp --php[Version] --start Start only

    one service sudo mnpp --start [service] For php sudo mnpp --start php[Version] Stop sudo mnpp --php[Version] --stop Stop only one service sudo mnpp --stop [service] For php sudo mnpp --stop php[Version] Version: 52 | 53 Service: nginx | percona | uwsgi
  6. ?