Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Moved server now error 500

Quote Reply
Moved server now error 500
Hi,
I have just changed to a new server and I copied all files over exactly as before. I have gone through and put permissions as in instructions. However nph-build.cgi (755) and nph-verify.cgi (755) will not run and will only show - error 500 internal server error. What is strange is that admin.cgi (755) works fine.

I have double checked links.cfg and the settings are correct.

I have changed the setting for links.cfg to the full address
/homepages/7/d75710756/htdocs/directory/cgi-bin/directory/admin/links.cfg in nph-build.cgi in case this was the problem, however admin.cgi works fine with just links.cfg .

I also renamed nph-cgi to nb.cgi but still give error 500

Does anyone have any idea what else I can check?

Thanks in advance.

Regards,
Robin

Last edited by:

robinantill: Dec 9, 2004, 8:29 AM
Quote Reply
Re: [robinantill] Moved server now error 500 In reply to
Hi,

In the nph-*.cgi scripts, you need to find;

$NPH++;

...and comment it out, like so;

# $NPH++;

That should do it :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Moved server now error 500 In reply to
Hi Andy,
Thanks for that suggestion. I have changed all the $NPH++; to # $NPH++; but I still have the same error 500. Any other ideas?
Regards,
Robin
Quote Reply
Re: [robinantill] Moved server now error 500 In reply to
Does it urn ok via SSH/Telnet?

cd /path/to/admin/folder
perl nph-build.cgi

?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Moved server now error 500 In reply to
Hi Andy,
I did that and I got the following errors;
error including libraries. please see attached image for full desciption.

Path to headfoot.ssi is correct http://www.gardenbuildings-direct.co.uk/ssi/pathtest.pl

However, I have found the problem and it was a typing error in site_html.pl where I left a space in the required path to headfoot.ssi

" /homepages/7/d75710756/htdocs/directory/ssi/headfoot.ssi"; # Change this to full path to headfoot.ssi if you have problems.

and should have been

"/homepages/7/d75710756/htdocs/directory/ssi/headfoot.ssi"; # Change this to full path to headfoot.ssi if you have problems.

I was not expecting the problem to be in a different file so I have leant something here.
Thanks for your help.
Regards,
Robin
Quote Reply
Re: [robinantill] Moved server now error 500 In reply to
No problem. Glad its working Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!