简体   繁体   English

htaccess和php_value include_path-致命错误:require_once():无法打开所需文件

[英]htaccess and php_value include_path - Fatal error: require_once(): Failed opening required file

I'm trying to running a site on my local machine. 我正在尝试在本地计算机上运行站点。 I've started modifying the htaccess file, using XAMPP. 我已经开始使用XAMPP修改htaccess文件。

Here is the old setting 这是旧的环境

php_value include_path .:/home/sites/www.example.it/example.it/htdocs/conf/

and here the new one 这里是新的

php_value include_path .:/conf/

The error I receive 我收到的错误

Warning: require_once(conf.inc.php): failed to open stream: No such file or directory in C:\XAMPP\htdocs\wapp\index.php on line 2

Fatal error: require_once(): Failed opening required 'conf.inc.php' (include_path='.:/conf/') in C:\XAMPP\htdocs\wapp\index.php on line 2

Line 2 of index.php index.php的第2行

require_once("conf.inc.php");

How can I solve this problem? 我怎么解决这个问题?

您的包含路径需要指向文件在计算机上的位置:

php_value include_path .:C:\webfiles\example.it\htdocs\conf

暂无
暂无

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

相关问题 PHP require_once():无法打开所需的include_path - PHP require_once(): Failed opening required include_path 致命错误:require_once():无法在第147行的xxx中打开所需的'xxx'(include_path ='.; C:\\ xampp \\ php \\ PEAR') - Fatal error: require_once(): Failed opening required 'xxx' (include_path='.;C:\xampp\php\PEAR') in xxx on line 147 (PHP)(XAMPP)我该如何解决此错误:致命错误:require_once():无法打开所需的'PEAR.php'(include_path ='.; C:\\ php \\ pear') - (PHP)(XAMPP) how do i fix this error: Fatal error: require_once(): Failed opening required 'PEAR.php' (include_path='.;C:\php\pear') 致命错误:require_once()[function.require]:无法打开所需的'languages / Array.php'(include_path ='。:/ usr / share / pear /') - Fatal error: require_once() [function.require]: Failed opening required 'languages/Array.php' (include_path='.:/usr/share/pear/') php 致命错误:require_once(): 无法打开所需的 'C:\xampp\htdocs\paribibi/public/index.php' (include_path='C:\xampp\php\PEAR') - php Fatal error: require_once(): Failed opening required 'C:\xampp\htdocs\paribibi/public/index.php' (include_path='C:\xampp\php\PEAR') PHP 致命错误:require_once():打开所需的“Mail.php”失败(include_path='.:/usr/share/pear:/usr/share/php') - PHP Fatal error: require_once(): Failed opening required 'Mail.php' (include_path='.:/usr/share/pear:/usr/share/php') 致命错误:require_once(): 无法打开所需的 'C:/xampp/htdocs/system/system.php' (include_path='.;C:\xampp\php\pear') - Fatal error: require_once(): Failed opening required 'C:/xampp/htdocs/system/system.php' (include_path='.;C:\xampp\php\pear') 致命错误:require_once():在 C:\Users\zu 中打开所需的 'C:\core/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') 失败 - Fatal error: require_once(): Failed opening required 'C:\core/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\Users\zu require_once()[function.require]:打开所需的'/vars.inc'失败(include_path ='。; C:\\ php5 \\ pear') - require_once() [function.require]: Failed opening required '/vars.inc' (include_path='.;C:\php5\pear') PHP致命错误:require_once():必须打开失败 - PHP Fatal error: require_once(): Failed opening required
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM