当前位置:   article > 正文

Ubuntu安装wordpress

ubuntu安装wordpress

这里写自定义目录标题

开始

环境

这里安装的php是7.4版本,

apt install apache2 php mariadb-server
apt install php7.4-mysql php-dev
  • 1
  • 2

记得需要单独安装php7.4-mysql,不然可能会报错连接数据库出错,中电是wp_check_php_mysql_versions()

PHP Fatal error:  Uncaught Error: Call to undefined function trailingslashit() in /var/www/html/wordpress/wp-includes/class-wp-textdomain-registry.php:103\nStack trace:\n#0 /var/www/html/wordpress/wp-includes/l10n.php(784): WP_Textdomain_Registry->set()\n#1 /var/www/html/wordpress/wp-includes/load.php(1401): load_textdomain()\n#2 /var/www/html/wordpress/wp-includes/load.php(162): wp_load_translations_early()\n#3 /var/www/html/wordpress/wp-settings.php(37): wp_check_php_mysql_versions()\n#4 /var/www/html/wordpress/wp-config.php(96): require_once('/var/www/html/w...')\n#5 /var/www/html/wordpress/wp-load.php(50): require_once('/var/www/html/w...')\n#6 /var/www/html/wordpress/wp-admin/install.
    声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/676697
    推荐阅读
    相关标签
      

    闽ICP备14008679号