Gossamer Forum
Quote Reply
Paths
I finally got it so it didn't give me a 403 errors =) Now I get this:

Error including libraries: (Maybe you didn't strip carriage returns after a network transfer?) Make sure they exist, permissions are set properly, and paths are set correctly.

I'm not sure what that carriage return part is, I know sometimes programming languages put an enter after some stuff, and other ways of reading mess it up, but I'm not sure how to fix it, that might not even be the problem...

I've double checked permissions, but I'm not 100% sure about the paths, could someone please help?

URL: http://www.matt.gv2.com

Home Path (or whatever its called): /usr/local/etc/httpd/htdocs/matt/

And the links dir is:
http://www.matt.gv2.com/links

Thanks all.

-Matt
Quote Reply
Re: Paths In reply to
The error messages that you're getting sound like you uploaded your files incorrectly. You need to upload all Perl files as ASCII text and not as binary files. Try deleting your files from the remote server and then re-uploading them as ASCII text. That should solve your problem.
Quote Reply
Re: Paths In reply to
Thanks, I got the admin part working, but now I have the admin part, but not index.html in my main /links/ dir. How should I go about making it? (does it have to be editible by the script?)

Thanks,

-Matt
Quote Reply
Re: Paths In reply to
If you're using Links 1.x, the .zip file you downloaded will have the HTML files you'll need. If you're using Links 2.0 beta x, just execute the admin.cgi file. The admin.cgi will generate the HTML files.
Quote Reply
Re: Paths In reply to
For links 1.1, search the archives for a thread called Links Installation.

I give detail in there about how to move the .html files outside of cgi-bin if needed.

--mark


------------------
You can reach my by ICQ at UID# 8602162

Quote Reply
Re: Paths In reply to
Thats not quite the problem i'm having. When I click on 'Build' it builds it, but gives me this error:

Total Links: 1 Opening page: /links/index.html
CGI Error: No such file or directory
Message: unable to open home page: /links/index.html. Reason: No such file or directory

I know I don't have an index.html, but how should I go about making it? (the only index.html in the .zip was the admin one)
Quote Reply
Re: Paths In reply to
You have a path incorrect. That is only a partial path.

Go into links.cfg and define your full, absolute path.

--Mark


------------------
You can reach my by ICQ at UID# 8602162

Quote Reply
Re: Paths In reply to
This sounds like your paths may be incorrect. Check your links.cfg and make sure that your paths on your server and the URL locations match up. If your URL to links is http://www.yoursite.com/links/, then your path will need to be /your/path/links/.

I'd also check and make sure that the permissions are set correctly. That tends to be one of the biggest problems people make.
Quote Reply
Re: Paths In reply to
So If I set the paths correctly will it auto-create a index.html file for me? (I have no index.html in the /links/ dir, so it should say that!)

Should I just make my own index.html?

Thanks,

-Matt
Quote Reply
Re: Paths In reply to
Links will automatically generate the entire site when you execute the nph-build.cgi either through the shell (telnet) or through your web browser.

Links 1.x has a set of HTML files for the /admin/ directory, but Links 2.0 automatically generates all of its own HTML with the admin.cgi program.
Quote Reply
Re: Paths In reply to
I got it working! It was a combonation of paths being set wrong, me not CHMODing the /links dir 777 and not uploading as ASCII..

Thanks to everyone who helped me, i'll visit these forums often and try to answer questions if I can.

Thanks again,

-Matt