如何在Ubuntu 14.04上运行的Codeigniter中设置基本URL? [英] How to setup base URL in codeigniter running on Ubuntu 14.04?

查看:47
本文介绍了如何在Ubuntu 14.04上运行的Codeigniter中设置基本URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已安装的LAMP堆栈.现在,我已将codeigniter文件提取到/var/www/ci但是在浏览器 http://localhost/ci/上运行时,不会显示欢迎页面.

Installed LAMP stack. Right now I've extracted codeigniter files to /var/www/ci but while running on browser http://localhost/ci/ the welcome page doesn't display.

推荐答案

最终找到了答案.必须启用该网站.

Finally found the answer. Have to enable the site.

将/etc/apache2/sites-available/000-default.conf文件中的文件修改如下:

In /etc/apache2/sites-available/000-default.conf file shud modified as follows:

< VirtualHost *:80>DocumentRoot/var/www/ServerAdmin网站管理员@localhost<目录/var/www/ci/>
AllowOverride全部
</目录>错误日志$ {APACHE_LOG_DIR}/error.logCustomLog $ {APACHE_LOG_DIR}/access.log合并</VirtualHost>

这对我有用!谢谢大家.

And this worked for me! Thanks all.

这篇关于如何在Ubuntu 14.04上运行的Codeigniter中设置基本URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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