4 Replies - 766 Views - Last Post: 21 June 2012 - 05:34 AM

#1 Kersh86  Icon User is offline

  • New D.I.C Head

Reputation: 5
  • View blog
  • Posts: 45
  • Joined: 11-August 11

Relay Ajax File Manager - upload problem

Posted 13 June 2012 - 09:32 AM

Hi peeps

im trying to add the relay file manager onto the site im building and i got most of it working

ie
download, users, etc...

but for the upload it calls upload.pl from javascript and all that does is wanna download the upload.pl file from site and not add the files i wanna add, anybody used relay or know of a way to help me through this?

if you want more info let me know but prob wont be able to reply till tomoz now around 09:00 GMT +0

cheers

Is This A Good Question/Topic? 0
  • +

Replies To: Relay Ajax File Manager - upload problem

#2 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3039
  • View blog
  • Posts: 4,554
  • Joined: 08-June 10

Re: Relay Ajax File Manager - upload problem

Posted 13 June 2012 - 09:47 AM

Hey.

Looks like your file manager requires your server to be able to execute Perl scripts, but yours doesn't seem to be able to do that. So, rather than process the Perl script like it's supposed to, it just sends it to you.

You should go over the installation instructions again. You probably missed the part about adding the mod_perl2 extension to Apache, or the part where you add a CGI handler for the "pl" extension.
Was This Post Helpful? 1
  • +
  • -

#3 Kersh86  Icon User is offline

  • New D.I.C Head

Reputation: 5
  • View blog
  • Posts: 45
  • Joined: 11-August 11

Re: Relay Ajax File Manager - upload problem

Posted 14 June 2012 - 12:42 AM

I looked into it and it seems that the host i use (LCN.com) does use perl scripts, unfourtunatly the file manager doesnt have much documentation to get it up and running.
Was This Post Helpful? 0
  • +
  • -

#4 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3039
  • View blog
  • Posts: 4,554
  • Joined: 08-June 10

Re: Relay Ajax File Manager - upload problem

Posted 14 June 2012 - 04:24 AM

Well, in the README.TXT file they do tell you how to enable Perl scripts for a directory:
*** CONFIGURING APACHE2 ***

In the vhost container for the site which will contain relay, you will need
to grant the relay folder +ExecCGI and AllowOverride All.

<Directory "/path/to/relay/">
   AllowOverride All
   Options +ExecCGI
   AddHandler cgi-script cgi pl
</Directory>

Remember to reload Apache after making the changes to your vhost.



If your host doesn't allow you access to the required config files, you could try dropping the AddHandler line by itself into a .htaccess file in the root of your project.
Was This Post Helpful? 1
  • +
  • -

#5 Kersh86  Icon User is offline

  • New D.I.C Head

Reputation: 5
  • View blog
  • Posts: 45
  • Joined: 11-August 11

Re: Relay Ajax File Manager - upload problem

Posted 21 June 2012 - 05:34 AM

View PostAtli, on 14 June 2012 - 04:24 AM, said:

If your host doesn't allow you access to the required config files, you could try dropping the AddHandler line by itself into a .htaccess file in the root of your project.


tried your way atli and although it doesn't try to download the .pl file no more i just get the 404 not found in error console even tho it is pointing at the correct directory,

error console:


8Refused to set unsafe header "Connection"
Failed to load resource: the server responded with a status of 404 (Not Found) my.site/test/ftp2/relay/upload.pl?756804956525ca0239938492b3db14dc
75Refused to set unsafe header "Connection"

This post has been edited by Kersh86: 21 June 2012 - 05:48 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1