23 Dec
Following is a guid to install Redmine (svn trunk) on Ubuntu 9.10.
The assumed location of Redmine is /srv/redmine
Step 1
Install required packages.
Step 2
Check out Redmine trunk.
Step 3
Install required ruby gems:
Note 1: We may need to update Rails RAILS_GEM_VERSION in file [redmine]/config/environment.rb to reflect actual version of Rails gems installed.
Note 2: We may need to create soft link for rails & mongrel executables for convenient
Step 4
Create mysql database
Run the following code in mysql, substitute your own database name, password, …
Step 5
Create/Update database parameters in [redmine]/config/database.yml accordingly to prior step info.
Step 6
Initialize the database
Step 7
Create redmine user & setting up directory permission
Step 8
Testing the application server
The server is listening on [http://localhost:3000].
Step 1
Create mongrel cluster configuration files for Redmine.
Step 2
Create apache virtual host file at /etc/apache/sites-available/
Step 3
Turn on the virtual host and required modules
Step 1
Create global mongrel_cluster configuration
Step 2
Update the services
Step 3
Configure G!Mail
24 Nov
You can, but it’s no fun.
16 Oct
When developing with CakePHP, we can setup Apache to automatically redirect a domain to a specific CakePHP application.
We can set computer’s aliases using hosts file. Apache will automatically map aliases to different DocumentRoot:
app1.mybox.com -> /var/www/cakephp/app1.mybox.com/webroot
app2.somewhere.com -> /var/www/cakephp/app2.somewhere.com/webroot
Step 1: Enable the mod_vhost_alias:
Step 2: Replace the DocumentRoot statement in default virtualhost configuration file with two lines:
(If you use a different virtualhost, make sure that you’re editing the right configuration file)
Step 3: However, the mod_rewrite doesn’t play nice with mod_vhost_alias. We need to edit the .htaccess file in {APP}/webroot folder.
Step 4: Restart Apache.
Below is my default virtual host configuration for your reference:
16 Sep
In Linux, files which name start by a dot ‘.’ are hidden by default in most file managers. However, there are cases when we want to hide dot-file from our view. For examples:
In Nautilus (default GNOME file manager) there’s a way. Add a file named
with each line is the name of the file/folder you want to hide.
For example, if you want to hide Desktop from home folder you may type this command in the terminal:
Note: This trick only works in Nautilus. It won’t work in Konqueror or Dolphin. I don’t know if it works in other file managers or not.
Recent Comments