|
遇到此问题大部分都是session目录权限问题,执行如下命令,找到php的session目录
find / -name session
如目录为/var/opt/remi/php72/lib/php/session/
chown www:www -R /var/opt/remi/php72/lib/php/session/
重启php-fpm
systemctl restart php72-php-fpm.service
完美解决!
|
如果gd库中没有freeType,则按照以下步骤进行:
docker-php-ext-configure gd --enable-gd-native-ttf --with-freetype-dir=/usr/include/freetype2 --with-png-dir=/usr/include
重新编译:
docker-php-ext-install gd
如果报错:
configure: error: ![freetype][1]-config not found.
运行: apt-get -y install libfreetype6-dev ,然后再继续运行上面的命令。
gd库中有了freetype,则验证码显示正常了
|
遇到次错误查看是不是开启了Opcache的huge_code_pages.
那么执行
sysctl vm.nr_hugepages=512
cat /proc/meminfo | grep Huge
在试试吧
Hugepage让PHP7更快之, 首先在系统中开启HugePages, 然后开启z在php中开启Opcache的huge_code_pages.
opcache.huge_code_pages=1
更多让php更快的方法请查看风雪之隅博客中[让PHP7达到最高性能的几个Tips][1]
[1]: http://www.laruence.com/2015/12/04/3086.html
|
1.修改TestLink下的config.inc.php文件:
将$g_interface_bugs = 'NO'; 改为$g_interface_bugs = 'MANTIS';
2.配置TestLink/cfg下的Mantis.cfg.php文件:
define('BUG_TRACK_DB_HOST', 'localhost'); //数据库服务器地址
define('BUG_TRACK_DB_NAME', 'bugtracker'); //Mantis数据库名称
define('BUG_TRACK_DB_TYPE', 'mysql'); //Mantis采用的数据库类型
define('BUG_TRACK_DB_USER', 'root'); //Mantis数据库的用户名
define('BUG_TRACK_DB_PASS', '123'); //Man...
|
yii打印错误2013-12-26 / 次围观 / 快抢沙发
if ( $model->save() == false )
{
![Screenshot (3).png][1]print_r($model->errors);
}
|