|
|
| Author |
Message |
Tjh
Joined: 29 Oct 2005 Posts: 5
|
Posted: Sun Oct 30, 2005 11:56 am Post subject: Installed mnogo but where do i add the Script Alias??? |
|
|
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
Any other ways to do this? I got shell access to my account. |
|
|
Back to top
|
|
|
|
 |
marcus
Joined: 23 Oct 2005 Posts: 17
|
Posted: Sun Oct 30, 2005 1:28 pm Post subject: |
|
|
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  |
|
|
Back to top
|
|
|
|
 |
Tjh
Joined: 29 Oct 2005 Posts: 5
|
Posted: Sun Oct 30, 2005 5:17 pm Post subject: Well.. |
|
|
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?
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
|
Posted: Sun Oct 30, 2005 6:22 pm Post subject: Now i got it.. |
|
|
Well i did not think of this first but I think this line in .htaccess made it not to work
| Code: | | RewriteRule ^search.cgi search.html [L,NC] |
|
|
|
Back to top
|
|
|
|
 |
marcus
Joined: 23 Oct 2005 Posts: 17
|
Posted: Sun Oct 30, 2005 8:39 pm Post subject: |
|
|
| 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
|
|
|
|
 |
|