Y4 - file list LOADING... and users cant login

dawidleon4174

New Member
YetiShare User
Aug 9, 2014
5
0
0
I have some problems with Yetishare v4. When some users try login its show error :
Code:
An error accoured reaching the site to login, please try again later. Actual response message: Not found
And when im login in admin account and try see my file list its stoped in LOADING... :|
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
This is a NGINX rewrite rule issue. I recently updated the rules supplied with version 4. Please redownload the script archive and look at the file ___NGINX_RULES.txt
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
They should fix it. Please post the rules you're using from your nginx config?
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
No problem, thanks for reporting back the resolution.
 

webbycloud5534

New Member
YetiShare User
Wurlie User
Nov 13, 2015
10
0
0
Hi, emergency! my customers are getting:

An error accoured reaching the site to login, please try again later. Actual response message: error

I'm using Apache, FCGId , mod_rewrite is ON! What else am I missing?? Should I not use FCGId ?
 

webbycloud5534

New Member
YetiShare User
Wurlie User
Nov 13, 2015
10
0
0
Fixed: by checking the values and increasing them on SQL and PHP. Also look into the error in the APACHE ERROR log on your server.

Thanks adam!
 

zigma4000

Member
YetiShare User
Wurlie User
Jun 9, 2013
39
0
6
UAE
www.uploadman.com
well , I have same issue and all nginx rules are applied. download works fine, admin login is fine but users can't login and getting exactly same error message.
 

zigma4000

Member
YetiShare User
Wurlie User
Jun 9, 2013
39
0
6
UAE
www.uploadman.com
adam said:
What are the Nginx rules you're using?
rules are correct as it written in nginx rule , I did an upgrade and now I have this issue. some one here in forum told me to use these codes :

f (!-f $request_filename){
set $rule_0 1$rule_0;
}
if (!-d $request_filename){
set $rule_0 2$rule_0;
}
if ($rule_0 = "21"){
rewrite ^/(.*)$ /index.php?_page_url=$1;
}
if ($http_host ~ "^(www.)?domain.com$"){
set $rule_0 1$rule_0;
}
if ($rule_0 = "1"){
rewrite ^/$ http://domain.com/index.html permanent;
}

instead of domain i put my domain name , its working now but no speed limit!
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Its your nginx rules, ensure they match the ones we supply.
 

p30linknet6405

New Member
YetiShare User
Jan 20, 2017
13
1
0
i have this problem too pls help me
we added this rules to nginx ...but i cant login
location / {
if (!-e $request_filename) {
rewrite ^/(.*) /index.php?_page_url=$1 last;
}
}
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Hi,

Please post the full rules you've added to nginx here.

Thanks,
Adam.
 

p30linknet6405

New Member
YetiShare User
Jan 20, 2017
13
1
0
its nginx standalone+ php-fpm

i added this rules

location / {
if (!-e $request_filename) {
rewrite ^/(.*) /index.php?_page_url=$1 last;
}
}

location /files/ {
internal;
}

# these locations would be hidden by .htaccess normally
location /core/logs/ {
deny all;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|woff)$ {
expires max;
log_not_found off;
}


********************************************************and this is server respond


server
{
location / {
if (!-e $request_filename) {
rewrite ^/(.*) /index.php?_page_url=$1 last;
}
}
location /files/ {
internal;
}
# these locations would be hidden by .htaccess normally
location /core/logs/ {
deny all;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|woff)$ {
expires max;
log_not_found off;
}
listen xxx.xxx.x.xx :80;
server_name xxxxx.xxx www.xxxxx.xxx ;
access_log /var/log/nginx/domains/xxxxx.xxx.log;
access_log /var/log/nginx/domains/xxxxx.xxx.bytes;
error_log /var/log/nginx/domains/xxxx.xxx.error.log;
root /home/admin/domains/xxxx.xxx/public_html;
index index.php index.html index.htm;
include /usr/local/directadmin/data/users/admin/nginx_php.conf;
include /etc/nginx/webapps.conf;
}
 

p30linknet6405

New Member
YetiShare User
Jan 20, 2017
13
1
0
adam said:
Hi,

Please post the full rules you've added to nginx here.

Thanks,
Adam.
if i add this rules...it will give me a html download link Instead of home page , that means when i type my website address , i will see a download link ! not home page

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$ {
if (!-e $request_filename) { rewrite ^/(.*) /index.php?_page_url=$1 last; }
}

location / {
if (!-e $request_filename) {
rewrite ^/(.*) /index.php?_page_url=$1 last;
}
}

location /files/ {
internal;
}

# these locations would be hidden by .htaccess normally
location /core/logs/ {
deny all;
}
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Hi,

They aren't the full rules we supply. You're missing the parts that tell nginx to use php fpm in the location php.

Please check the rules again that we supply, you should see the fpm part.
 

p30linknet6405

New Member
YetiShare User
Jan 20, 2017
13
1
0
adam said:
Hi,

They aren't the full rules we supply. You're missing the parts that tell nginx to use php fpm in the location php.

Please check the rules again that we supply, you should see the fpm part.

pls give me the full rules for php-fpm 5.6
i have direct admin ...so i will put them in Custom HTTPD Configurations
so give me the code to put it in Custom HTTPD Configurations
this is your rules>>>> i cant see fpm part ! where is it?

Code:
If you're using NGINX as your webserver, use the rewrite rules below instead of .htaccess.

These will need adding to /etc/nginx/sites-available/default or wherever this file is located on your nginx install.

#######################################################################
# START NGINX RULES
#######################################################################
    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    location ~ \.php$ {
        if (!-e $request_filename) { rewrite ^/(.*) /index.php?_page_url=$1 last; }
    }

    location / {
		if (!-e $request_filename) {
			rewrite ^/(.*) /index.php?_page_url=$1 last;
		}
    }

    location /files/ {
        internal;
    }

    # these locations would be hidden by .htaccess normally
    location /core/logs/ {
        deny all;
    }
#######################################################################
# END NGINX RULES
#######################################################################


#######################################################################
# Full /etc/nginx/sites-available/default file example below:
#######################################################################
server {
    listen       80;
    server_name  localhost; # change this for your server
    root /usr/share/nginx/html;
    index index.php;
    client_max_body_size 5G;

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    location ~ \.php$ {
        if (!-e $request_filename) { rewrite ^/(.*) /index.php?_page_url=$1 last; }
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME   $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }

    location / {
		if (!-e $request_filename) {
			rewrite ^/(.*) /index.php?_page_url=$1 last;
		}
    }

    location /files/ {
        internal;
    }

    # these locations would be hidden by .htaccess normally
    location /core/logs/ {
        deny all;
    }

    location ~* "/\.(htaccess|htpasswd)$" {
        deny    all;
        return  404;
    }
}
 
  • Like
Reactions: traien