wordpress-1.0.2如何安装?

wordpress-1.0.2如何安装? https://wordpress.org/support/forum/installation/ 我正在尝试安装wordpress-1.0.2,来自 https://wordpress.org/download/releases/ 为了学习,在我尝试安装php之后,会通知建立数据库连接时出错! 我在Virtualbox中安装了Ubuntu Ubuntu 20.04.1 LTSlNo LSB modules are available.Distributor ID:UbuntuDescription:Ubuntu 20.04.1 LTSRelease:20.04Codename:focalDISTRIB_ID=UbuntuDISTRIB_RELEASE=> I installed Apache https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-20-04 The steps I applied are the following: sudo apt install apache2sudo ufw app listsudo ufw allow \"Apache\" 我注册了域http://www.example3.com sudo adduser www-datasudo mkdir -p -v /var/www/example3.com/public_htmlsudo chown www-data:www-data -R -v /var/www/example3.com; sudo chmod 0755 -R -v /var/www/example3.com; sudo chown -R -v www-data:www-data /var/www/example3.com; sudo chmod -R -v 770 /var/www/example3.comsudo ln -s -v /etc/apache2/sites-available/example3.com.conf /etc/apache2/sites-enabled/sudo service apache2 restart /etc/apache2/已启用站点/示例3。com.conf公司 # The ServerName directive sets the request scheme, hostname and port that# the server uses to identify itself. This is used when creating# redirection URLs. In the context of virtual hosts, the ServerName# specifies what hostname must appear in the request\"s Host: header to# match this virtual host. For the default virtual host (this file) this# value is not decisive as it is used as a last resort host regardless.# However, you must set it for any further virtual host explicitly.ServerName example3.comServerAlias www.example3.comServerAdmin admin@example3.comDocumentRoot /var/www/example3.com/public_html# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,# error, crit, alert, emerg.# It is also possible to configure the loglevel for particular# modules, e.g.#LogLevel info ssl:warnErrorLog ${APACHE_LOG_DIR}/error.logCustomLog ${APACHE_LOG_DIR}/access.log combined# For most configuration files from conf-available/, which are# enabled or disabled at a global level, it is possible to# include a line for only one particular virtual host. For example the# following line enables the CGI configuration for this host only# after it has been globally disabled with \"a2disconf\".#Include conf-available/serve-cgi-bin.conf# vim:> /etc/hosts 127.0.0.1localhost127.0.1.1user127.0.0.1example3.com127.0.0.1www.example3.com# The following lines are desirable for IPv6 capable hosts::1ip6-localhost ip6-loopbackfe00::0 ip6-localnetff00::0 ip6-mcastprefixff02::1 ip6-allnodesff02::2 ip6-allrouters 我安装了PHP 5.6 https://www.tecmint.com/install-different-php-versions-in-ubuntu/ sudo apt install php5.6 php5.6-bcmath php5.6-bz2 php5.6-cgi php5.6-cli php5.6-common php5.6-curl php5.6-dba php5.6-dev php5.6-enchant php5.6-fpm php5.6-gd php5.6-gmp php5.6-imap php5.6-interbase php5.6-intl php5.6-json php5.6-ldap php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-odbc php5.6-opcache php5.6-pgsql php5.6-phpdbg php5.6-pspell php5.6-readline php5.6-recode php5.6-snmp php5.6-soap php5.6-sqlite3 php5.6-sybase php5.6-tidy php5.6-xml php5.6-xmlrpc php5.6-xsl php5.6-zip I已安装MySQL https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-20-04我创建了wordpress数据库,我下载了wordpress-1.0.2.ziphttps://wordpress.org/wordpress-1.0.2.zip我把所有文件解压到 /var/www/example3.com/publicuhtml中我又复制了 /var/www/example3.com/publicu html/wp-config-示例.php 进入 /var/www/example3.com/publicu html/wp-配置.php 我换了工作包-配置.php具体如下: /var/www/example3.com/publicu html/wp-配置.php <;?php/**WordPress的配置文件***/**http://wordpress.org/**///**MySQL settings**//define(\"DB_NAME\",\"wordpress\");//数据库的名称define(\"DB_USER\",\"wordpressuser\");//您的MySQL用户名define(\"DB_PASSWORD\",\"1234\");//……和passworddefine(\"DB_HOST\",\"localhost\");//99%的可能性您不需要更改此值//如果您想在a=> 中有多个博客,请更改前缀我启动了Firefox并访问了 http://www.example3.com 之后,WordPress向我显示以下消息: 建立数据库连接时出错!这可能意味着youn wp中的连接信息-配置.php文件不正确。请仔细检查并重试。 您确定您的用户/密码正确吗? 您确定键入了正确的主机名吗? 您确定数据库服务器正在运行吗? WordPress支持论坛 - 这个主题是11个月前由James Huff修改的。原因:迁移到Localhost安装因为这是一个Localhost安装,在我看来,从wordpress5.4或5.5开始学习要比使用不支持现代插件和主题的不受支持的版本更有意义,更不用说目前可用的PHP版本了。php5.6可以运行WordPress 4.1https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/下面的任何东西都需要旧版本的PHP,所以您需要PHP 4来升级这个历史版本,我建议您使用类似Debian 3.0的虚拟机快乐考古挖掘

admin_action_{$_REQUEST[‘action’]}

do_action( "admin_action_{$_REQUEST[‘action’]}" )动作钩子::在发送“Action”请求变量时激发。Action Hook: Fires when an ‘action’ request variable is sent.目录锚点:#说明#源码说明(Description)钩子名称的动态部分$_REQUEST['action']引用从GET或POST请求派生的操作。源码(Source)更新版本源码位置使用被使用2.6.0 wp-admin/admin.php:...

日期:2020-09-02 17:44:16 浏览:1173

admin_footer-{$GLOBALS[‘hook_suffix’]}

do_action( "admin_footer-{$GLOBALS[‘hook_suffix’]}", string $hook_suffix )操作挂钩:在默认页脚脚本之后打印脚本或数据。Action Hook: Print scripts or data after the default footer scripts.目录锚点:#说明#参数#源码说明(Description)钩子名的动态部分,$GLOBALS['hook_suffix']引用当前页的全局钩子后缀。参数(Parameters)参数类...

日期:2020-09-02 17:44:20 浏览:1071

customize_save_{$this->id_data[‘base’]}

do_action( "customize_save_{$this-&gt;id_data[‘base’]}", WP_Customize_Setting $this )动作钩子::在调用WP_Customize_Setting::save()方法时激发。Action Hook: Fires when the WP_Customize_Setting::save() method is called.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分,$this->id_data...

日期:2020-08-15 15:47:24 浏览:808

customize_value_{$this->id_data[‘base’]}

apply_filters( "customize_value_{$this-&gt;id_data[‘base’]}", mixed $default )过滤器::过滤未作为主题模式或选项处理的自定义设置值。Filter Hook: Filter a Customize setting value not handled as a theme_mod or option.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分,$this->id_date['base'],指的是设置...

日期:2020-08-15 15:47:24 浏览:900

get_comment_author_url

过滤钩子:过滤评论作者的URL。Filter Hook: Filters the comment author’s URL.目录锚点:#源码源码(Source)更新版本源码位置使用被使用 wp-includes/comment-template.php:32610...

日期:2020-08-10 23:06:14 浏览:931

network_admin_edit_{$_GET[‘action’]}

do_action( "network_admin_edit_{$_GET[‘action’]}" )操作挂钩:启动请求的处理程序操作。Action Hook: Fires the requested handler action.目录锚点:#说明#源码说明(Description)钩子名称的动态部分$u GET['action']引用请求的操作的名称。源码(Source)更新版本源码位置使用被使用3.1.0 wp-admin/network/edit.php:3600...

日期:2020-08-02 09:56:09 浏览:879

network_sites_updated_message_{$_GET[‘updated’]}

apply_filters( "network_sites_updated_message_{$_GET[‘updated’]}", string $msg )筛选器挂钩:在网络管理中筛选特定的非默认站点更新消息。Filter Hook: Filters a specific, non-default site-updated message in the Network admin.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分$_GET['updated']引用了非默认的...

日期:2020-08-02 09:56:03 浏览:865

pre_wp_is_site_initialized

过滤器::过滤在访问数据库之前是否初始化站点的检查。Filter Hook: Filters the check for whether a site is initialized before the database is accessed.目录锚点:#源码源码(Source)更新版本源码位置使用被使用 wp-includes/ms-site.php:93910...

日期:2020-07-29 10:15:38 浏览:834

WordPress 的SEO 教学:如何在网站中加入关键字(Meta Keywords)与Meta 描述(Meta Description)?

你想在WordPress 中添加关键字和meta 描述吗?关键字和meta 描述使你能够提高网站的SEO。在本文中,我们将向你展示如何在WordPress 中正确添加关键字和meta 描述。为什么要在WordPress 中添加关键字和Meta 描述?关键字和说明让搜寻引擎更了解您的帖子和页面的内容。关键词是人们寻找您发布的内容时,可能会搜索的重要词语或片语。而Meta Description则是对你的页面和文章的简要描述。如果你想要了解更多关于中继标签的资讯,可以参考Google的说明。Meta 关键字和描...

日期:2020-10-03 21:18:25 浏览:1734

谷歌的SEO是什么

SEO (Search Engine Optimization)中文是搜寻引擎最佳化,意思近于「关键字自然排序」、「网站排名优化」。简言之,SEO是以搜索引擎(如Google、Bing)为曝光媒体的行销手法。例如搜寻「wordpress教学」,会看到本站的「WordPress教学:12个课程…」排行Google第一:关键字:wordpress教学、wordpress课程…若搜寻「网站架设」,则会看到另一个网页排名第1:关键字:网站架设、架站…以上两个网页,每月从搜寻引擎导入自然流量,达2万4千:每月「有机搜...

日期:2020-10-30 17:23:57 浏览:1309