简体   繁体   English

在Xampp错误上安装Wordpress

[英]installing wordpress on xampp errors

I have installed XAMPP for Windows 5.5.35 on my local machine and have copied wordpress 4.5.2 in the htdocs/sass-wp folder. 我已经在本地计算机上安装了Windows 5.5.35的XAMPP,并在htdocs / sass-wp文件夹中复制了wordpress 4.5.2。 the error I am getting is: 我得到的错误是:

Warning: require(C:\\xampp\\htdocs\\sass-wp/wp-includes/load.php): failed to open stream: No such file or directory in C:\\xampp\\htdocs\\sass-wp\\wp-settings.php on line 21 Fatal error: require(): Failed opening required 'C:\\xampp\\htdocs\\sass-wp/wp-includes/load.php' (include_path='C:\\xampp\\php\\PEAR') in C:\\xampp\\htdocs\\sass-wp\\wp-settings.php on line 21 警告:require(C:\\ xampp \\ htdocs \\ sass-wp / wp-includes / load.php):无法打开流:C:\\ xampp \\ htdocs \\ sass-wp \\ wp-settings中没有此类文件或目录。 php在第21行发生致命错误:require():无法在C中打开所需的'C:\\ xampp \\ htdocs \\ sass-wp / wp-includes / load.php'(include_path ='C:\\ xampp \\ php \\ PEAR')第21行的:\\ xampp \\ htdocs \\ sass-wp \\ wp-settings.php

I have looked at the following question on stackoverflow: PHP - Failed to open stream : No such file or directory which indicates that my problem is to do with paths, relative and absolute. 我已经看过以下关于stackoverflow的问题: PHP-无法打开流:没有这样的文件或目录 ,这表明我的问题与相对和绝对路径有关。 As I am a beginner with PHP and xampp I am not sure where to apply the fixes. 因为我是PHP和xampp的初学者,所以我不确定在哪里应用这些修补程序。

Here is the code on line 21 这是第21行的代码

define( 'WPINC', 'wp-includes' );
// Include files required for initialization.
require( ABSPATH . WPINC . '/load.php' );
require( ABSPATH . WPINC . '/default-constants.php' );

thanks 谢谢

Xampp 5.5.35的PHP版本为5.5.35,Wordpress 4.5.2需要PHP 5.6或更高版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM