php找不到php.ini的解决办法
2012-11-08 10:54
274 查看
今天安装了一个php,用源码安装的,安装后发现没有php.ini文件,导致运行php的时候会出现一段错误
Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning,
you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /home/autotest/software/php/lib/php/Smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 169
这个是时区的问题,解决方法是修改php.ini文件的date.timezone = PRC
后来发现没有php.ini文件,所以从安装目录下copy了php.ini-development或者php.ini-production到/etc/或者/usr/local/lib下,重命名为php.ini即可
Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning,
you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /home/autotest/software/php/lib/php/Smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 169
这个是时区的问题,解决方法是修改php.ini文件的date.timezone = PRC
后来发现没有php.ini文件,所以从安装目录下copy了php.ini-development或者php.ini-production到/etc/或者/usr/local/lib下,重命名为php.ini即可
相关文章推荐
- 修改php.ini配置文件无效的解决办法
- php5.5.27报错:../DOMDocument.php目录找不到 的解决办法
- PHP修改PHP.ini上传大文件的解决办法
- MAC - 当在brew中找不到想要的PHP扩展时的解决办法
- nginx修改php.ini无效的解决办法
- 提示 php.ini register_globals must is Off! 的解决办法
- Ubuntu下找不到php5,phpize等可执行程序的解决办法
- php.ini save_handler 修改不起作用 解决办法
- PHP Deprecated: Comments starting with '#' are deprecated in *.ini 警告解决办法
- php.ini save_handler 修改不启作用 解决办法
- Ubuntu下找不到php5,phpize等可执行程序的解决办法
- mac10.10 编译mcrypt时,找不到php.h文件的解决办法
- 访问php文件,但是提示找不到php_mbstring.dll的解决办法
- 黄聪:VPS服务器如何配置PHP.ini解决wordpress使用WP-Mail-SMTP插件发邮件出现Could not connect to SMTP host的解决办法
- mac安装php分词工具xunsearch出现找不到bio.h的解决办法
- php.ini save_handler 修改不生效的解决办法
- php.ini save_handler 修改不生效的解决办法
- PHP配置问题(找不到指定模块)解决办法
- linux下php中找不到php配置文件php.ini的解决方法