我在codeigniter初学者。我写我的code和运行在本地主机在我的电脑。但是,当我把它上传在主机我给这个错误:
I'm a beginner in codeigniter. I write my code and run it in localhost in my PC. But when I upload it in host I give this error:
一个PHP遇到错误
严重性:核心警告
消息:PHP的启动:无法加载动态库 /usr/local/lib/php/extensions/no-debug-non-zts-20100525/sqlite.so - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/sqlite.so: 未定义的符号:zval_property_ctor
Message: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/sqlite.so: undefined symbol: zval_property_ctor
文件名:未知
行号:0
回溯:
和404未找到错误。 起初我觉得问题应该从htaccess文件并将其删除。但问题仍没有解决。 任何人可以帮助我吗? 多谢。
and "404 not found" error. At first I think problem should be from htaccess file and delete it. But problem is not solved. can anybody help me please? thanks a lot.
推荐答案您必须安装源码库
在的Ubuntu
sudo apt-get install php-sqlite
在的CentOS
yum install php-sqlite
编译从头开始(命令行):
最后,重新启动Apache,你应该做的。
Finally, restart Apache and you should be done.
如果您没有访问php.ini文件,然后,让下面一样在你的的.htaccess 文件条目。
If you don't have access to the php.ini file then, make entry like below in your .htaccess file.
# supress php errors php_flag display_startup_errors off php_flag display_errors off php_flag html_errors off php_flag ignore_repeated_errors off php_flag ignore_repeated_source off php_flag report_memleaks on php_flag track_errors on php_value docref_root 0 php_value docref_ext 0 # enable PHP error logging php_flag log_errors on php_value error_log /home/path/public_html/domain/PHP_errors.log # prevent access to PHP error log <Files PHP_errors.log> Order allow,deny Deny from all Satisfy All </Files>更多推荐
运行codeigniter服务器
发布评论