NOTE: I’ve a new blog!
I considered to switch to another blogging platform, please read more here
Twitter Updates
Error: Twitter did not respond. Please wait a few minutes and refresh this page.
Archives
Recent Photos
|
Personal Weblog
Here I’ll try to cover preliminary adjustments necessary to make XAMPP more friendly environment for Aegir.
I prefer XAMPP for development purposes because it can be used on demand, delivering common LAMP features out of box and makes it easy to establish similar environment on different distributions and/or even OS’es.
The steps explained in this post fits best to the following environment:
But not limited to and your’re welcome to give it a try on environment of your choice. Make sure to drop a comment about your success
XAMPP 1.7.1 is the last version shipped with PHP 5.2, all later versions uses PHP 5.3 which is supported by Drupal 6.14 core and higher (see the release notes for 6.14) and also by Drupal 7.x. But note that some contributed modules may not be compatible with PHP 5.3, and that some PHP 5.3 configurations still show warnings with Drupal 6.14. Also PHP 5.3 is not yet supported by Drupal 5.x
First off all you need to have XAMPP installed and this process already covered in many articles on the net, for example: http://www.codetorment.com/2009/10/20/guide-install-xampp-on-ubuntu/
Now some adjustments needs to be done, but note the following instructions focused on using XAMPP for development purposes, from under your current account, i.e. you will need to replace user with in your(administrative privileged) username:
# XAMPP
if [ -d "/opt/lampp/bin" ] ; then
PATH="/opt/lampp/bin:$PATH"
fisource ~/.profile memory_limit = 128M
register_globals = Off
# xammp/aegir
user ALL=NOPASSWD: /opt/lampp/lampp
user ALL=NOPASSWD: /opt/lampp/bin/apachectl
sudo apt-get install postfixwebmaster: user
admin: usersudo newaliasessudo apt-get install mailutils rsync git-core unzip#Group nogroup
Group www-datasudo adduser user www-datasudo /opt/lampp/lampp securitymysql -u root -p
use mysql;
delete from user where User='';
quit; sudo /opt/lampp/lampp restart aegir.local 127.0.0.1Now you can proceed with Aegir installation as described in the next section.
Start your LAMP stack if not yet running:
/opt/lampp/lampp start
Now download Aegir quick install script, make it executable and run:
wget -O install.sh 'http://git.aegirproject.org/?p=provision.git;a=blob_plain;f=install.sh.txt;hb=provision-0.4-beta2'
chmod +x install.sh
./install.sh
If everything went well you should see login url, e.g.:
Aegir is now installed. You can visit it at http://aegir.local/user/reset/1/1296754898/eca2e1c275f41846cc4a53f38070f1c3
Post install tweaks:
... '@hostmaster' hosting-dispatch >/dev/null 2>&1<VirtualHost *:80>
# ServerName default
# Redirect 404
</VirtualHost>sudo /opt/lampp/lampp restart That’s it, happy Drupalling!
Thanks very usefull. It seems to be a good solution for a dev local environment. Do you use a version control system for your sites hosted in aegir?
Sure, every site(themes + features folders) is under its own repository.
And just in case here is what in my site specific .gitignore file:
.sass-cachedrushrc.php
settings.php
files