4/11/2007

CentOS安裝apache

1.
yum -y install httpd mod_ssl
安裝 httpd=apache最新版、還有ssl的套件
2.
yum -y install httpd mod_ssl
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
vi /etc/httpd/conf/httpd.conf
內容修改
ServerAdmin root@localhost
UserDir disable 修改成--> #UserDir disable
#UserDir public_html 修改成--> UserDir web
#將個人網頁資料夾改成由 public_html 改成 web,方便輸入
DirectoryIndex index.html index.html.var 修改成--> DirectoryIndex index.html index.htm index.php index.html.var
LanguagePriority zh-TW en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN
AddDefaultCharset UTF-8 修改成--> #AddDefaultCharset UTF-8
3.
啟動httpd
service httpd start
4.
預設路徑為:/var/www/html/

沒有留言: