20120403
用虛擬機器安裝centos6.2
開啟預設服務等等
adduser eip
passwd eip
-----------
/home/eip/新增public_html/index.htm
-----------
/etc/httpd/conf/httpd.conf
1.左邊#註解拿掉
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
-----------------
2. disabled註解掉,UserDir public_html打開
<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
#UserDir disabled
#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disabled" line above, and uncomment
# the following line instead:
#
UserDir public_html
</IfModule>
1. 先關閉 /etc/selinux/config 的內容
[root@linux ~]# vi /etc/selinux/config
# 將底下的設定值改成這樣:
SELINUX=disabled
---到此為止應該可以進入網址/~eip/裡面的網頁---
然後要去/etc/php.ini改錯誤訊息要不要顯示
error_reporting = E_ALL | E_STRICT
display_errors = On
display_startup_errors = On
log_errors = Off
short_open_tag = On <--- <? 變可以了!
1.short_open_tag 預設變成打開了
2.預設變數一定要有值,$val; <- 犯法 $val=''; <- 合法
這個真的超討厭的,所以我把這個錯誤訊息關掉了xd,看還會不會出現...
3.date.timezone = "Asia/Taipei" 一定要設
---設定mysql sql
mysql> -u root
mysql> use mysql;
mysql> update user set password=PASSWORD("newpass") where User=’root’;
mysql> flush privileges;
mysql> quit
---安裝pma
安裝於/var/www/html
---中間有遇到yum -y update無法執行
是因為DNS設定問題
使用setup 指令修改 dns 並且記得service network restart
---在家裡安裝時,首先要先克服上網問題---
要先把中華電信的小烏龜,設定成硬撥
然後進setup 網卡的東西都要設定好
目前的設定如下:
然後修改網卡設定:
沒有留言:
張貼留言