張貼日期:Aug 21, 2018 2:23:33 PM
esxi6.7系統安裝
1.上網申請esxi6.7並取得VMware vSphere Hypervisor 6 License
2.下載VMware vSphere Hypervisor 6.7 - Binaries
3.燒光碟-->開機安裝-->esxi6.7
freebsd11.2系統安裝
1.以光碟開機安裝
2.安裝apache22
#cd /usr/ports/www/apache22
#make install clean
3.安裝mysql56(安裝mysql55出現無法解決的問題)
# cd /usr/ports/database/mysql56-se rver
#make install clean
4.安裝php56
#cd /usr/ports/lang/php56
#make install clean
5.啟動apache22
#echo apache22_enable=yes >> /etc/rc.conf
#/usr/local/etc/rc.d/apache22 start
6.啟動mysql與設定root密碼
#echo mysql_enable=yes >>/etc/rc.conf
#/usr/local/etc/rc.d/mysql-server start
#mysql_secure_installation
按enter
輸入新的密碼
再輸入一次
7.安裝php56-extentions裡面有支援mysql的模組
#cd /usr/ports/lang/php56-extentions
#make install clean
8.安裝mod_php56裡面有mod_php使apache22受php支援-->動態網站
#cd /usr/ports/www/mod_php56
9.設定php.ini
#cp /usr/local/etc/php.ini-develoopment /usr/local/etc/php.ini
10.設定httpd.conf
#vi /usr/local/etc/apache22/httpd.conf
將
DirectoryIndex index.html
改成
DirectoryIndex index.php index.php3 index.htm index.html
最後一行再增加下列兩行
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps
(ps.網路上的作法如下
<IfModule mod_php5.c> # If php is turned on, we respect .php and .phps files. AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps # Since most users will want index.php to work we # also automatically enable index.php <IfModule mod_dir.c> DirectoryIndex index.html index.php </IfModule> </IfModule>
不過我的設定執行起來也沒問題)