安装php gd库后,Amazon EC2实例不运行codeigniter应用程序

时间:2022-09-19 14:37:59

I'm migrating a codeigniter application to amazon. I noticed that the captcha is not displaying and after search I found out that php gd library must be installed. The instance runs php 5.5.38 so I installed it this way

我正在将一个codeigniter应用程序迁移到亚马逊。我注意到验证码没有显示,搜索后我发现必须安装php gd库。该实例运行php 5.5.38所以我这样安装它

sudo yum install php55-gd

I've checked like this

我这样检查过

if(extension_loaded('gd')){
    echo 'yes';
}
else{
    echo 'no';
}

and the result is 'yes'

结果是'是'

using phpinfo() I found that it has been installed but the codeigniter application stopped working and the page doesn't display anything, it just keeps loading until I get max execution time error.

使用phpinfo()我发现它已经安装但是codeigniter应用程序停止工作并且页面没有显示任何内容,它只是一直加载直到我得到最大执行时间错误。

Any ideas? Thanks in advance.

有任何想法吗?提前致谢。

1 个解决方案

#1


0  

I had to edit the helper to create random characters as I found that "random_int" function is not working

我必须编辑助手来创建随机字符,因为我发现“random_int”函数不起作用

#1


0  

I had to edit the helper to create random characters as I found that "random_int" function is not working

我必须编辑助手来创建随机字符,因为我发现“random_int”函数不起作用