2011-08-27 130 views
2

我已经搜索了过去30分钟没有解决方案。我甚至搜索了'php.ini',并且我得到的是我的整个localhost/htdocts/mysites目录中的ini.php文件,其中我的joomla当前已安装。我在joomla论坛上找到的最新答案是2011年7月,但我无法找到人们说的php.ini文件。我甚至在删除它之前尝试检查安装目录并打开所有没有运气的隐藏文件。我要我停止获取像uneccessary PHP错误信息更改设置下列正确安装后:joomla中的php.ini在哪里? (xampp安装)

Strict Standards: Static function JDatabase::test() should not be abstract in C:\xampp\htdocs\mysites\joomla_now\libraries\joomla\database\database.php on line 350 

Strict Standards: Accessing static property JCache::$_handler as non static in C:\xampp\htdocs\mysites\joomla_now\libraries\joomla\cache\cache.php on line 394 

Strict Standards: Accessing static property JCache::$_handler as non static in C:\xampp\htdocs\mysites\joomla_now\libraries\joomla\cache\cache.php on line 396 

Strict Standards: Accessing static property JCache::$_handler as non static in C:\xampp\htdocs\mysites\joomla_now\libraries\joomla\cache\cache.php on line 396 

Strict Standards: Accessing static property JCache::$_handler as non static in C:\xampp\htdocs\mysites\joomla_now\libraries\joomla\cache\cache.php on line 396 

Strict Standards: Accessing static property JCache::$_handler as non static in C:\xampp\htdocs\mysites\joomla_now\libraries\joomla\cache\cache.php on line 396 

Strict Standards: Accessing static property JCache::$_handler as non static in C:\xampp\htdocs\mysites\joomla_now\libraries\joomla\cache\cache.php on line 394 

Strict Standards: Accessing static property JCache::$_handler as non static in C:\xampp\htdocs\mysites\joomla_now\libraries\joomla\cache\cache.php on line 396 

Strict Standards: Accessing static property JCache::$_handler as non static in C:\xampp\htdocs\mysites\joomla_now\libraries\joomla\cache\cache.php on line 396 

回答

2

php.ini文件属于您的服务器配置,而不是的Joomla的一部分。看起来你正在使用XAMPP - 如果你的版本是XAMPP> 1.7.0,那么这个文件应该在你的C:\xampp\php目录中,c:\xampp\apache\bin对于旧版本。

1

它应该在1.7.0及以上版本的xamppInstallationDir/PHP/PHP.ini中找到。

+0

...适用于版本> = 1.7.0 – ty812

+0

已注明并已修复。 –

0

不管是哪种情况*,您都可以通过后端的Joomla实例加载任何php.ini文件。 只需进入系统 - >系统信息 - > PHP信息,其中Joomla实际上运行phpinfo()函数。 在那里您将能够找到有关服务器环境的PHP配置的所有相关信息。 特别是对于在php.ini,你可以看看这些行:

  • 配置文件(php.ini中)路径
  • 加载的配置文件
  • 扫描这个目录额外的.ini文件
  • 附加。解析的ini文件

*除非在服务器中禁用phpinfo()。