Hello all,
I have downloaded the current version of Links2.0 as of March 21 2004. I have installed the software on a Linux Server (gentoo) with Apache 2.0 running on it. I have included a partial dump of both the links.cfg and apache2.conf files below. I have not added security yet to the admin folder.
I can run the Admin.cgi script, however if I try to create a category as per the readme.txt file, it get the following error: (after adding "use CGI::Carp qw(fatalsToBrowser);" to the admin.cgi script as suggested in the forums).
Error Message: error in get_defaults. unable to open id file: /usr/links/cgi-bin/admin/data/categoryid.txt
Reason: Permision denid
Script Location : /usr/links/cgi-bin/admin/admin.cgi
Perl Version: 5.008
The location it is looking for the file is correct. Now the instructions indicate to change the permisions of all the files in the data directory to chmod 666, however there are no files in this directory. I have done "chmod -R 666 data" from the admin directory, I have also tried creating empty files (touch categoryid.txt, chmod 666 categoryid.txt), but that also has not worked. Is the program supposed to create the data files, or is there another download I need that has the data files?
Thanks
madmagi
<<snip partial view of links.cfg>>
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/usr/links/cgi-bin/admin";
$db_dir_url = "http://genserver.inet/links/admin";
# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://genserver.inet/links/cgi-bin";
# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/usr/links/pages";
$build_root_url = "http://genserver.inet/links/pages";
# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_root_path/New";
$build_new_url = "$build_root_url/New";
# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_root_path/Cool";
$build_cool_url = "$build_root_url/Cool";
# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/Ratings";
$build_ratings_url = "$build_root_url/Ratings";
<< snip partial view of apache2.conf >>
Alias /links/admin/ /usr/links/cgi-bin/admin/
<Directory "/usr/links/cgi-bin/admin/">
Options ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
Alias /links/cgi-bin/ /usr/links/cgi-bin/
<Directory "/usr/links/cgi-bin/">
Options ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
Alias /links/ /usr/links/pages/
<Directory "/usr/links/pages/">
Options none
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
I have downloaded the current version of Links2.0 as of March 21 2004. I have installed the software on a Linux Server (gentoo) with Apache 2.0 running on it. I have included a partial dump of both the links.cfg and apache2.conf files below. I have not added security yet to the admin folder.
I can run the Admin.cgi script, however if I try to create a category as per the readme.txt file, it get the following error: (after adding "use CGI::Carp qw(fatalsToBrowser);" to the admin.cgi script as suggested in the forums).
Error Message: error in get_defaults. unable to open id file: /usr/links/cgi-bin/admin/data/categoryid.txt
Reason: Permision denid
Script Location : /usr/links/cgi-bin/admin/admin.cgi
Perl Version: 5.008
The location it is looking for the file is correct. Now the instructions indicate to change the permisions of all the files in the data directory to chmod 666, however there are no files in this directory. I have done "chmod -R 666 data" from the admin directory, I have also tried creating empty files (touch categoryid.txt, chmod 666 categoryid.txt), but that also has not worked. Is the program supposed to create the data files, or is there another download I need that has the data files?
Thanks
madmagi
<<snip partial view of links.cfg>>
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/usr/links/cgi-bin/admin";
$db_dir_url = "http://genserver.inet/links/admin";
# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://genserver.inet/links/cgi-bin";
# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/usr/links/pages";
$build_root_url = "http://genserver.inet/links/pages";
# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_root_path/New";
$build_new_url = "$build_root_url/New";
# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_root_path/Cool";
$build_cool_url = "$build_root_url/Cool";
# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/Ratings";
$build_ratings_url = "$build_root_url/Ratings";
<< snip partial view of apache2.conf >>
Alias /links/admin/ /usr/links/cgi-bin/admin/
<Directory "/usr/links/cgi-bin/admin/">
Options ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
Alias /links/cgi-bin/ /usr/links/cgi-bin/
<Directory "/usr/links/cgi-bin/">
Options ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
Alias /links/ /usr/links/pages/
<Directory "/usr/links/pages/">
Options none
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>