Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Can Links 2.0 be installed on the main page?

Quote Reply
Can Links 2.0 be installed on the main page?
Hello,
I am real interest in Links 2.0 but I have been unable to find an answer to one question prior to me installing this script. Can I install it on the root directory say http://www.xxx.com or does it have to reside in a subdirectory like http://www.xxx.com/links. I do not care about were the script resides but I would like it to be on the main page like http://www.japanreference.com. Is this possible without any concerns...

Thanks for allowing a "newbie" to post...

DataDork

Thanks in advance....
-James

http://www.datadork.com
Quote Reply
Re: Can Links 2.0 be installed on the main page? In reply to
Yes just set up links.cfg to build the pages in your root.

$build_root_url = "http://www.yourdomain.com";

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: Can Links 2.0 be installed on the main page? In reply to
Paul is correct but you may have the chmod the root public HTML directory 777 (drwxrwxrwx) so that Links can create the file there (if it doesn't exist) when you rebuild. But not a good idea. Instead upload a blank page there with the Links homepage name, and chmod 666 (rw-rw-rw-). However, if you already have a page with the name there, then just chmod 666.


Dan Cool

LotusLand
Vancouver, BC, Canada
Top Ranked City in World for Quality of Life
Quote Reply
Re: Can Links 2.0 be installed on the main page? In reply to
Paul,
Can you explain further about your last statement and how to accomplish my goal on having it on the root directory, like japanreference.com. My site is empty and I plan to build it around links. Any ideas or considerations for someone starting from blank. Also, I am interested in any "regular" programmers possibly doing some of the harder work. Thanks in advance and for everyones replies


Thanks in advance....
-James

http://www.datadork.com
Quote Reply
Re: Can Links 2.0 be installed on the main page? In reply to
Basically, what Dan is saying is that if you do want to have the pages built in the main root directory, you may have to CHMOD it to 777. Some servers only let you go down to the files directory, and no further; whilst others let you go down to say www, httpdocs, logs etc. In the case of being able to access the folders below the root folder it is quite possible to make it build the pages on the sites root.

If you still don't uinderstand, don't be afraid to ask Smile, I will try and expand on what I am trying to say!

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: Can Links 2.0 be installed on the main page? In reply to
In Reply To:
Can you explain further about your last statement and how to accomplish my goal on having it on the root directory, like japanreference.com. My site is empty and I plan to build it around links. Any ideas or considerations for someone starting from blank. Also, I am interested in any "regular" programmers possibly doing some of the harder work. Thanks in advance and for everyones replies
In links.cfg you will need to have $build_root_url and $build_root_path set to your virtual hosts root directory for example:

$build_root_url = "http://www.yourdomain.com";
$build_root_path = "/home/site5/www.yourdomain.com/web";

(Just examples - the path/url will obviously be different for you).

So once you've done that, all you need to do is add a Category and Link from the admin area (or you get an error when you build), and click "Build All" - that will build all the pages in your root directory so that when someone goes to http://www.yourdomain.com, they will be taken to the main Link2 page with all the categories on it.

If you get a permission denied error then as Dan said you can create a blank index.html file in your root directory and chmod it to 666 (or 644 may work).

Let us know if you need us to answer any more qn's.

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/