如何在Ubuntu 14.04上运行的codeigniter中设置基本URL?

Aru*_*mar 1 codeigniter ubuntu-14.04

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

Aru*_*mar 5

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

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

<VirtualHost *:80> DocumentRoot /var/www/ ServerAdmin webmaster@localhost <Directory /var/www/ci/>
AllowOverride All
</Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>

这对我有用!谢谢大家.