Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 10-27-2008 10:04:36

cfunderburg
Member
Registered: 12-05-2006
Posts: 91

Unable to upload cp-app.cgi or cp-admin.cgi

I've downloaded both files in ASCII mode using both SmartFTP and CuteFTP. I rename the original files on the web server with a .bak extension and then upload the files back to the server in ASCII mode. I set the permissions to 755. I get a 500 error when trying to load either page. The error log simply shows "premature end of script". Any idea what's going on here? I've downloaded these files before, edited them, and uploaded them with no problem.

Offline

 

#2 10-27-2008 10:57:42

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Unable to upload cp-app.cgi or cp-admin.cgi

Have you uploaded/downloaded any of the tables?  Moving a CSV file in ASCII mode can cause that problem.


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#3 10-27-2008 11:48:18

cfunderburg
Member
Registered: 12-05-2006
Posts: 91

Re: Unable to upload cp-app.cgi or cp-admin.cgi

No. All of my tables are SQL. If I just download, and re-upload the file, without opening it, it causes the 500 error. very weird.

Offline

 

#4 10-27-2008 16:31:13

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Unable to upload cp-app.cgi or cp-admin.cgi

Some tables run in CSV, even when you are using MySQL (some tables cannot run in alternate database modes and always run CSV).  But if your file is being corrupted just by downloading and uploading, then the only thing left to conclude is that your FTP program(s) must not be respecting your selection of ASCII mode.


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#5 10-28-2008 09:00:35

cfunderburg
Member
Registered: 12-05-2006
Posts: 91

Re: Unable to upload cp-app.cgi or cp-admin.cgi

That's what I was thinking as well, but I tried 2 different FTP programs. Also, when you download in Binary, the files gets squished when you open it in notepad (no eol or carrage returns).

Offline

 

#6 10-28-2008 21:22:35

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Unable to upload cp-app.cgi or cp-admin.cgi

I've had some pretty bad experiences with Notepad... it doesn't seem to respect line breaks properly in lots of cases.  I prefer a text editor called EditPlus - it's not free, but it is inexpensive and works much better for programming work.


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#7 01-02-2009 13:59:10

cfunderburg
Member
Registered: 12-05-2006
Posts: 91

Re: Unable to upload cp-app.cgi or cp-admin.cgi

for anyone interested, I found the fix for this on my site. I had to chown (change owner) for the file once it was uploaded to match the old owner (psacln). Once uploaded, the owner became root, and for some reason, that didn't work.

Offline

 

Board footer