Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Zero108

Too many levels of symbolic links

Recommended Posts

Сменил пхп с 7.1.33 (alt) на 7.3.13 (alt). Сначала сайт некоторое время работает, но потом ошибка 504 при сбросе кеша в админке или 502 в публичной части. Лог забит такими сообщениями. Пытаюсь сбрасывать кеш скриптом, не помогает. Что нужно исправить?

Цитата

2020/06/09 13:17:14 [crit] 31314#31314: *131428 openat() "/var/www/user1/data/www/www.site.com/uploads/javascript_global/root_front.js.0fe79ee883eda34bb2eab3686401f179.js" failed (40: Too many levels of symbolic links), client: 47.8.163.130, server: site.com, request: "GET /uploads/javascript_global/root_front.js.0fe79ee883eda34bb2eab3686401f179.js?v=026d4e282a HTTP/1.1", host: "www.site.com", referrer: "https://www.site.com/blogs/entry/31224-video-021119-002635/"

Что странно, обратный переезд на старую версию пхп не помогает. В .htaccess следующее содержание: 

Цитата

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

## Begin - Expires caching
<IfModule mod_expires.c>

## This rule will create an ETag for files based only on the modification timestamp and their size. 
## Note: It may cause problems on your server and you may need to remove it
## FileETag MTime Size

## SetOutputFilter DEFLATE
## Header set Expires "max-age=29030400, public"
## Header unset ETag
## FileETag None

# Enable expiration control
ExpiresActive On

# Default expiration: 1 hour after request
ExpiresDefault "now plus 1 hour"

# CSS and JS expiration: 1 week after request
ExpiresByType text/css "now plus 1 week"
ExpiresByType application/javascript "now plus 1 week"
ExpiresByType application/x-javascript "now plus 1 week"

# Image files expiration: 1 month after request
ExpiresByType image/bmp "now plus 1 month" 
ExpiresByType image/gif "now plus 1 month"
ExpiresByType image/jpg "now plus 1 month"
ExpiresByType image/jpeg "now plus 1 month"
ExpiresByType image/jp2 "now plus 1 month"
ExpiresByType image/pipeg "now plus 1 month"
ExpiresByType image/png "now plus 1 month"
ExpiresByType image/svg+xml "now plus 1 month"
ExpiresByType image/tiff "now plus 1 month"
ExpiresByType image/vnd.microsoft.icon "now plus 1 month"
ExpiresByType image/x-icon "now plus 1 month"
ExpiresByType image/ico "now plus 1 month"
ExpiresByType image/icon "now plus 1 month"
ExpiresByType text/ico "now plus 1 month"
ExpiresByType application/ico "now plus 1 month"
ExpiresByType image/vnd.wap.wbmp "now plus 1 month"
ExpiresByType application/vnd.wap.wbxml "now plus 1 month"

# Other optimizations
ExpiresByType application/x-gzip "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"

</IfModule>
## End - Expires caching

 

Edited by Zero108

Share this post


Link to post

Убрал в nginx.conf для хоста строку disable_symlinks if_not_owner from=$root_path; как советуют в интернетах, не помогает.

Edited by Zero108

Share this post


Link to post

Убрал в глобальном nginx.conf disable_symlinks if_not_owner; - не помогает.

Share this post


Link to post

Еще подскажите, какую версию пхп можно поставить для 4.4.10? https://prnt.sc/swp8f4

Непонятно, должно ли работать на пхп 7.4.6 (alt).

Share this post


Link to post

Тему можно закрывать. Опять старые грабли: 

 

  • Upvote 1

Share this post


Link to post
09.06.2020 в 19:55, Zero108 сказал:

Еще подскажите, какую версию пхп можно поставить для 4.4.10? https://prnt.sc/swp8f4

Непонятно, должно ли работать на пхп 7.4.6 (alt).

PHP 7.4.4 MySQL 5.7.30

Всё ок работает.

 

https://hostpro.ua/blog/whats-new-in-php-7/

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...