尝鲜drupal10
昨天下载了安装了drupal10,遇到了一些问题,记录下来方便备查,也帮助一下需要的朋友
1、PHP要求
Drupal 10 requires PHP 8.1 or higher.
drupal10要求PHP8.1及以上,最好8.16以上
PHP versions 8.1.0 through 8.1.5 have a bug with the PHP OPcache that may cause intermittent fatal errors at runtime for class autoloading, so PHP 8.1.6 or higher is recommended.
2、数据库要求Database requirements
MySQL or Percona 5.7.8.
MariaDB 10.3.7 (This is a more recent release than the MySQL version.)
PostgreSQL 12 with the pg_trgm extension.
SQLite 3.26 with the JSON1 extension. PHP does not always use the system-provided SQLite, so verify that your PHP is compiled with at least this version.
3、Composer要求
你要用composer安装的话,要求2.3.6或以上;
Drupal 10 recommends Composer version 2.3.6 or higher, which is required for compatibility with PHP 8.2 and the forthcoming Automatic Updates feature.
安装:
composer create-project drupal/recommended-project:10.0.0 “install-dir”
升级:
composer update “drupal/core-*” --with-all-dependencies
这三个要求我是通过安装PHPstudy_pro来实现的,国产用着方便
1、phpstudy_pro设置不同的composer版本
参考:网址.html
2、PHPStudy升级PHP版本8.2操作步骤
参考:/5584.html
安装drupal10遇到的问题解决:
1、PHP extensions 扩展插件gd
去php.ini 改了改:
; On windows:
extension_dir = “D:\web\phpstudy_pro\Extensions\php\php8.2.0nts\ext”
; Directory where the temporary files should be placed.
2、database support 扩展插件pdo
更多推荐
尝鲜drupal10
发布评论