Drush Script for XAMPP/LAMPP and MySQLdump, Gzip support & automatic naming of sql dumps

3 +
Sean Bannister's picture

I used to use XAMPP but

I used to use XAMPP but switched to the exact same setup I use on my server for consistency. Is there any reason you still use XAMPP? Because a LAMP stack is super simple to install:

apt-get install lamp-server^ php5-gd php5-curl php5-cli

Maybe I'm missing something?

- Sean Bannister

himerus's picture

good point on normal lamp stack

For me, the last time I setup a true lamp stack myself was years and years ago when it was still a challenging setup on any system. I really chose xampp just for the convinience of getting it set up super fast after I wiped my main dev machine and went to ubuntu. Sometimes I forget how easy it is to install some things on linux now.

Xampp has been great for this setup, and I've had no complaints other than the mysqldump and mysql commands being not linked where I thought they would be, and I solved that just using aliases, but drush didn't recognize that alias, so I needed this option to make it work in drush.

Will probably be updating to a MacBook Pro soon, and probably set up a more traditional LAMP stack on that as it'll be my dev machine for quite some time after retiring this beast.

Jake Strawn
Drupal Rockstar

Trevor Twining's picture

You could also provide

You could also provide symlinks where the system is looking to find those commands, or include that path in your $PATH environment variable. either way would let you use those commands without making the modifications you have.

The db dump renaming is cool though, so I'd keep that :D

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <h2> <h3> <h4> <h5> <h6> <img> <p>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Image links with 'rel="lightbox"' in the <a> tag will appear in a Lightbox when clicked on.
  • Twitter-style @usersnames are linked to their Twitter account pages.

More information about formatting options