RE: mod_perl configuration questions

2003-08-25 Thread Joey Teel
 Joey Teel wrote:
 
  Weird, that's all I had to mine to get it working, though I probably
  have a rather oddball 
  setup anyway since I have mine set to call the mt.cgi file 
 directly as
  the directory index file too.
  
  Try calling the mt.cgi file directly, and see what happens since it
  looks like yours is setup to use
  an index.html file instead of calling the script directly.
 
 If i call mt.cgi, I get the admin screen.
 
 I think it might be best to rip the whole damn thing out and start 
 over.
 -- 


By admin screen, you mean the screen where you access the blogs and
modify them right?

That's what you're wanting it to do as long as everything else is
working correctly.  All you need to do is modify your httpd.conf file to
change the DirectoryIndex of movabletype to mt.cgi.


Change your config to the one below and it should work (it's the same
one you have already, just with the DirectoryIndex directive added):

Location /movabletype/
DirectoryIndex mt.cgi
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
PerlSendHeader On
allow from all
/Location


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mod_perl configuration questions

2003-08-25 Thread paul beard
Joey Teel wrote:

By admin screen, you mean the screen where you access the blogs and
modify them right?
That's what you're wanting it to do as long as everything else is
working correctly.  All you need to do is modify your httpd.conf file to
change the DirectoryIndex of movabletype to mt.cgi.
Change your config to the one below and it should work (it's the same
one you have already, just with the DirectoryIndex directive added):
Location /movabletype/
DirectoryIndex mt.cgi
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
PerlSendHeader On
allow from all
/Location
So J Random Websurfer hits the static path I have aliased, and I 
go to the admin interface. I'll try that.

Thanks.

--
Paul Beard
http://paulbeard.no-ip.org/movabletype/
whois -h whois.networksolutions.com ha=pb202
In West Union, Ohio, No married man can go flying without his spouse
along at any time, unless he has been married for more than 12 months.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


mod_perl configuration questions

2003-08-24 Thread paul beard
I finally got mod_perl to work properly after a few too many days: 
I was suffering from versionitis when my out-of-date pkg_info was 
getting in the way of clean installs.

What I am trying to do is install mod_perl into an existing 
CGI-enabled environment with the MovableType weblog software. The 
super-simple, hey presto instruction I have found so far don't 
help at all: I can only get faster perl code and no access to any 
static html.

Does anyone have any experience with mod_perl and plain old CGI 
they can share?

--
Paul Beard
http://paulbeard.no-ip.org/movabletype/
whois -h whois.networksolutions.com ha=pb202
To generalize is to be an idiot.
-- William Blake
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mod_perl configuration questions

2003-08-24 Thread Chuck Swiger
paul beard wrote:
[ ... ]
What I am trying to do is install mod_perl into an existing CGI-enabled 
environment with the MovableType weblog software.
By existing you mean, some vendor (MovableType?) has provided you with a 
precompiled version of Apache and you want to add mod_perl to the mix?

If so, you should look into compiling and adding the perl module via apxs.

 The super-simple, hey
presto instruction I have found so far don't help at all: I can only get 
faster perl code and no access to any static html.
When you try to add mod_perl, the result is your perl code runs faster, but 
apache no longer serves static HTML...?  If so, that is remarkably odd.  What 
does the Apache access and error log look like when you try to access a .gif or 
some such that worked before you added mod_perl?

--
-Chuck
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mod_perl configuration questions

2003-08-24 Thread paul beard
Chuck Swiger wrote:
paul beard wrote:
[ ... ]
What I am trying to do is install mod_perl into an existing 
CGI-enabled environment with the MovableType weblog software.


By existing you mean, some vendor (MovableType?) has provided you with 
a precompiled version of Apache and you want to add mod_perl to the mix?
No, it's all compiled from source.

If so, you should look into compiling and adding the perl module via apxs.

  The super-simple, hey

presto instruction I have found so far don't help at all: I can only 
get faster perl code and no access to any static html.


When you try to add mod_perl, the result is your perl code runs faster, 
but apache no longer serves static HTML...?  If so, that is remarkably 
odd.  What does the Apache access and error log look like when you try 
to access a .gif or some such that worked before you added mod_perl?
Well, I'm glad to know my situation isn't the expected result.

I get 403 errors, which suggests I've munged my httpd.conf file 
somehow.

--
Paul Beard
http://paulbeard.no-ip.org/movabletype/
whois -h whois.networksolutions.com ha=pb202
Universe, n.:
The problem.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mod_perl configuration questions

2003-08-24 Thread paul beard
Chuck Swiger wrote:

When you try to add mod_perl, the result is your perl code runs faster, 
but apache no longer serves static HTML...?  If so, that is remarkably 
odd.  What does the Apache access and error log look like when you try 
to access a .gif or some such that worked before you added mod_perl?

This is what I get when I uncomment the following lines:

[Sun Aug 24 09:44:13 2003] [error] access to 
/usr/www/movabletype/index.html failed for 192.168.2.10, reason: 
file permissions deny server execution

#PerlModule Apache::Registry
#Location /movabletype/
#SetHandler perl-script
#PerlHandler Apache::Registry
#Options +ExecCGI
#PerlSendHeader On
#allow from all
#/Location
--
Paul Beard
http://paulbeard.no-ip.org/movabletype/
whois -h whois.networksolutions.com ha=pb202
Q:  How many heterosexual males does it take to screw in a light bulb
in San Francisco?
A:  Both of them.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: mod_perl configuration questions

2003-08-24 Thread Joey Teel
 Chuck Swiger wrote:
 
  When you try to add mod_perl, the result is your perl code 
 runs faster, 
  but apache no longer serves static HTML...?  If so, that is 
 remarkably 
  odd.  What does the Apache access and error log look like 
 when you try 
  to access a .gif or some such that worked before you added mod_perl?
  
 
 This is what I get when I uncomment the following lines:
 
 [Sun Aug 24 09:44:13 2003] [error] access to 
 /usr/www/movabletype/index.html failed for 192.168.2.10, reason: 
 file permissions deny server execution
 
 #PerlModule Apache::Registry
 #Location /movabletype/
 #SetHandler perl-script
 #PerlHandler Apache::Registry
 #Options +ExecCGI
 #PerlSendHeader On
 #allow from all
 #/Location
 
 -- 

Hi, I had this same problem when I did something similar with my
install.  When using mod_perl in this fashion, it changes the behavior
of the directory and it's subdirectories to behave the same way a
ScriptAliased directory would behave, basically, you can't serve static
content from that location.

Move all the static content (html, css, images, etc.) to a different
directory (to use the example from the MT manual, use mt-static) and
modify your mt.cfg file to add/change the StaticWebPath option to point
to the location of the static files.

From what I remember (this was about 4 or 5 months ago) that was all I
had to do to get it working properly.

Joey


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mod_perl configuration questions

2003-08-24 Thread paul beard
Joey Teel wrote:

Move all the static content (html, css, images, etc.) to a different
directory (to use the example from the MT manual, use mt-static) and
modify your mt.cfg file to add/change the StaticWebPath option to point
to the location of the static files.
OK, that's sensible. But then requesting /movabletype still gives 
the error and /mt-static yields content without any css or images, 
even though all the stuff is in there.

Do i need to alias /movabletype as something else? It feels like 
there's missing step that any reasonably clever person would do 
automatically, but by definition, I'm missing.



--
Paul Beard
http://paulbeard.no-ip.org/movabletype/
whois -h whois.networksolutions.com ha=pb202
The primary requisite for any new tax law is for it to exempt enough
voters to win the next election.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: mod_perl configuration questions

2003-08-24 Thread Joey Teel

 
 Joey Teel wrote:
 
  Move all the static content (html, css, images, etc.) to a different
  directory (to use the example from the MT manual, use mt-static) and
  modify your mt.cfg file to add/change the StaticWebPath 
 option to point
  to the location of the static files.
 
 OK, that's sensible. But then requesting /movabletype still gives 
 the error and /mt-static yields content without any css or images, 
 even though all the stuff is in there.
 
 Do i need to alias /movabletype as something else? It feels like 
 there's missing step that any reasonably clever person would do 
 automatically, but by definition, I'm missing.
 

Weird, that's all I had to mine to get it working, though I probably
have a rather oddball 
setup anyway since I have mine set to call the mt.cgi file directly as
the directory index file too.

Try calling the mt.cgi file directly, and see what happens since it
looks like yours is setup to use
an index.html file instead of calling the script directly.

Joey


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mod_perl configuration questions

2003-08-24 Thread paul beard
Joey Teel wrote:

Weird, that's all I had to mine to get it working, though I probably
have a rather oddball 
setup anyway since I have mine set to call the mt.cgi file directly as
the directory index file too.

Try calling the mt.cgi file directly, and see what happens since it
looks like yours is setup to use
an index.html file instead of calling the script directly.
If i call mt.cgi, I get the admin screen.

I think it might be best to rip the whole damn thing out and start 
over.
--
Paul Beard
http://paulbeard.no-ip.org/movabletype/
whois -h whois.networksolutions.com ha=pb202

Commitment, n.:
Commitment can be illustrated by a breakfast of ham and eggs.
The chicken was involved, the pig was committed.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]