Перейти к публикации
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Too many levels of symbolic links

Опубликовано:

Сменил пхп с 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

 

Изменено пользователем Zero108

Рекомендованные сообщения

Опубликовано:
  • Автор

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

Изменено пользователем Zero108

Опубликовано:
  • Автор

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

Опубликовано:
  • Автор

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

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

Опубликовано:
  • Автор

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

 

Создайте аккаунт или войдите в него для комментирования

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.