Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

CGIWrap again !!!!!!

Quote Reply
CGIWrap again !!!!!!
Hi,
I got this message when running admin.cgi:
Error including libraries: Can't locate /cgi-bin/cgiwrap/search.surecity.com/cgi-bin/links/admin/links.cfg in @INC (@INC contains: /Web/WebHosting/search.surecity.com/cgi-bin/links/admin /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at /Web/WebHosting/search.surecity.com/cgi-bin/links/admin/admin.cgi line 11. Make sure they exist, permissions are set properly, and paths are set correctly.
------------------------------------
links.cfg :
$db_script_path = "/cgi-bin/cgiwrap/search.surecity.com/cgi-bin/links/admin";
$db_dir_url = "http://search.surecity.com/cgi-bin/links/admin";

$db_cgi_url = "http://search.surecity.com/cgi-bin/links";

$build_root_path = "/Web/htdocs";
$build_root_url = "http://search.surecity.com";

--------------------------------------
admin.cgi :
require 5.001; # Make sure we have at least perl 5.001.
require "/cgi-bin/cgiwrap/search.surecity.com/cgi-bin/links/admin/links.cfg";
---------------------------------------

SURESPACE data:

SCRIPT_NAME=/cgi-bin/cgiwrap/username.surespace.com/envtest.pl
SCRIPT_FILENAME=/Web/cgi-bin/cgiwrap
Absolute Path=/Web/WebHosting/username.surecity.com/
Document Root=/Web/htdocs
PLEASE HELP ME!!!!!!!!!!!!!
Quote Reply
Re: CGIWrap again !!!!!! In reply to
*sigh*

The following line:

Code:
$db_script_path = "/cgi-bin/cgiwrap/search.surecity.com/cgi-bin/links/admin";

NEEDS to be the following:

Code:
$db_script_path = "/Web/cgi-bin/cgiwrap/search.surecity.com/cgi-bin/links/admin";

The following line:

Code:
$build_root_path = "/Web/htdocs";

needs to be the following:

Code:
$build_root_path = "/Web/WebHosting/username.surecity.com";

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: CGIWrap again !!!!!! In reply to
The problem you report has nothing to do with cgi wrap. I see all kinds of posts reporting problems with cgi wrap and none of them really have anything to do with cgi wrap. cgi wrap is just a path the files go thru via a symbolic link. When you give the path to perl in your script it is not the real path. A symbolic link runs it thru cgi wrap first, the only reason you see cgi wrap in the error is that the real path goes thru cgi wrap first and the error file is showing you. Your error is really your machine is not recognising the file you are trying to access becasue of some other error you have made such as the wrong path or you uploaded the file in binary and the machine doesn't see it.