开发者

Configuring Codeigniter framework on Linux

I've installed Codeigniter on Linux CentOS.

I extracted everything to my web directory, set everything up, and everything worked fine.

Next I moved my application/ and system/ folders outside the web directory, and then provide full path to them in index.php. The folders I provided resolve fine from the command line, but I continue to get the error:

Your application folder path does not appear to be set correctly. Please open the following file and correct this: index.php

Here are the full path locations:

$system_path = '/data/utilities/codeigniter/system/';
$ap开发者_如何学运维plication_folder = '/data/utilities/codeigniter/application/';


First, is utilitities a typo only here, or in your index.php, too?

Second, does Apache have full access to /data, utilities, and codeigniter?


What are the permissions of the folders? The Apache user might not have access to those folders. You can find out the permission by using the command ls -la and then set the owner or group to the Apache user chown www-data:www-data -R /data/utilitities/codeigniter/system/ and chown www-data:www-data -R /data/utilities/codeigniter/application/ (Assuming that the Apache user is www-data).


Permissions were not set correctly... silly mistake. I did this to fix it:

sudo chmod -R 755 /data/utilities/codeigniter/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜