Komunikat o błędzie

  • User warning: The following module is missing from the file system: bueditor. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: field_validation_extras. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: field_validation_ui. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: geshifield. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: geshifilter. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: google_plusone. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: linkit. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: property_validation. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: taxonomy_menu. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: tweetbutton. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: wysiwyg. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • User warning: The following module is missing from the file system: field_validation. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1181 of /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/bootstrap.inc).
  • Notice: Undefined index: execute_responsive_theme w drupal_theme_initialize() (linia 100 z /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/theme.inc).
  • Notice: Trying to get property 'filename' of non-object w _drupal_theme_initialize() (linia 146 z /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/theme.inc).
  • Notice: Trying to get property 'name' of non-object w _theme_load_registry() (linia 335 z /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/theme.inc).
  • Notice: Undefined index: execute_responsive_theme w theme_get_setting() (linia 1440 z /usr/home/tomaszroot/domains/blog.tomlot.eu/public_html/includes/theme.inc).

Serwer

W konsoli podajesz
[bash]apt install libmemcached-tools php-memcached memcached libmemcached-dev
cd /usr/local/src
wget https://github.com/php-memcached-dev/php-memcached/archive/v3.1.5.tar.gz
tar -xzvf v3.1.5.tar.gz
cd php-memcached
/usr/local/php72/bin/phpize
./configure --with-php-config=/usr/local/php72/bin/php-config
make
make install
[/bash]
Wynik końcowy
[code]Installing shared extensions: /usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718/[/code]
Sprawdź plik z konfiguracją PHP

Wiedza: 
Praktyczna

W pliku
[code].htaccess[/code]
podajesz
[vim]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.tomlot.eu(.*) [NC]
RewriteRule ^(.*)$ https://tomlot.eu/$1 [R=301,L]

RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L][/vim]

Zastosowanie: 
Przekierowanie z http na https bez www w Apache bez podawania domeny
Wiedza: 
Praktyczna

W konsoli podajesz
[bash]cd /root/ %% mkdir strace && cd stace[/bash]
[bash]ps ax | grep apache | grep -v grep | awk '{ print "strace -fttT -s500 -o strace."$1".log -p "$1"&" }' | sh[/bash]
[bash]ps ax | grep mysqld | grep -v grep | awk '{ print "strace -fttT -s500 -o strace."$1".log -p "$1"&" }' | sh[/bash]
Wywołaj powolną stronę (nie odświeżaj strony) podają adres strony w oknie URL.
Ucisz proces
[bash]killall -9 strace[/bash]
Wyniki dostępne w katalogu [bash]/root/strace/[/bash]

Zastosowanie: 
Weryfikacja powolnie ładującej się strony
Wiedza: 
Praktyczna

W pliku [code]home/juzek/tomlot.eu/wp-admin/.htaccess [/code] podajesz
[code]
deny from all
# whitelist IP address
# allow from xx.xx.xx.xxx

[/code]

Zastosowanie: 
Zabezpieczenie, wyłączenie panelu administraycjengo wp-admin WordPres przed uwierzytelnianiem z błędem 500
Wiedza: 
Praktyczna

W konsoli podajesz
[code]opendkim-genkey -t -s tomloteu -d tomlot.eu[/code]
Zawartość pliku [code]tomloteu.txt[/code] wprowadzasz w zawartości rekordu TXT
[code]v=DKIM1;k=rsa;t=y;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC3Cy+wB1CsQigVrj6izIU2YSdnOYAv+e7b3NHlIvsq34Iywd93c9rOTb8UrENog140RpPCLcvTHoN59wMJDHAv4QBhonbZDVQN3JSSqxjtiSZHOFDL4YPCCw5+9OJBfPt0E2jgtYRTiHyTHNDc2JTpYv/760o/QzNCJ/d51pfCkwIDAQAB[/code]

Zastosowanie: 
Dodanie rekordu DKIM
Wiedza: 
Praktyczna

W pliku [code].htaccess[/code] podajesz

[vim]
RewriteCond %{THE_REQUEST} ^.*/index\.php
RewriteRule ^(.*)index.php$ /$1 [R=301,L][/vim]

Zastosowanie: 
Przekierowanie strony index.php na stronę główną w .htaccess
Wiedza: 
Praktyczna

Komplikacja

Strony zaplecza PrestaShop otwierają się z błędem [code]
Oops! An Error Occurred
The server returned a "500 Internal Server Error".
Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.
[/code]

Rozwiązanie

Zmieć wersję interpretera PHP na wersję >= 5.6

Zastosowanie: 
The server returned a "500 Internal Server Error" zmiana wersji PHP
Wiedza: 
Praktyczna

W konsoli podajesz
[bash]strace -tf -o strace.txt /usr/bin/php index.php [/bash]

Zastosowanie: 
Diagnoza powolnie ładującej się strony w strace
Wiedza: 
Praktyczna

W katalogu głównym utwórz plik [code].user.ini[/code] z zawartością
[ini]max_input_vars=5555[/ini]

Zastosowanie: 
Zwiększenie restrykcji PHP max_input_vars w AZ
Wiedza: 
Praktyczna

W pliku [code]/etc/dovecot/dovecot.conf[/code] dodaj linię
[vim]
namespace inbox {
inbox = yes
}
[/vim]
W konsoli podajesz
[bash]service dovecot restart[/bash]

Zastosowanie: 
Błąd Błąd połączenia z serwerem! podczas uwierzytelniania w Roundcube w VestaCP
Wiedza: 
Praktyczna

Strony

Subskrybuj RSS - Serwer