Difference between revisions of "Installing Pier on Ubuntu"

From Organic Design wiki
m (Simple Setup of a Pier Image on a Webserver)
(start Pier manually)
Line 7: Line 7:
 
* Download Pier-2.0-OneClick.zip from http://www.piercms.com/download
 
* Download Pier-2.0-OneClick.zip from http://www.piercms.com/download
 
* Unzip into any directory, but probably /var/www/domains/Pier.app for an OD install
 
* Unzip into any directory, but probably /var/www/domains/Pier.app for an OD install
* Change ownership to www-data:
+
* As root, change ownership to www-data:
 
{{code|
 
{{code|
 
chown -R www-data:www-data Pier.app
 
chown -R www-data:www-data Pier.app
Line 26: Line 26:
 
* Restart
 
* Restart
 
* Navigate to http://yourdomain:8080
 
* Navigate to http://yourdomain:8080
 +
*To start Pier manually, as root:
 +
{{code|
 +
cd /var/www/domains/Pier.app
 +
./Pier.sh
 +
}}

Revision as of 09:14, 14 March 2011

Procedure.svg Installing Pier on Ubuntu
Organic Design procedure



Simple Setup of a Pier Image on a Webserver

  • Download Pier-2.0-OneClick.zip from http://www.piercms.com/download
  • Unzip into any directory, but probably /var/www/domains/Pier.app for an OD install
  • As root, change ownership to www-data:
chown -R www-data:www-data Pier.app
  • Edit /etc/rc.local and add the following BASH script just before exit 0 (note you will need to change paths if you unzipped into a directory other than /var/www/domains)
#!/bin/bash
# settings
USER="www-data"
VM="/var/www/domains/Pier.app/Contents/Linux/squeakvm"
VM_PARAMS="-mmap 256m -vm-sound-null -vm-display-null"
IMAGE="/var/www/domains/Pier.app/Contents/Resources/Pier.image"
# start the vm
exec \
setuidgid "$USER" \
"$VM" $VM_PARAMS "$IMAGE"
cd /var/www/domains/Pier.app

./Pier.sh