Convert "Western European" encoding to UTF-8 (from ISO-8859-1 / Windows-1252):
$my_detect_encoding = mb_detect_encoding($content, mb_detect_order(), false);
if( $my_detect_encoding != 'UTF-8'){
$content= iconv('ISO-8859-1', 'UTF-8//TRANSLIT//IGNORE', $content);
}
Problem:
Timezone of Server/PHP/Drupal : Europe/Germany
Datetime value converted automatically to UTC + 120 Minutes (Europe/Germany).
Solution:
Convert Datetime to UTC before saving node.
PHP Code (modules/custom/my_module/src/Controller/MyController1.php):
CSS:
word-break: break-word;
overflow-wrap: break-word;
hyphenate-limit-chars: 15 5 5;Problem:
Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException: in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 115
Solution
Give DB User File permission:
mysqldump --user=MyDBUser --password --tab=/tmp/my_export_dir MyDBName
Install sysbench:
apt-get install sysbench
CPU benchmarking (single-threaded / all cores):
sysbench cpu run
sysbench --threads="$(nproc)" cpu run
Problem:
Fatal error: Composer detected issues in your platform:
Your Composer dependencies require a PHP version ">= 8.2.0". In /etc/mysql/mariadb.conf.d/50-server.cnf
[mysqld]
#my custom changes
innodb_buffer_pool_size = 8G
query_cache_size=256M
Solution
# plesk bin admin --set-password -passwd 'NewPassword123'
Neueste Kommentare
Wildcard
Let’s Encrypt will only accept a wildcard via DNS challenge.
If your Plesk instance can’t create the _acme-challenge.example.com TXT (external DNS), the extension can’t complete validation and will show no success.
Same problem
Warning: Undefined array key "url" in Drupal\Core\Asset\JsCollectionOptimizerLazy->optimizeGroup()set-timezone Europe/Berlin
sudo timedatectl set-timezone Europe/BerlinTry this:1. Go to Tools &…
Try this:
Alternative (without warnings like "no crontab for user")
Alternative (without warnings like "no crontab for dovecot") to see all tasks:
php 8.3 apcu
php 8.3 apcu failed
über Plesk hat es geklappt.
phpize failed error?
install:
# sudo apt install php-devphpize
# sudo apt install…
phpize
# sudo apt install php-devdetails
Problem:
/opt/plesk/php/8.3…
Problem:
Problem:PHP APCu caching…
Problem: