File Server (remote direct)

naurissteins5013

New Member
YetiShare User
Apr 17, 2015
20
0
1
Hello,

I'm trying to add a remote direct File server and can't understand how to fix the following error:



Does anyone can explain me what I am doing wrong?

Thanks!
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
It looks like you have a forward slash on the end of the file server url (which results in a double forward slash in the test url above). Try removing this from the file server settings and try the test again.
 

naurissteins5013

New Member
YetiShare User
Apr 17, 2015
20
0
1
As you know after removing slash from "Site Path:" it returns back again after saving. To remove double slash we need to add a new path, i added new "/f" path, but anyway same error.

Code:
- Setting up server paths in database... Could not get access to the server paths, no response. Url: http://fs1.mydaomain.com/f/admin/ajax/server_manage_get_server_detail.ajax.php?csaKey1=d83d71d7a8999efc46ad48de22602c0680ce354b6028f317a5040ab7dc9f8318&csaKey2=8b383f68b627cb50429aa298d10062418c92da49f823d21afcaf3644b4b68643
This happens on all my tested servers.

Thanks!
 

theprogeekftw4717

New Member
Feb 3, 2015
88
0
0
Hello,

Please make sure that you're having CURL installed on all of your servers and try again.
This could also be an issue with your Apache/NGiNX/PHP configuration which drops connections from your main server to your FS.
So, can you provide your configuration here so we can take a look?
Regards.
 

naurissteins5013

New Member
YetiShare User
Apr 17, 2015
20
0
1
Hello,

Thanks for reply.

CURL is already installed on both servers.
Code:
Package matching php-common-5.3.3-40.el6_6.x86_64 already installed. Checking for update.
File server config file
Code:
<?php

/* main configuration file for script */
define("_CONFIG_SITE_HOST_URL",		"fs1.doamin.com");
define("_CONFIG_SITE_FULL_URL",		"fs1.doamin.com/f");

/* database connection details */
define("_CONFIG_DB_HOST",		"domain.com");
define("_CONFIG_DB_NAME", "db");    /* database name */
define("_CONFIG_DB_USER", "user");    /* database username */
define("_CONFIG_DB_PASS", "pass");

/* set these to the main site host if you're using direct web server uploads/downloads to remote servers */
define("_CONFIG_CORE_SITE_HOST_URL",		"domain.com");
define("_CONFIG_CORE_SITE_FULL_URL",		"domain.com");

define("_CONFIG_SCRIPT_VERSION", "4.0.1");    /* script version */

/* show database degug information on fail */
define("_CONFIG_DB_DEBUG", true);    /* this will display debug information when something fails in the DB - leave this as true if you're not sure */

/* server paths */
define("_CONFIG_SCRIPT_ROOT",           dirname(__FILE__));
define("_CONFIG_FILE_STORAGE_PATH",     _CONFIG_SCRIPT_ROOT . '/files/');     /* location on your server to store file uploads */

/* the url of the domain to download files from, only change if you plan on using a different domain to link to your files */
define("_CONFIG_SITE_FILE_DOMAIN",      _CONFIG_SITE_FULL_URL);  /* url without the http:// and no trailing forward slash */

/* which protcol to use, default is http */
define("_CONFIG_SITE_PROTOCOL", "http");

/* toggle demo mode */
define("_CONFIG_DEMO_MODE", false);    /* always leave this as false */
File server config
http://img5.yehpic.com/ScreenShot2015-04-19at14.39.10.th.png

Im running VestaCP/Apache and both servers.

Thank You!
 

naurissteins5013

New Member
YetiShare User
Apr 17, 2015
20
0
1
If i add wrong path, it show me that everything is fine with mod rewrite:



If i add right path, it show me error:



impossible to add file server.