Gossamer Forum
Home : Products : Links 2.0 : Discussions :

admin file tries to download instead of loading

Quote Reply
admin file tries to download instead of loading
I've recently moved my links script to another server and when I try to load the admin.cgi it brings up a box to download it instead of loading the page.

This has happened before and I can't remember the fix.

Thanks
Sharon
Quote Reply
Re: admin file tries to download instead of loading In reply to
Two fixes:

1) Check to make sure that you have the correct ABSOLUTE paths for your path variables (like $build_root_path and $db_script_path) in your links.cfg file.

2) Make sure that you have the correct ABSOLUTE PATH to your links.cfg file in the require line in the admin.cgi script.

BTW: This is a more appropriate question for the Installation Forum.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: admin file tries to download instead of loading In reply to
Did find an error in links.cfg and fixed it (I'd put in a trailing slash.) Put in the FULL path to links.cfg in the admin.cgi file.

It still tries to download rather than open in the browser.

btw: The address is http://www.soberdykes.org/links/cgi-bin/admin/admin.cgi

(sorry for the wrong forum. I'll remember next time)
Quote Reply
Re: admin file tries to download instead of loading In reply to
*HINT*

If you would've download the file, saved the file to your hard drive and then opened the file, you would've seen the following error message:

Code:
require "/home/soberdyk/links/cgi-bin/admin/links.cfg";

However, I think you are missing a few directories in this absolute path.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.