Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added ImageMagick command and sudo update-rc.d

  • Loading branch information...
commit 1dd6900e4ef7caab7e6afcf851fc8162ce4f24f6 1 parent 0a19a5d
@jnstq authored
Showing with 36 additions and 21 deletions.
  1. +36 −21 README.markdown
View
57 README.markdown
@@ -75,31 +75,31 @@ Install package required by ruby enterprise, C compiler, Zlib development header
Download and install Ruby Enterprise Edition
- $ wget http://rubyforge.org/frs/download.php/51100/ruby-enterprise-1.8.6-20090201.tar.gz
- $ tar xvfz ruby-enterprise-1.8.6-20090201.tar.gz
- $ rm ruby-enterprise-1.8.6-20090201.tar.gz
- $ ruby-enterprise-1.8.6-20090201/
- $ sudo ./installer
+ wget http://rubyforge.org/frs/download.php/51100/ruby-enterprise-1.8.6-20090201.tar.gz
+ tar xvfz ruby-enterprise-1.8.6-20090201.tar.gz
+ rm ruby-enterprise-1.8.6-20090201.tar.gz
+ ruby-enterprise-1.8.6-20090201/
+ sudo ./installer
Add Ruby Enterprise bin to PATH
- $ echo "export PATH=/opt/ruby-enterprise-1.8.6-20090201/bin:$PATH" >> .profile
+ echo "export PATH=/opt/ruby-enterprise-1.8.6-20090201/bin:$PATH" >> .profile
Verify the ruby installation
- $ ruby -v
+ ruby -v
ruby 1.8.6 (2008-08-08 patchlevel 286) [i686-linux]
Installning git
----------------
- $ sudo apt-get install git-core
+ sudo apt-get install git-core
Nginx
-------
- $ sudo /opt/ruby-enterprise-1.8.6-20090201/bin/passenger-install-nginx-module
+ sudo /opt/ruby-enterprise-1.8.6-20090201/bin/passenger-install-nginx-module
Select option 1. Yes: download, compile and install Nginx for me. (recommended)
@@ -111,7 +111,7 @@ When finished, verify nginx source code is located under /tmp
drwxrwxrwx 7 1169 1169 4096 2009-04-18 17:56 pcre-7.8
-rw-r--r-- 1 root root 1168513 2009-04-18 17:51 pcre-7.8.tar.gz
-Run the passenger-install-nginx-module once more to add ---with-http_ssl_module
+Run the passenger-install-nginx-module once more if you want to add ---with-http_ssl_module
$ sudo /opt/ruby-enterprise-1.8.6-20090201/bin/passenger-install-nginx-module
@@ -138,24 +138,39 @@ More information on http://wiki.nginx.org/Nginx-init-ubuntu
Verify that you can start and stop nginx with init script
- $ sudo /etc/init.d/nginx start
- * Starting Nginx Server...
- ...done.
- $ sudo /etc/init.d/nginx status
- nginx found running with processes: 11511 11510
- $ sudo /etc/init.d/nginx stop
- * Stopping Nginx Server...
- ...done.
+ sudo /etc/init.d/nginx start
+
+ * Starting Nginx Server...
+ ...done.
+
+ sudo /etc/init.d/nginx status
+
+ nginx found running with processes: 11511 11510
- /usr/sbin/update-rc.d -f nginx defaults
+ sudo /etc/init.d/nginx stop
+
+ * Stopping Nginx Server...
+ ...done.
+
+ sudo /usr/sbin/update-rc.d -f nginx defaults
If you want, reboot and see so the webserver is starting as it should.
+Installning ImageMagick and RMagick
+-----------------------------------
+
+If you want to install ImageMagick. I used MiniMagick that shell-out to the mogrify command, worked really well for me.
+
+ sudo apt-get install imagemagick
+ sudo apt-get install libmagick9-dev
+ sudo gem install rmagick
+
+ sudo /opt/ruby-enterprise-1.8.6-20090421/bin/ruby /opt/ruby-enterprise-1.8.6-20090421/bin/gem install rmagick
Test a rails applicaton with nginx
----------------------------------
- ~$ rails -d mysql testapp
+ rails -d mysql testapp
cd testapp
Enter your mysql password
@@ -182,7 +197,7 @@ Add a new virutal host
Restart nginx
- $ sudo /etc/init.d/nginx restart
+ sudo /etc/init.d/nginx restart
Check you ipadress and see if you can acess the rails application
Please sign in to comment.
Something went wrong with that request. Please try again.