The time now is Sat Jul 05, 2008 9:49 am
Log in: Username: Password:
Search forums for:
  
 
ZoneMetrics.com Forum Index
 

ZoneX forums - The new wave in forum management!


Installed mnogo but where do i add the Script Alias???


ZoneMetrics.com Forum Index -> ZoneX Corner -> Configuration and Installation

Post new topic   Reply to topic
Author Message
Tjh



Joined: 29 Oct 2005
Posts: 5



PostPosted: Sun Oct 30, 2005 11:56 am    Post subject: Installed mnogo but where do i add the Script Alias??? Reply with quote

Where do i need to add this?

Code:

ScriptAlias /search.cgi "/usr/local/mnogosearch/bin/search.cgi"
    <Directory "/usr/local/mnogosearch/bin">
        Options None
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>


Found some info on google but they all point to editing httpd.conf and its impossible if you dont own the server Sad

Any other ways to do this? I got shell access to my account.
Back to top
marcus



Joined: 23 Oct 2005
Posts: 17



PostPosted: Sun Oct 30, 2005 1:28 pm    Post subject: Reply with quote

Copy search.cgi from mnogosearch bin directory to your server's cgi-bin. Hosting services provide predefined script aliases to cg-bin in your web site root directory. Something like /htdocs/cgi-bin.
Then you will probably need to change search.cgi path to match path on your server. Find following line in search.php:
Code:
$request = 'search.cgi?q='.str_replace(" ", "+", $search_keywords).'&cmd=Search%21&m=any';
and change search.cgi path to:
Code:
$request = 'cgi-bin/search.cgi?q='.str_replace(" ", "+", $search_keywords).'&cmd=Search%21&m=any';


We haven't tried this type of installation but it should work. If you run into trouble while installing this don't hesitate to share your problems with us. We will resolve those issues for sure Smile
Back to top
Tjh



Joined: 29 Oct 2005
Posts: 5



PostPosted: Sun Oct 30, 2005 5:17 pm    Post subject: Well.. Reply with quote

My hosting provider differs from that normal way that you need to execute cgi scripts from specific directory.

So what i mean, is that i can run .cgi scripts anywhere.

Cant seem to get it to work like you suggested, I get page not found errors even thou i tried severeal paths.. any other suggestions? Mad

edit: I would just like to specify the /home/user/ like path where the mnogo/bin is located... possible?
Back to top
Tjh



Joined: 29 Oct 2005
Posts: 5



PostPosted: Sun Oct 30, 2005 6:22 pm    Post subject: Now i got it.. Reply with quote

Well i did not think of this first but I think this line in .htaccess made it not to work Wink

Code:
RewriteRule ^search.cgi search.html [L,NC]
Back to top
marcus



Joined: 23 Oct 2005
Posts: 17



PostPosted: Sun Oct 30, 2005 8:39 pm    Post subject: Reply with quote

Sure if you've copied search.cgi to your web root directory you should comment out or delete that line. However script alias override that rule so it doesn't matter when you're using ScriptAlias.
Back to top
Display posts from previous:   
Post new topic   Reply to topic All times are GMT

ZoneMetrics.com Forum Index -> ZoneX Corner -> Configuration and Installation

Page 1 of 1

Related topics: