Koha ScriptAlias Work around?
Hello Folks, I've been working to install Koha on a shared server without root access (I am trying to migrate to my commercial webhost). It's been a rather long road thus far but, after much struggling and help from my webhost's tech support, I've managed to get the scripts to run with one small problem: redirects aren't directing to the proper spot because I don't have the ability to use httpd.conf which means that there is no ScriptAlias that will point in the right direction. Before I spend a couple of weeks digging around trying to work around this, I thought I would ask if anyone has had any luck in installing Koha without the need for ScriptAlias to be used in the the koha-httpd.conf file or if anyone had any ideas on how to approach working around this? I've checked with my webhost and there's nothing that they can do to allow me to use ScriptAlias. Any help on this front would be most appreciated! Cheers, Dwayne Collins
A bit hacky but maybe you could set up a rewrite rule to catch the request and forward it to the url your scripts are located at? Who's your hosting provider? -reed On Tue, May 25, 2010 at 10:58 AM, Dwayne Collins <dcollins@prcsa.ca> wrote:
Hello Folks,
I've been working to install Koha on a shared server without root access (I am trying to migrate to my commercial webhost). It's been a rather long road thus far but, after much struggling and help from my webhost's tech support, I've managed to get the scripts to run with one small problem: redirects aren't directing to the proper spot because I don't have the ability to use httpd.conf which means that there is no ScriptAlias that will point in the right direction. Before I spend a couple of weeks digging around trying to work around this, I thought I would ask if anyone has had any luck in installing Koha without the need for ScriptAlias to be used in the the koha-httpd.conf file or if anyone had any ideas on how to approach working around this?
I've checked with my webhost and there's nothing that they can do to allow me to use ScriptAlias.
Any help on this front would be most appreciated!
Cheers, Dwayne Collins _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Hi Reed, Thanks for the suggestion; it was one of the options I was thinking about; although I'll be honest when I say my skills with htaccess leave a bit to be desired. The other option I was considering was changing the installation preferences so that the scripts were installed in the cgi-bin/koha directory rather than having to have any redirects at all, I'm weary to do this, though, without a clear idea of why the redirects used in the koha-httpd.conf file were put in place to begin with. My host provider is Bluehost.com. I've been reading the list for awhile and many people seem to run into difficulties trying to get a Koha install to work with them. Cheers, Dwayne On 25/05/10 5:44 AM, Reed Wade wrote:
A bit hacky but maybe you could set up a rewrite rule to catch the request and forward it to the url your scripts are located at?
Who's your hosting provider?
-reed
On Tue, May 25, 2010 at 10:58 AM, Dwayne Collins<dcollins@prcsa.ca> wrote:
Hello Folks,
I've been working to install Koha on a shared server without root access (I am trying to migrate to my commercial webhost). It's been a rather long road thus far but, after much struggling and help from my webhost's tech support, I've managed to get the scripts to run with one small problem: redirects aren't directing to the proper spot because I don't have the ability to use httpd.conf which means that there is no ScriptAlias that will point in the right direction. Before I spend a couple of weeks digging around trying to work around this, I thought I would ask if anyone has had any luck in installing Koha without the need for ScriptAlias to be used in the the koha-httpd.conf file or if anyone had any ideas on how to approach working around this?
I've checked with my webhost and there's nothing that they can do to allow me to use ScriptAlias.
Any help on this front would be most appreciated!
Cheers, Dwayne Collins _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
I've got a bluehost account also -- I'll try some things if I get a chance to over the weekend. It should be doable. -reed On Thu, May 27, 2010 at 8:53 AM, Dwayne Collins <dcollins@prcsa.ca> wrote:
Hi Reed,
Thanks for the suggestion; it was one of the options I was thinking about; although I'll be honest when I say my skills with htaccess leave a bit to be desired.
The other option I was considering was changing the installation preferences so that the scripts were installed in the cgi-bin/koha directory rather than having to have any redirects at all, I'm weary to do this, though, without a clear idea of why the redirects used in the koha-httpd.conf file were put in place to begin with.
My host provider is Bluehost.com. I've been reading the list for awhile and many people seem to run into difficulties trying to get a Koha install to work with them.
Cheers, Dwayne
On 25/05/10 5:44 AM, Reed Wade wrote:
A bit hacky but maybe you could set up a rewrite rule to catch the request and forward it to the url your scripts are located at?
Who's your hosting provider?
-reed
On Tue, May 25, 2010 at 10:58 AM, Dwayne Collins<dcollins@prcsa.ca> wrote:
Hello Folks,
I've been working to install Koha on a shared server without root access (I am trying to migrate to my commercial webhost). It's been a rather long road thus far but, after much struggling and help from my webhost's tech support, I've managed to get the scripts to run with one small problem: redirects aren't directing to the proper spot because I don't have the ability to use httpd.conf which means that there is no ScriptAlias that will point in the right direction. Before I spend a couple of weeks digging around trying to work around this, I thought I would ask if anyone has had any luck in installing Koha without the need for ScriptAlias to be used in the the koha-httpd.conf file or if anyone had any ideas on how to approach working around this?
I've checked with my webhost and there's nothing that they can do to allow me to use ScriptAlias.
Any help on this front would be most appreciated!
Cheers, Dwayne Collins _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
On 27 May 2010 08:53, Dwayne Collins <dcollins@prcsa.ca> wrote:
Hi Reed,
Thanks for the suggestion; it was one of the options I was thinking about; although I'll be honest when I say my skills with htaccess leave a bit to be desired.
The other option I was considering was changing the installation preferences so that the scripts were installed in the cgi-bin/koha directory rather than having to have any redirects at all, I'm weary to do this, though, without a clear idea of why the redirects used in the koha-httpd.conf file were put in place to begin with.
Ahh brief Koha history .. back in the day Koha was written to run on a webserver along side a bunch of other things. So all the Koha cgi scripts lived in /cgi-bin/koha ... other stuff could live in cgi-bin/whatever So the scripts did used to get installed in that location, and there we a ton of links to those locations. Over time (i think around 2004/2005) the install location got moved and the scriptalias' added so the links all still worked. So no, there is no danger in putting the scripts in those places, or using a symlink to do so, and taking the scriptalias lines out. Chris
My host provider is Bluehost.com. I've been reading the list for awhile and many people seem to run into difficulties trying to get a Koha install to work with them.
Cheers, Dwayne
On 25/05/10 5:44 AM, Reed Wade wrote:
A bit hacky but maybe you could set up a rewrite rule to catch the request and forward it to the url your scripts are located at?
Who's your hosting provider?
-reed
On Tue, May 25, 2010 at 10:58 AM, Dwayne Collins<dcollins@prcsa.ca> wrote:
Hello Folks,
I've been working to install Koha on a shared server without root access (I am trying to migrate to my commercial webhost). It's been a rather long road thus far but, after much struggling and help from my webhost's tech support, I've managed to get the scripts to run with one small problem: redirects aren't directing to the proper spot because I don't have the ability to use httpd.conf which means that there is no ScriptAlias that will point in the right direction. Before I spend a couple of weeks digging around trying to work around this, I thought I would ask if anyone has had any luck in installing Koha without the need for ScriptAlias to be used in the the koha-httpd.conf file or if anyone had any ideas on how to approach working around this?
I've checked with my webhost and there's nothing that they can do to allow me to use ScriptAlias.
Any help on this front would be most appreciated!
Cheers, Dwayne Collins _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
I haven't had a chance to try this out but one thing you may find useful is bluehost does support adding these- AddHandler cgi-script .pl to .htaccess files -reed On Thu, May 27, 2010 at 9:01 AM, Chris Cormack <chris@bigballofwax.co.nz> wrote:
On 27 May 2010 08:53, Dwayne Collins <dcollins@prcsa.ca> wrote:
Hi Reed,
Thanks for the suggestion; it was one of the options I was thinking about; although I'll be honest when I say my skills with htaccess leave a bit to be desired.
The other option I was considering was changing the installation preferences so that the scripts were installed in the cgi-bin/koha directory rather than having to have any redirects at all, I'm weary to do this, though, without a clear idea of why the redirects used in the koha-httpd.conf file were put in place to begin with.
Ahh brief Koha history .. back in the day Koha was written to run on a webserver along side a bunch of other things. So all the Koha cgi scripts lived in /cgi-bin/koha ... other stuff could live in cgi-bin/whatever So the scripts did used to get installed in that location, and there we a ton of links to those locations. Over time (i think around 2004/2005) the install location got moved and the scriptalias' added so the links all still worked.
So no, there is no danger in putting the scripts in those places, or using a symlink to do so, and taking the scriptalias lines out.
Chris
My host provider is Bluehost.com. I've been reading the list for awhile and many people seem to run into difficulties trying to get a Koha install to work with them.
Cheers, Dwayne
On 25/05/10 5:44 AM, Reed Wade wrote:
A bit hacky but maybe you could set up a rewrite rule to catch the request and forward it to the url your scripts are located at?
Who's your hosting provider?
-reed
On Tue, May 25, 2010 at 10:58 AM, Dwayne Collins<dcollins@prcsa.ca> wrote:
Hello Folks,
I've been working to install Koha on a shared server without root access (I am trying to migrate to my commercial webhost). It's been a rather long road thus far but, after much struggling and help from my webhost's tech support, I've managed to get the scripts to run with one small problem: redirects aren't directing to the proper spot because I don't have the ability to use httpd.conf which means that there is no ScriptAlias that will point in the right direction. Before I spend a couple of weeks digging around trying to work around this, I thought I would ask if anyone has had any luck in installing Koha without the need for ScriptAlias to be used in the the koha-httpd.conf file or if anyone had any ideas on how to approach working around this?
I've checked with my webhost and there's nothing that they can do to allow me to use ScriptAlias.
Any help on this front would be most appreciated!
Cheers, Dwayne Collins _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
participants (3)
-
Chris Cormack -
Dwayne Collins -
Reed Wade