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

Moved servers from Unix to Linux

Quote Reply
Moved servers from Unix to Linux
I just moved servers from A unix to Linux platformbut the perl paths are the same.

I am now getting error message when i run cgi-bin/admin/admin.cgi

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@xxxxxxxx.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Quote Reply
Re: [Abusaki] Moved servers from Unix to Linux In reply to
First of all you need to find out if your on a Cobalt RAQ server, if so search these forums, you will have to modify your links 2.0 script to accomodate the server, the changes for this has been discussed before.

Secondly, 500 errors usually, but not all are down to wrong chmod settings, I posted a response the other day to someone else about a 500 error and it solved there problem. I will quote it below, its only a guide though, it may or may not work.

Quote:
For simplicity only. I do the following then make all the chmod changes at the end once everything is working.

Create a folder in your cgi-bin (or cgi whatever your cgi bin is called) call the new folder links (chmod 755)
In this folder upload the contents of the cgi-bin folder which you have just downloaded in ASCII not BINARY.

For example the structure should look like this

CGI BIN (Folder chmod 755)
-- Links (Folder chmod 755)
----- Admin (Folder chmod 755)
----- add, jump, modify, rate, search, subscribe (all chmod 755)

In your admin folder you will have the following

Admin (Folder chmod 755)
--- Back up (Folder chmod 777) also chmod content files to 777
--- Data (Folder chmod 777) also chmod content files to 777
--- Templates (Folder chmod 777) also chmod content files to 777
--- outside these 3 folders you have the rest of the scripts (chmod all cgi files to 755 and everything else to 777 e.g - admin.cgi, admin_html.pl, category.def, db.pl, db_utils.pl, links.cfg, links.def, mailer.pm, nph_build.cgi, nph_email.cgi, nph_verify.cgi, site_html.pl, Site_html_templates.pl, Template.pm

Ok, after all that, in your html folder out side your cgi bin create a folder called links, create a blank index.html page and upload this into your new folder along with .css file etc. Also in this folder create several other folders called, Images, New, Cool, Ratings, Detailed.

Links 2.0 does a lot of this for you automatically, like creating blank inde files and new, cool, rating, detailed folders etc, but to save you from any problems when you come to 'build all, in your admin menu later its easier just to create them. (Thats why the above part is not mentioned in the readme instructions as links 2.0 should do this for you.

Once all files are correctly uploaded etc etc. you must now edit your links.cfg in your cgi-bin/links/admin/ directory file to correspond to all your paths etc.

After all that, goto http://www.yoursite.com/cgi-bin/links/admin.admin.cgi


Please note all the Chmod settings listed above are for test purposes only, once you have the script running bug free, then re-read the read me provided with your download and change the settings to their reccomendations, also password secure your admin directory to prevent any foul play.

Stu2000

- Top 100 forums / GT Links 2.0 websites -