Difference between revisions of "Installing Pier on Ubuntu"

From Organic Design wiki
m
(simple image)
Line 1: Line 1:
The instructions on [http://www.piercms.com/doc/deploy the Pier site] are a bit terse, so I'm recording my actions to get Pier up and running.
+
<noinclude>{{Procedure}}</noinclude>
  
<noinclude>{{Procedure}}</noinclude>
+
== Simple Setup of a Pier Image on a  Webserver ==
  
== Download and Install Files ==
 
 
* Download Pier-2.0-OneClick.zip from http://www.piercms.com/download
 
* Download Pier-2.0-OneClick.zip from http://www.piercms.com/download
* As root, unzip/mount the archive, create the web directory:  
+
* Unzip into any directory, but probably /var/www/domains/Pier.app for an OD install
 +
* Change ownership to www-data:
 
{{code|
 
{{code|
cd /srv
+
chown -R www-data:www-data Pier.app
 
 
mkdir /srv/site
 
 
}}
 
}}
 
+
* 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)
Copy to the /srv/site folder the following files [from Pier.app/Contents/Resources]:
 
:pier.image,
 
:pier.changes,
 
:files/ folder,
 
: PharoV10.sources
 
 
 
* if you are using a gui you can chmod 777 site (to allow you to copy and paste), just don't forget to chmod 644 afterward.
 
* Recursively chown the web dir:
 
 
{{code|
 
{{code|
chown -R www-data:www-data site
+
#!/bin/bash
}}
+
# settings
 
 
== First run ==
 
The instructions say:
 
: you can run the image headless by using the following bash script:
 
*I'm not exactly sure what is meant by 'headless(-ly) but I think it has something to do with Apache, in the next section. I wasn't expecting to get into installing apache. I thought the image would be a complete webserver!
 
 
 
{{code | #!/bin/bash
 
 
 
#settings
 
 
USER="www-data"
 
USER="www-data"
VM="/usr/bin/squeakvm"
+
VM="/var/www/domains/Pier.app/Contents/Linux/squeakvm"
VM_PARAMS="-mmap 200m -vm-sound-null -vm-display-null"
+
VM_PARAMS="-mmap 256m -vm-sound-null -vm-display-null"
IMAGE="pier.image"
+
IMAGE="/var/www/domains/Pier.app/Contents/Resources/Pier.image"
 
+
# start the vm
#start the vm
+
exec \
"$VM" $VM_PARAMS "$IMAGE" &
+
setuidgid "$USER" \
 +
"$VM" $VM_PARAMS "$IMAGE"
 
}}
 
}}
 +
* Restart
 +
* Navigate to http://yourdomain:8080

Revision as of 08:39, 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
  • 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)
{{{1}}}