Difference between revisions of "Installing Pier on Ubuntu"

From Organic Design wiki
m (Where to copy the files)
(Procedure)
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.
 
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.
  
== Where to copy the files ==
+
{{Procedure}}
* download Pier-2.0-OneClick.zip from http://www.piercms.com/download
+
 
* mount or unzip archive image. Note that file contents, Pier.app, has owner:group of ''you'':''you'' [where ''you'' is your username] by default
+
== Download and Install Files ==
* open shell and
+
* Download Pier-2.0-OneClick.zip from http://www.piercms.com/download
 +
* Unzip/mount the archive.  
 
{{code|sudo su
 
{{code|sudo su
 
cd /srv
 
cd /srv
  
mkdir site
+
mkdir /srv/site
 
 
chown ''you'':www-data site
 
 
}}
 
}}
* I used www-data as the group because it already existed and appears to be intended for www sites, also I was already a member by default after installing Ubuntu. It is probably not a good idea to let any webserver be ''root''
 
  
 
Copy to the /srv/site folder the following files [from Pier.app/Contents/Resources]:
 
Copy to the /srv/site folder the following files [from Pier.app/Contents/Resources]:
Line 18: Line 16:
 
:pier.changes,
 
:pier.changes,
 
:files/ folder,  
 
:files/ folder,  
* I didn't find the next file in /Resources:
+
: PharoV10.sources
:SqueakV39.sources
 
:but I did find ''PharoV10.sources'' there, so I assume the instructions are out of date and copied that instead.
 
 
 
  
* The permissions on Pier.app were unpacked with default permissions and probably should be changed to the www server group, www-data. This will (hopefully) make the contents of site and all subcontents have sane permissions and ownership:
+
* 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
chown ''you'':www-data -R site
 
 
}}
 
}}
  

Revision as of 01:17, 11 March 2011

The instructions on the Pier site are a bit terse, so I'm recording my actions to get Pier up and running.

Procedure.svg Installing Pier on Ubuntu
Organic Design procedure

Download and Install Files

sudo su

cd /srv

mkdir /srv/site

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:
chown -R www-data:www-data site

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!


{{{1}}}