On Wed, Jul 29, 2009 at 5:30 AM, Maarten Mostert <maarten.mostert@wanadoo.fr> wrote:
Hi,

I finally got things sort of working but really there are a number of small issues with the documentation.

First of all I am running on Slicehost with Ubuntu 9.04 and Apache 2.2


A)  If I start up my image according to the docuentation I have to options:

      The install script delivered with Pier 1.2

This is a script that just let you open a Pier image. Not more. This is useful while you are developing in your PC.
 
or the Scirpt instructions given here:   http://www.piercms.com/doc/deploy  

This script is better when deploying to a production environment. For example, you can set the memory with mmap, the encoding, to be headless, etc...
However, neither of these scripts are unique. The idea is you make your own script that suite your requirements.

For example, this is a script from Miguel Cobá

#!/bin/sh

NOHUP="/usr/bin/nohup"
SQUEAK_VM="/usr/bin/squeakvm"
SQUEAK_OPTS="-mmap 100m -vm-sound-null -vm-display-X11 -headless"
SQUEAK="$SQUEAK_VM $SQUEAK_OPTS"
IMAGES_HOME="/home/miguel/squeak/images/azteca"
SCRIPTS_HOME="/home/miguel/squeak/scripts/azteca"
LOGS_HOME="/home/miguel/squeak/logs/azteca"
START_PORT=8080
END_PORT=8093


# Start the Magma image
echo "Starting Magma image"
$NOHUP $SQUEAK $IMAGES_HOME/magma.image $SCRIPTS_HOME/magma.st >>
$LOGS_HOME/magma.nohup &

# Start the Seaside images
for PORT in `seq $START_PORT $END_PORT`; do
echo "Starting Seaside image on port: $port"
$NOHUP $SQUEAK $IMAGES_HOME/seaside.image $SCRIPTS_HOME/seaside.st
port $PORT >> $LOGS_HOME/seaside.nohup &
done


This is the one I use:

#!/bin/bash
#settings
NOHUP="/usr/bin/nohup"
VM="/home/mariano/squeak/expury/build/squeak"
VM_PARAMS="-mmap 200m -vm-sound-null -vm-display-null"
IMAGE="destinoMochila.image"

#start the vm
$NOHUP "$VM" $VM_PARAMS "$IMAGE" &
# store in a file the PID of squeakVM
echo $! > evince.pid



 

      Without being an expert they do not do the same thing.
      As I am in bash I used the one of the documetation but maybe here things allready went wrong ?


B) According to the documentation I should do the following:

     Set the Server Hostname to: http://www.YOURDOMAIN.com
     Set the Server Path to: /
     Set the Base Path to: /

     This seemed not to be oké If I do so my pages are inacessable or show up in a strange format like this.
    
     http://http%3A%2F%2Fstakepoint.com/multiuser

     Fianlly you have to leave th http:// of the servername to state:  www.YOURDOMAIN.com  

I think I also noticed this sometime but I don't remember when neither if I fix it.
Perhaps this is a bug?
 



C) I spent a lot of time trying to figure ot which combination of virtualhost file works.
     Fianlly the next one seems to be oké but still is different in the Document root sections. from the one given in the documntation.


Me too. But this was "my fault" for being apache newbie. Luckely a friend help me with this.
 
This is my virtualhost (in case it is useful for you)


<VirtualHost *:80>

ServerName www.destinomochila.com.ar
ServerAdmin marianopeck@gmail.com

#Seteo de parametros
ProxyPreserveHost On
ProxyPreserveHost on
ProxyRequests Off
UseCanonicalName Off


#Mapeo los directorios
DocumentRoot /var/www/destinomochila.com.ar
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

#Log
ErrorLog /var/www/destinomochila.com.ar/logs/destinoMochila-error.log

# Tal vez para desarrollo no es necesario, pero para produccion, puedo cachear las cosas asi (tengo que agregar el mod tambien):
CacheEnable mem /seaside/files
# estos son segundos y son el tiempo que espera el apache para ir a buscar nuevamente el archivo original y actualizar la cache
CacheMaxExpire 604800
MCacheMaxObjectCount 10000
MCacheMaxObjectSize 64000000
MCacheMinObjectSize 10000
MCacheRemovalAlgorithm LRU
MCacheSize 70000000

# Habilito compresion, pero solo para html, js, css plain text y demas, pero no para fotos, pdfs, etc
DeflateCompressionLevel 9
SetOutputFilter DEFLATE
#Seteo para que comprima los siguientes mimetypes
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css
#Estas 3 lineas son para que ande en exploradores viejos
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
#Exluyo los siguientes mimetypes
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
#Seteo logs para ver cuanto comprimo
#DeflateFilterNote Input input_info
#DeflateFilterNote Output output_info
#DeflateFilterNote Ratio ratio_info
#LogFormat '"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)' deflate
#CustomLog /var/www/destinomochila.com.ar/logs/destinoMochila-deflate.log deflate


# rewrite incoming requests
RewriteEngine On

<Proxy *>
Order allow,deny
Allow from all
</Proxy>
<FilesMatch "^.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>

RewriteCond %{HTTP_HOST} ^www\.destinomochila\.com\.ar [NC]
RewriteCond %{REQUEST_URI} ^/(.*) [NC]
RewriteCond %{REQUEST_URI} !^/seaside/files/(.*) [NC]
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule www\.destinomochila\.com\.ar(.*) http://127.0.0.1:8888/seaside/destinoMochila$1 [P,L]

</VirtualHost>

Best,

Mariano




Regards,

@+Maarten,
    




<VirtualHost 174.143.245.13:80>
   ServerName stakepoint.com

   ServerAlias www.stakepoint.com


# rewrite incoming requests
  RewriteEngine On
 # This is not oké the next line is  DocumentRoot /home/maarten/public_html/files
  DocumentRoot /home/maarten/public_html
  RewriteRule ^/seaside/files/(.*)$ http://localhost:8080/seaside/files/$1 [proxy,last]
# next line seems oké but don't put /files behind public_html
  RewriteCond /home/maarten/public_html/%{REQUEST_FILENAME} !-f
# next line seems oké to
  RewriteRule ^/(.*)$ http://localhost:8080/seaside/pier/$1 [proxy,last]

 

# Set up general proxy properties

  ProxyRequests Off
  ProxyPreserveHost On
  <Proxy *>
   Order deny,allow
   Allow from none
  </Proxy>

 

 # Additional aliases to serve files normally served by Seaside;
 # this is a simple optimization to reduce load on the app server
 # by letting Apache do what it does best, serve static files;
 # normally in development these directories are served by Seaside
 # to keep development environment simpler

 

 Alias /files /home/maarten/public_html/files
 Alias /support /home/maarten/public_html/files/support

 <Directory /home/maarten/public_html/files>
  <Limit GET>
   Order allow,deny
   Allow from all
  </Limit>
 </Directory>

    ServerAdmin webmaster@stakepoint.com

    UseCanonicalName Off

</VirtualHost>



Mariano Martinez Peck a écrit :
Maarten Mostert: Perhaps yuo can post your VirtualHost file configuration of Apache, what you have set in /seaside/config  (the parameters baseURL, hostname and path), and an ls -la to the DocumentRoot

Best,

Mariano

On Thu, Jul 23, 2009 at 5:21 PM, Germán Arduino <garduino@gmail.com> wrote:
I've the same problem, also in a Linux box without Apache.

The css don't works. As far as I saw all the files are on place, but the css
don't works.

Cheers.


2009/7/21 Damien Cassou <damien.cassou@gmail.com>:
> On Tue, Jul 21, 2009 at 10:26 AM, Maarten
> MOSTERT<maarten.mostert@wanadoo.fr> wrote:
>> By CCS I meant all the style sheets.
>
> CSS then I guess :-)
>
> --
> Damien Cassou
> http://damiencassou.seasidehosting.st
>
> "Lambdas are relegated to relative obscurity until Java makes them
> popular by not having them." James Iry
> _______________________________________________
> Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
>
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki


_______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki


_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki