Ivan Zugec

Drupal Consultant

Linux

I remember reading on some post online about developers using virtual environments as a development server. On my mac I use MAMP for development. But using a virtual environment allows you to create all sorts of servers (LAMP, Apache Solr, Varnish).

Over the weekend I spent some time looking at setting up my own virtual environment for development and found the TurnKey Linux site.

In this post I'll demonstrate how to setup the LAMP Stack Appliance with VirtualBox 4.


# zip -r drupal.zip html

This zips all files and directories

  • -r:Includes all files and directories -> Files
  • drupal.zip:The zip file you want to create
  • html:The folder you are targetting or use * if your currently in the folder.

Here is an example of import sql files from ssh


# mysql -uPutYourUserHere -pPutYourPasswordHere -hlocalhost PutYourUserHere_databaseName < database.sql


# mysql -u username -p dbname < data.sql

Subscribe to RSS - Linux