How to configure elfinder on IdeaWebServer with '/' root only?

Added by Remigiusz Waszkiewicz 7 months ago

Hi!

It's with IdeaWebServer hosting.
Phpinfo of this server is here: http://home.pl/files/phpinfo.php5
I was created an adaptation for my CMS with elrte and elfinder.
It's working ok on my localhost.
I had no any problems on linux servers, where I had a long path to the root, something like this:
'/home/yoursite/domains/mysite.pl/public_html/upload',
when I had 'upload' folder for my images. Works perfect! Thank you!

On my new hosting I have a very short path to the root: it's '/' only.
So, my connector.php file is with:

$opts = array(
'root' => '/upload/', // path to root directory
'URL' => 'http://mysite.pl/upload/', // directory URL

and it's only one hosting when elfinder is not working.

Elrte works - I can write and save, but when I start with elfinder - empty elfinder window is pop up, loading, loading, loading... after 4,5 minutes I can see "invalid backend configuration"... and nothing.

I can not track this by Firebug, because Firefox is not working on this hosting - when I try to do something in my admin backend, I'm logout immediately (php ini and cookies - session timeout and timestamps problem and I can not find a problem in phpinfo there)- so I must use Lunascape browser with Webkit engine to manage my site (and there is no firebug), but hosting restriction are not working there, and everything works ok but without elfinder.

Can you help me with this? I was trying all options: './upload', '../upload', './upload/', '../upload/', '/upload', - it's not working.
Any idea?
Thank you.

Regards


Replies (3)

RE: How to configure elfinder on IdeaWebServer with '/' root only? - Added by Troex Nevelin 6 months ago

I don't know what is IdeaWebServer, does it run UNIX or Win? If you have '/' as a homedir/root than webserver is chrooted which is normal, that should not cause the problem.

You can just try to put . (dot) as a root and see if it works, mind that if you have lots of files elFinder 1.x can fail to loaded it in PHP execution time.

Also see the connector output (JSON) using FireBug in FireFox or Inspector in Chrome/Safari - maybe you will find the reason.

RE: How to configure elfinder on IdeaWebServer with '/' root only? - Added by Remigiusz Waszkiewicz 6 months ago

Thank you for your answer.
I had the same issue: empty "target" in Firebug.
It works fine locally on my localhost, and not working on my server.
I was founded the solution here:
http://elrte.org/redmine/boards/2/topics/3029?r=3066#message-3066

"So there are two solutions:
1. in elFinder.class.php, comment line 1802

// $test = exec('bzip2 --version', $o, $c);
$c = 1; // added this line

If you know that bzip2 is installed and want to use it add $c = 0;, else add $c = 1;
2. Set archivers connector option to correct value of your system, right now I don't have the data and have to check this first.
P.S.: This bug is somehow floating and depends on certain PHP and webserver configuration, so better to workaround it."

Is it my server hosting problem or unknown elFinder problem?
Regards

RE: How to configure elfinder on IdeaWebServer with '/' root only? - Added by Troex Nevelin 6 months ago

Can you please post exact version of bzip2, as I know some older versions can cause this problem, and similar problem when bzip2 does not close STDIN. I've seen this bug on older CentOS/RHEL servers. Looks like they use some patches on bzip2 which cause this problem.

elFinder 2.x does not have this problem because using different mechanism

(1-3/3)