|
List Info
Thread: Plone via Apache 2 not working
|
|
| Plone via Apache 2 not working |
  United States |
2007-09-16 22:13:39 |
Dear List,
I am moving a plone 2.0.1 from an old server running FreeBSD
4.9 and
apache 1.3 to a new server running FreeBSD 6.2 with apache
2.2 with
the system updated with latest patches.
Instead of setting up to just run the plone 2.0.1 on the new
server,
while i have the time, i installed everything i needed to
run plone
2.1 so i could migrate to plone 2.1. Migration went fine
with no errors.
I can bring up the plone site by adding the port at which
the Zope/
Plone is running on. But when i try to bring up the site via
rewrite
through apache, i get:
Forbidden
You don't have permission to access / on this server.
I reconfigured the apache config for the virtual host to use
a
siteroot which has an index.html and the index page comes up
fine
with no forbidden message so apache is working. I already
know apache
is working since i have two other virtual hosts that are not
Plone
which are working fine from the server.
I doubled checked on plone.org for the correct rewriterule
and mine
was essentially identical (name and port changed to protect
the in
development status:
RewriteRule ^/(.*) http://l
ocalhost:portnumber/VirtualHostBase/
http/%:80/mydomain.com/VirtualHostRoot/$1
[L,P]
Also have checked to make sure that mod rewrite is loaded in
apache
and it is (seems to be standard). apachectl -t gives an OK
syntax
check. There is a virtual host monster.
Questions:
1. Any pointers on what could be going wrong and why i am
getting the
"Forbidden. You don't have permissions to access / on
this server"
when rewriting in the apache conf file to talk to the plone
2.1? I
have searched hi and low for clues. It all seems like it
should just
be working... its not like i haven't set up plone through
apache
before, but it has always been apache 1.3.
2. My goal is to migrate to plone 2.5 eventually after i get
apache
to rewrite to a zope/plone instance on the new server. All
reading
seems to indicate that i need to migrate from 2.0 to 2.1 and
then to
2.5. Is this true?
3. When i bring up the migrated plone 2.1, the skin seems
broken in
that the css seems not to work. Is there something that you
have to
do after a migrate to 2.1 (from 2.0.1) to get the skin to
work if you
have some items in the "custom" folder?
Thank you for any help you can give.
Peace,
Dan
_______________________________________________
Setup mailing list
Setup lists.plone.org
http://
lists.plone.org/mailman/listinfo/setup
|
|
| Re: Plone via Apache 2 not working |
  United States |
2007-09-17 18:34:22 |
I can't answer your Apache questions, but I'll take a stab
at the others.
On Sun, 16 Sep 2007 20:13:39 -0700, Daniel Melnechuk
<isis isisdesign.com> wrote:
> 2. My goal is to migrate to plone 2.5 eventually after
i get apache to
> rewrite to a zope/plone instance on the new server. All
reading seems to
> indicate that i need to migrate from 2.0 to 2.1 and
then to 2.5. Is this
> true?
You don't *have* to, but it's a good way to approach since
you already
successfully migrated to 2.1. It's possible to do 2.0 to 2.5
directly.
You're probably aware of this, but: Plone 2.1 is an
unsupported release,
and you're likely to easily be able to migrate a 2.1.x site
to a 2.5.x one
— the 2.1->2.5 jump was the difficult one. Plone 2.5.x
will receive
security fixes until 3.5 is out, 2.1 does not have any more
releases
coming.
> 3. When i bring up the migrated plone 2.1, the skin
seems broken in that
> the css seems not to work. Is there something that you
have to do after
> a migrate to 2.1 (from 2.0.1) to get the skin to work
if you have some
> items in the "custom" folder?
Try calling the CSS files directly, and see if they return
any errors.
--
Alexander Limi · http://limi.net
_______________________________________________
Setup mailing list
Setup lists.plone.org
http://
lists.plone.org/mailman/listinfo/setup
|
|
| Re: Plone via Apache 2 not working |

|
2007-09-18 05:28:44 |
hello dan,
here is my config which works for debian/apache2.2:
<VirtualHost *>
ServerName DOMAINNAME.TLD
ServerAlias www.DOMAINNAME.TLD
# <IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/(.*)
http://localhost:8380/VirtualHostBase/http/DOMAINNAME.TLD:80
/DIRECTORY_WHERE_PLONE_IS_INSTALLED/VirtualHostRoot/$1
[L,P]
# </IfModule>
</VirtualHost>
it's maybe close to yours.
what is the part "/mydomain.com/VirtualHostRoot/"
in your config? is it
the directory where plone is installed?
and notice: i have commented out the module check
<IfModule
mod_rewrite.c>. when i first installed apache and
everything, the
IfModule statement didn't work. today i tried it again, and
it works -
so it seems it was an apache bug.
if you have the IfModule statement included, try to comment
it out.
you may also check the apache logs
tail -f /var/log/apache2/....
good luck,hannes
> I am moving a plone 2.0.1 from an old server running
FreeBSD 4.9 and
> apache 1.3 to a new server running FreeBSD 6.2 with
apache 2.2 with the
> system updated with latest patches.
> RewriteRule ^/(.*)
> ht
tp://localhost:portnumber/VirtualHostBase/http/%{SERVER_
NAME}:80/mydomain.com/VirtualHostRoot/$1
> [L,P]
>
> Peace,
> Dan
>
_______________________________________________
Setup mailing list
Setup lists.plone.org
http://
lists.plone.org/mailman/listinfo/setup
|
|
| Re: Plone via Apache 2 not working |
  United States |
2007-09-18 14:32:21 |
Daniel Melnechuk wrote:
> Dear List,
>
> I am moving a plone 2.0.1 from an old server running
FreeBSD 4.9 and
> apache 1.3 to a new server running FreeBSD 6.2 with
apache 2.2 with the
> system updated with latest patches.
>
[...]
>
> Questions:
>
> 1. Any pointers on what could be going wrong and why i
am getting the
> "Forbidden. You don't have permissions to access /
on this server" when
> rewriting in the apache conf file to talk to the plone
2.1? I have
> searched hi and low for clues. It all seems like it
should just be
> working... its not like i haven't set up plone through
apache before,
> but it has always been apache 1.3.
Please do the following:
1) Check for SELinux: /usr/sbin/getenforce
or: dmesg|grep -i selinux
2) Enable the rewrite log to see where your requests are
actually going:
In apache config:
RewriteLog "logs/rewrite.log"
RewriteLogLevel 3
More info on rewrite logging:
http://httpd.apache.org/docs/2.2/mod/mod_rewrite
.html#rewritelog
It would also help to see the exact error line in the log.
(Which by
default should be "logs/error_log")
Jonathan Steffan
daMaestro
_______________________________________________
Setup mailing list
Setup lists.plone.org
http://
lists.plone.org/mailman/listinfo/setup
|
|
| Re: Plone via Apache 2 not working |
  United States |
2007-09-20 00:51:19 |
On Sep 18, 2007, at 6:28 AM, j.raggam skillz.biz wrote:
> hello dan,
>
> here is my config which works for debian/apache2.2:
>
> <VirtualHost *>
> ServerName DOMAINNAME.TLD
> ServerAlias www.DOMAINNAME.TLD
> # <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteRule ^/(.*) http://localho
st:8380/VirtualHostBase/
>
http/DOMAINNAME.TLD:80/DIRECTORY_WHERE_PLONE_IS_INSTALLED/
> VirtualHostRoot/$1 [L,P]
> # </IfModule>
> </VirtualHost>
>
>
> it's maybe close to yours.
> what is the part
"/mydomain.com/VirtualHostRoot/" in your config?
> is it the directory where plone is installed?
> and notice: i have commented out the module check
<IfModule
> mod_rewrite.c>. when i first installed apache and
everything, the
> IfModule statement didn't work. today i tried it again,
and it
> works - so it seems it was an apache bug.
> if you have the IfModule statement included, try to
comment it out.
> you may also check the apache logs
> tail -f /var/log/apache2/....
>
> good luck,hannes
>
>
>> I am moving a plone 2.0.1 from an old server
running FreeBSD 4.9
>> and apache 1.3 to a new server running FreeBSD 6.2
with apache 2.2
>> with the system updated with latest patches.
>
>> RewriteRule ^/(.*) http://localhost:portnum
ber/
>>
VirtualHostBase/http/%:80/mydomain.com/
>> VirtualHostRoot/$1 [L,P]
>
>> Peace,
>> Dan
>
Hi Hannes,
Thanks for your reply... i have been away for a few days so
just
reading now.
I tried commenting out the <IfModule rewrite.c> and
</IfModule> as
you suggested. No luck, still get "Forbidden" html
page.
The "/mydomain.com/VirtualHostRoot/" is the name
of the Plone site
("mydomain.com", well with named for this email
thread) followed by
VirtualHostRoot. So i got that right. Just the same as it
was on the
old system with the old apace conf.
I have looked at logs... opps... thought i had looked at all
logs.
Looks like proxy module was not installed in apache22.
Hummm. Tried
to build with it turned on but getting message:
===> apache-2.2.4_2 has known vulnerabilities:
=> apache -- multiple vulnerabilities.
Reference: <http://www.Fr
eeBSD.org/ports/portaudit/
c115271d-602b-11dc-898c-001921ab2fa4.html>
=> Please update your ports tree and try again.
*** Error code 1
Am doing portsnap fetch update as i type and will build with
proxy
after it is done. At least i know what is up now. Strange
proxy
module was not turned on by default. Oh well
Thank you everyone for your help!
Peace,
Dan
_______________________________________________
Setup mailing list
Setup lists.plone.org
http://
lists.plone.org/mailman/listinfo/setup
|
|
| Re: Plone via Apache 2 not working |
  United States |
2007-09-20 00:52:29 |
On Sep 18, 2007, at 3:32 PM, Jonathan Steffan wrote:
> Daniel Melnechuk wrote:
>> Dear List,
>>
>> I am moving a plone 2.0.1 from an old server
running FreeBSD 4.9 and
>> apache 1.3 to a new server running FreeBSD 6.2 with
apache 2.2
>> with the
>> system updated with latest patches.
>>
> [...]
>>
>> Questions:
>>
>> 1. Any pointers on what could be going wrong and
why i am getting the
>> "Forbidden. You don't have permissions to
access / on this server"
>> when
>> rewriting in the apache conf file to talk to the
plone 2.1? I have
>> searched hi and low for clues. It all seems like it
should just be
>> working... its not like i haven't set up plone
through apache before,
>> but it has always been apache 1.3.
>
> Please do the following:
>
> 1) Check for SELinux: /usr/sbin/getenforce
> or: dmesg|grep -i selinux
>
> 2) Enable the rewrite log to see where your requests
are actually
> going:
> In apache config:
>
> RewriteLog "logs/rewrite.log"
> RewriteLogLevel 3
>
> More info on rewrite logging:
> http://httpd.apache.org/docs/2.2/mod/mod_rewrite
.html#rewritelog
>
> It would also help to see the exact error line in the
log. (Which by
> default should be "logs/error_log")
>
>
> Jonathan Steffan
> daMaestro
>
Rewrite logs were ok. See previous message about proxy not
turned on.
Thanks for your help!
Peace,
Dan
_______________________________________________
Setup mailing list
Setup lists.plone.org
http://
lists.plone.org/mailman/listinfo/setup
|
|
| Re: Re: Plone via Apache 2 not working |
  United States |
2007-09-21 15:45:54 |
On Sep 17, 2007, at 7:34 PM, Alexander Limi wrote:
> I can't answer your Apache questions, but I'll take a
stab at the
> others.
>
> On Sun, 16 Sep 2007 20:13:39 -0700, Daniel Melnechuk
> <isis isisdesign.com> wrote:
>
>> 2. My goal is to migrate to plone 2.5 eventually
after i get
>> apache to rewrite to a zope/plone instance on the
new server. All
>> reading seems to indicate that i need to migrate
from 2.0 to 2.1
>> and then to 2.5. Is this true?
>
> You don't *have* to, but it's a good way to approach
since you
> already successfully migrated to 2.1. It's possible to
do 2.0 to
> 2.5 directly.
Well i have apache tamed now... default install didn't have
proxy
module installed! So my migrated plone on plone version
2.1.4 is
coming up without a skin.
>
> You're probably aware of this, but: Plone 2.1 is an
unsupported
> release, and you're likely to easily be able to migrate
a 2.1.x
> site to a 2.5.x one — the 2.1->2.5 jump was the
difficult one.
Thanks for the heads up.
>
>> 3. When i bring up the migrated plone 2.1, the skin
seems broken
>> in that the css seems not to work. Is there
something that you
>> have to do after a migrate to 2.1 (from 2.0.1) to
get the skin to
>> work if you have some items in the
"custom" folder?
>
> Try calling the CSS files directly, and see if they
return any errors.
Thanks. I have been looking for how to call a skin by
attaching it to
a URL but i can't seem to remember how. I have searched hi
and low on
plone.org and google... something like?:
http://site.com/?view=
skinname
Peace,
Dan
_______________________________________________
Setup mailing list
Setup lists.plone.org
http://
lists.plone.org/mailman/listinfo/setup
|
|
[1-7]
|
|