[at ubuntu 8.04] 安装,在终端输入
sudo apt-get install apache2
配置编码,把文件 etc/apache2/conf.d/charset 中的 最后一行#AddDefaultCharset 开头的改成 AddDefaultCharset UTF-8 或者 AddDefaultCharset GB2312 ,但在窗口模式下是无法修改的。
打开终端,输入
打开终端,输入
输入root密码,在输入
sudo su
需要改变网站目录则要修改文件 default,默认设置为 var/www。命令为
gedit /etc/apache2/conf.d/charset 注:etc前“/”不能省略
设置好后要重启apache,
gedit /etc/apache2/sites-available/default
apache2 -k restart
0 评论:
发表评论