Codeigniter在Ubuntu没有欢迎消息 [英] Codeigniter on Ubuntu no welcome message

查看:178
本文介绍了Codeigniter在Ubuntu没有欢迎消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Ubuntu 13.10上运行CodeIgniter(2.14)。我把文件放在var / www / CodeIgniter,但是当我从浏览器进入目录时,它不显示任何欢迎消息,因为它以前在Microsoft Windows 7上使用CodeIgniter时。我已经验证PHP工作在环境与函数 phpinfo() - PHP版本5.5.3-1ubuntu2。文件夹的权限是755,如果这是重要的。

I am trying to run CodeIgniter (2.14) on Ubuntu 13.10. I have put the files in "var/www/CodeIgniter" but when I enter the directory from the browser it does not show any welcome message as it did previously when working with CodeIgniter on Microsoft Windows 7. I have verified that PHP works on the environment with the function phpinfo() - PHP Version 5.5.3-1ubuntu2. The rights for the folder are 755 if that is of any importance.

我已尝试将基本网址设置为

I have tried to set the base URL to

 http://localhost/"myproject".

我试图重新下载并重新安装CodeIgniter。

I have tried to re-download and "reinstall" CodeIgniter.

我真的可以使用你的帮助我不喜欢在虚拟框中运行一个Windows环境只是为了这一点,我绝对不想安装Windows 8.1只是为此。

Guys I really could use your help I don't feel like running an windows environment in virtual box just for this and I definitely wouldn't like to install windows 8.1 just for this. All help is appreciated and considered constructive.

推荐答案

问题是var / www文件夹的权限。这可以由终端或在解除平滑时固定。

The Problem is rights on the 'var/www' folder. This can be fixed by the terminal or when unziping.

当从终端解压缩时,如下所示

When unziping from the terminal like below it works

    sudo unzip CodeIgniter_2.1.4.zip -d /var/www/"desired folder"

    sudo chmod 755 -R www

为了能够使用Netbeans作为非sudo用户更改文件夹所有者

And to be able to use Netbeans as non sudo user change the folder owner

    sudo chown 'user-name' 'folder-name' 

这篇关于Codeigniter在Ubuntu没有欢迎消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆