老是忘了架Moodle的伺服器環境有哪些步驟
所以就參考歐展嘉那本書寫一下這部份的筆記好了!!!
一. 安裝IIS(但只保留SMTP虛擬伺服器的功能)
二. 讓xp防火牆的80 port對外溝通
三. 關近端網路使用Proxy
四. 設固定IP
一. 安裝IIS(但只保留SMTP虛擬伺服器的功能)
Prerequisite: Windows XP Professional Only
1. 控制台/ 新增移除元件
2. 勾選Internet Information Services (IIS)
3. 關閉 IIS
3-1 控制台/ 系統管理工具/ Internet Information Services
3-2 (本機電腦)/網站/ 預設的網站....按右鍵點選"停止"
3-3 (本機電腦)/預設SMTP虛擬伺服器...按右鍵點選 "內容/ 存取/ 轉接"
3-4 選取"除了以下之外的所有項目"
3-5 連續點下兩個"確定"按鈕即可
二. 讓xp防火牆的80 port對外溝通
1. 開始/控制台/網路連線/區域連線
2. 按右鍵點選"內容"
3. "進階"分頁/設定值
4. Windows防火牆/ "例外"分頁/ 新增連接埠
5. 欄位名稱: HTTP
6. 連接埠編號: 80
7. 點選"確定"
8. Windows防火牆/ "進階"分頁/ 勾選"點選區域連線"/ 點選"設定值"
9. 勾選"網頁伺服器(HTTP)"
10. 勾選"網際網路郵件伺服器(SMTP)
三. 關近端網路使用Proxy
1. 開始/控制台/網際網路選項
2. "連線"分頁/ 區域網路設定
3. 勾選"近端網址不使用Proxy"
4. 連續點下兩個"確定"按鈕即可
四. 設固定IP
五. 安裝Java運行環境
1. 到http://www.java.com/zh_TW/download/manual.jsp
2. 點選"Windows XP/Vista/2000/2003 離線"
3. 安裝 jre-6u6-windows-i586-p-s.exe
六. 安裝Win32OpenSSL-0_9_8g.exe軟體
1. http://www.slproweb.com/products/Win32OpenSSL.html
2. 下載Win32 OpenSSLv0.9.8g (Win32 OpenSSL v0.9.8o Light)
七. 安裝Appserv 伺服器軟體包
http://www.appservnetwork.com
八. 安裝Appserv伺服器加速器
Josh's
Not only taking the history of my Work and my Life
Friday, August 13, 2010
Tuesday, June 22, 2010
wordpress launched
Finally got wordpress installed...
Last night, I thought sth wrong with MySQL or phpMyAdmin.... haha... there's nothing wrong with both of them.
After moved the unzipped "wordpress" folder under Appserv/www and go to localhost/wordpress, it started the process of the installation!!!
The next step is nice plugin hunting!!!
Check it out of my first post on WP...
Last night, I thought sth wrong with MySQL or phpMyAdmin.... haha... there's nothing wrong with both of them.
After moved the unzipped "wordpress" folder under Appserv/www and go to localhost/wordpress, it started the process of the installation!!!
The next step is nice plugin hunting!!!
Check it out of my first post on WP...
Wednesday, June 2, 2010
安裝Moodle前的確認動作
當LAMP建置完成後
開始裝Moodle前
有些東西需要透過終端機確認
否則無法正常安裝
不過對這些指令還不熟
也就先把要輸入的指令highlight出來
建議先用root登入本機再進行下面的動作
root@josh-ubuntu:~# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:d0:09:e4
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fed0:9e4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:940 errors:0 dropped:0 overruns:0 frame:0
TX packets:585 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:972315 (972.3 KB) TX bytes:41682 (41.6 KB)
Interrupt:11 Base address:0xd020
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:49 errors:0 dropped:0 overruns:0 frame:0
TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4190 (4.1 KB) TX bytes:4190 (4.1 KB)
root@josh-ubuntu:~# ps -aux | grep ssh
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root 3086 0.0 0.0 4784 604 ? Ss 17:16 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/pulse-session /usr/bin/seahorse-agent --execute x-session-manager
root 5638 0.0 0.0 3340 796 pts/0 R+ 18:29 0:00 grep ssh
root@josh-ubuntu:~# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 2201/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2779/apache2
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2596/cupsd
tcp6 0 0 ::1:631 :::* LISTEN 2596/cupsd
udp 0 0 0.0.0.0:54849 0.0.0.0:* 2570/avahi-daemon:
udp 0 0 0.0.0.0:68 0.0.0.0:* 2597/dhclient
udp 0 0 0.0.0.0:5353 0.0.0.0:* 2570/avahi-daemon:
root@josh-ubuntu:~# cd /etc/ssh/
root@josh-ubuntu:/etc/ssh# vim ssh_config
程式 'vim' 可在下列的套件中被找到:
* vim
* vim-gnome
* vim-tiny
* vim-gtk
* vim-nox
嘗試: apt-get install
bash: vim: command not found
root@josh-ubuntu:/etc/ssh# vi ssh_config
root@josh-ubuntu:/etc/ssh# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 2201/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2779/apache2
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 6016/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2596/cupsd
tcp6 0 0 :::22 :::* LISTEN 6016/sshd
tcp6 0 0 ::1:631 :::* LISTEN 2596/cupsd
udp 0 0 0.0.0.0:54849 0.0.0.0:* 2570/avahi-daemon:
udp 0 0 0.0.0.0:68 0.0.0.0:* 2597/dhclient
udp 0 0 0.0.0.0:5353 0.0.0.0:* 2570/avahi-daemon:
root@josh-ubuntu:/etc/ssh# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:d0:09:e4
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fed0:9e4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1234 errors:0 dropped:0 overruns:0 frame:0
TX packets:741 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1275676 (1.2 MB) TX bytes:50503 (50.5 KB)
Interrupt:11 Base address:0xd020
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:49 errors:0 dropped:0 overruns:0 frame:0
TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4190 (4.1 KB) TX bytes:4190 (4.1 KB)
root@josh-ubuntu:/etc/ssh# cd /var/
root@josh-ubuntu:/var# ls -l總計 52
drwxr-xr-x 2 root root 4096 2010-05-24 01:26 backups
drwxr-xr-x 17 root root 4096 2010-05-16 23:53 cache
drwxr-xr-x 2 root root 4096 2009-03-27 16:42 crash
drwxr-xr-x 2 root root 4096 2009-04-20 22:07 games
drwxr-xr-x 56 root root 4096 2010-05-16 23:53 lib
drwxrwsr-x 2 root staff 4096 2009-04-13 17:33 local
drwxrwxrwt 3 root root 80 2010-06-02 17:39 lock
drwxr-xr-x 16 root root 4096 2010-06-02 17:39 log
drwxrwsr-x 2 root mail 4096 2009-04-20 21:59 mail
drwxr-xr-x 3 root root 4096 2010-05-17 00:48 moodledata01
drwxr-xr-x 2 root root 4096 2009-04-20 21:59 opt
drwxr-xr-x 18 root root 780 2010-06-02 18:31 run
drwxr-xr-x 6 root root 4096 2009-04-20 22:02 spool
drwxrwxrwt 2 root root 4096 2010-06-02 18:37 tmp
drwxr-xr-x 3 root root 4096 2010-05-17 00:51 www
root@josh-ubuntu:/var# chmod 777 moodledata01/
root@josh-ubuntu:/var# chmod 755 moodledata01/
root@josh-ubuntu:/var# ps -aux | grep apache
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root 2779 0.0 0.7 33072 7976 ? Ss 17:16 0:00 /usr/sbin/apache2 -k start
www-data 4110 0.0 1.2 39812 12416 ? S 17:39 0:00 /usr/sbin/apache2 -k start
www-data 4111 0.0 1.1 38644 11908 ? S 17:39 0:00 /usr/sbin/apache2 -k start
www-data 4114 0.0 1.1 38648 11704 ? S 17:39 0:00 /usr/sbin/apache2 -k start
www-data 4116 0.0 1.1 38644 11720 ? S 17:39 0:00 /usr/sbin/apache2 -k start
www-data 4117 0.0 0.3 33072 4036 ? S 17:39 0:00 /usr/sbin/apache2 -k start
www-data 6048 0.0 0.3 33072 4036 ? S 18:36 0:00 /usr/sbin/apache2 -k start
root 6409 0.0 0.0 3344 816 pts/0 S+ 18:40 0:00 grep apache
root@josh-ubuntu:/var# clear
root@josh-ubuntu:/var# lsbackups crash lib lock mail opt spool www
cache games local log moodledata01 run tmp
root@josh-ubuntu:/var# ls -l總計 52
drwxr-xr-x 2 root root 4096 2010-05-24 01:26 backups
drwxr-xr-x 17 root root 4096 2010-05-16 23:53 cache
drwxr-xr-x 2 root root 4096 2009-03-27 16:42 crash
drwxr-xr-x 2 root root 4096 2009-04-20 22:07 games
drwxr-xr-x 56 root root 4096 2010-05-16 23:53 lib
drwxrwsr-x 2 root staff 4096 2009-04-13 17:33 local
drwxrwxrwt 3 root root 80 2010-06-02 17:39 lock
drwxr-xr-x 16 root root 4096 2010-06-02 17:39 log
drwxrwsr-x 2 root mail 4096 2009-04-20 21:59 mail
drwxr-xr-x 4 root root 4096 2010-06-02 18:39 moodledata01
drwxr-xr-x 2 root root 4096 2009-04-20 21:59 opt
drwxr-xr-x 18 root root 780 2010-06-02 18:40 run
drwxr-xr-x 6 root root 4096 2009-04-20 22:02 spool
drwxrwxrwt 2 root root 4096 2010-06-02 18:39 tmp
drwxr-xr-x 3 root root 4096 2010-05-17 00:51 www
root@josh-ubuntu:/var# chown www-data:www-data moodledata01/root@josh-ubuntu:/var# netstat -
倒數第二行的動作是要授予更動權限給 www-data 執行
moodledata01要視自己新增的資料庫所在資料夾名稱而定
否則就糗大了
開始裝Moodle前
有些東西需要透過終端機確認
否則無法正常安裝
不過對這些指令還不熟
也就先把要輸入的指令highlight出來
建議先用root登入本機再進行下面的動作
root@josh-ubuntu:~# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:d0:09:e4
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fed0:9e4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:940 errors:0 dropped:0 overruns:0 frame:0
TX packets:585 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:972315 (972.3 KB) TX bytes:41682 (41.6 KB)
Interrupt:11 Base address:0xd020
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:49 errors:0 dropped:0 overruns:0 frame:0
TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4190 (4.1 KB) TX bytes:4190 (4.1 KB)
root@josh-ubuntu:~# ps -aux | grep ssh
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root 3086 0.0 0.0 4784 604 ? Ss 17:16 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/pulse-session /usr/bin/seahorse-agent --execute x-session-manager
root 5638 0.0 0.0 3340 796 pts/0 R+ 18:29 0:00 grep ssh
root@josh-ubuntu:~# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 2201/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2779/apache2
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2596/cupsd
tcp6 0 0 ::1:631 :::* LISTEN 2596/cupsd
udp 0 0 0.0.0.0:54849 0.0.0.0:* 2570/avahi-daemon:
udp 0 0 0.0.0.0:68 0.0.0.0:* 2597/dhclient
udp 0 0 0.0.0.0:5353 0.0.0.0:* 2570/avahi-daemon:
root@josh-ubuntu:~# cd /etc/ssh/
root@josh-ubuntu:/etc/ssh# vim ssh_config
程式 'vim' 可在下列的套件中被找到:
* vim
* vim-gnome
* vim-tiny
* vim-gtk
* vim-nox
嘗試: apt-get install
bash: vim: command not found
root@josh-ubuntu:/etc/ssh# vi ssh_config
root@josh-ubuntu:/etc/ssh# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 2201/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2779/apache2
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 6016/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2596/cupsd
tcp6 0 0 :::22 :::* LISTEN 6016/sshd
tcp6 0 0 ::1:631 :::* LISTEN 2596/cupsd
udp 0 0 0.0.0.0:54849 0.0.0.0:* 2570/avahi-daemon:
udp 0 0 0.0.0.0:68 0.0.0.0:* 2597/dhclient
udp 0 0 0.0.0.0:5353 0.0.0.0:* 2570/avahi-daemon:
root@josh-ubuntu:/etc/ssh# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:d0:09:e4
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fed0:9e4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1234 errors:0 dropped:0 overruns:0 frame:0
TX packets:741 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1275676 (1.2 MB) TX bytes:50503 (50.5 KB)
Interrupt:11 Base address:0xd020
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:49 errors:0 dropped:0 overruns:0 frame:0
TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4190 (4.1 KB) TX bytes:4190 (4.1 KB)
root@josh-ubuntu:/etc/ssh# cd /var/
root@josh-ubuntu:/var# ls -l總計 52
drwxr-xr-x 2 root root 4096 2010-05-24 01:26 backups
drwxr-xr-x 17 root root 4096 2010-05-16 23:53 cache
drwxr-xr-x 2 root root 4096 2009-03-27 16:42 crash
drwxr-xr-x 2 root root 4096 2009-04-20 22:07 games
drwxr-xr-x 56 root root 4096 2010-05-16 23:53 lib
drwxrwsr-x 2 root staff 4096 2009-04-13 17:33 local
drwxrwxrwt 3 root root 80 2010-06-02 17:39 lock
drwxr-xr-x 16 root root 4096 2010-06-02 17:39 log
drwxrwsr-x 2 root mail 4096 2009-04-20 21:59 mail
drwxr-xr-x 3 root root 4096 2010-05-17 00:48 moodledata01
drwxr-xr-x 2 root root 4096 2009-04-20 21:59 opt
drwxr-xr-x 18 root root 780 2010-06-02 18:31 run
drwxr-xr-x 6 root root 4096 2009-04-20 22:02 spool
drwxrwxrwt 2 root root 4096 2010-06-02 18:37 tmp
drwxr-xr-x 3 root root 4096 2010-05-17 00:51 www
root@josh-ubuntu:/var# chmod 777 moodledata01/
root@josh-ubuntu:/var# chmod 755 moodledata01/
root@josh-ubuntu:/var# ps -aux | grep apache
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root 2779 0.0 0.7 33072 7976 ? Ss 17:16 0:00 /usr/sbin/apache2 -k start
www-data 4110 0.0 1.2 39812 12416 ? S 17:39 0:00 /usr/sbin/apache2 -k start
www-data 4111 0.0 1.1 38644 11908 ? S 17:39 0:00 /usr/sbin/apache2 -k start
www-data 4114 0.0 1.1 38648 11704 ? S 17:39 0:00 /usr/sbin/apache2 -k start
www-data 4116 0.0 1.1 38644 11720 ? S 17:39 0:00 /usr/sbin/apache2 -k start
www-data 4117 0.0 0.3 33072 4036 ? S 17:39 0:00 /usr/sbin/apache2 -k start
www-data 6048 0.0 0.3 33072 4036 ? S 18:36 0:00 /usr/sbin/apache2 -k start
root 6409 0.0 0.0 3344 816 pts/0 S+ 18:40 0:00 grep apache
root@josh-ubuntu:/var# clear
root@josh-ubuntu:/var# lsbackups crash lib lock mail opt spool www
cache games local log moodledata01 run tmp
root@josh-ubuntu:/var# ls -l總計 52
drwxr-xr-x 2 root root 4096 2010-05-24 01:26 backups
drwxr-xr-x 17 root root 4096 2010-05-16 23:53 cache
drwxr-xr-x 2 root root 4096 2009-03-27 16:42 crash
drwxr-xr-x 2 root root 4096 2009-04-20 22:07 games
drwxr-xr-x 56 root root 4096 2010-05-16 23:53 lib
drwxrwsr-x 2 root staff 4096 2009-04-13 17:33 local
drwxrwxrwt 3 root root 80 2010-06-02 17:39 lock
drwxr-xr-x 16 root root 4096 2010-06-02 17:39 log
drwxrwsr-x 2 root mail 4096 2009-04-20 21:59 mail
drwxr-xr-x 4 root root 4096 2010-06-02 18:39 moodledata01
drwxr-xr-x 2 root root 4096 2009-04-20 21:59 opt
drwxr-xr-x 18 root root 780 2010-06-02 18:40 run
drwxr-xr-x 6 root root 4096 2009-04-20 22:02 spool
drwxrwxrwt 2 root root 4096 2010-06-02 18:39 tmp
drwxr-xr-x 3 root root 4096 2010-05-17 00:51 www
root@josh-ubuntu:/var# chown www-data:www-data moodledata01/root@josh-ubuntu:/var# netstat -
倒數第二行的動作是要授予更動權限給 www-data 執行
moodledata01要視自己新增的資料庫所在資料夾名稱而定
否則就糗大了
Change Owner
上回好不容易搞定一些LAMP的設定
然後就開開心心地要在ubuntu上灌Moodle
想不到才剛開始藥罐就卡住
經台大高材生指點才恍然大悟(老實說是沒有完全悟透)
原來是要在終端機上輸入一些指令來更換管理(處理)者的權限
root@josh-ubuntu:/var# chown www-data:www-data moodledata01/
似乎是要開一個權限給 www-data 來更動 moodledata01 這個資料庫的內容
為了更進一步要參透這個動作
看來還是要在virtualpc裡在裝一台全新的ubuntu來練習
然後就開開心心地要在ubuntu上灌Moodle
想不到才剛開始藥罐就卡住
經台大高材生指點才恍然大悟(老實說是沒有完全悟透)
原來是要在終端機上輸入一些指令來更換管理(處理)者的權限
root@josh-ubuntu:/var# chown www-data:www-data moodledata01/
似乎是要開一個權限給 www-data 來更動 moodledata01 這個資料庫的內容
為了更進一步要參透這個動作
看來還是要在virtualpc裡在裝一台全新的ubuntu來練習
Tuesday, May 25, 2010
Microsoft Office Word、Excel 及 PowerPoint 2007 檔案格式相容性套件
很多人都還在用2003, 但收到2007做的檔案卻開不了, 所以需要這個相容性套件
使用 Microsoft Office Word、Excel 和 PowerPoint 2007 的新檔案格式開啟、編輯與儲存文件、活頁簿與簡報。
http://www.microsoft.com/downloads/details.aspx?familyid=941b3470-3ae9-4aee-8f43-c6bb74cd1466&displaylang=zh-tw
使用 Microsoft Office Word、Excel 和 PowerPoint 2007 的新檔案格式開啟、編輯與儲存文件、活頁簿與簡報。
http://www.microsoft.com/downloads/details.aspx?familyid=941b3470-3ae9-4aee-8f43-c6bb74cd1466&displaylang=zh-tw
Labels:
2007,
Excel,
Microsoft Office,
PowerPoint,
Word,
格式相容性套件
Sunday, May 16, 2010
LAMP in Ubuntu
終於....我的LAMP+Ubuntu跑起來了(起碼先前卡住的地方現在已經過關了XD)
這個週末是參考人家的解說
root密碼及登入~~
詳情請看Ubuntu無法新增檔案? root 密碼是甚麼?
在真的可以無痛安裝前
個人覺得最重要的還是機巴毛的root登入要搞定
從設定ubuntu的root密碼
就要先在終端機內用 sudo passwd root 這個指令來設定root 密碼
再下來呢
就要把ubuntu設成能用root這個管理者帳號登入
點選工具列的 系統>管理>登錄畫面,然後點選標籤 - "安全性" ,然後找到 "允許本地端系統管理員登入",並勾選
安裝LAMP~~
詳情請看ubuntu LAMP server 安裝程序
稍微節錄一下真的有用到的部份...
如果對於apache + mysql + php 不太懂這是什麼東西的人,可以先看看鳥哥的資料,裡面寫的應該是滿清楚的,只是安裝的方式和我們Ubuntu上面是不太一樣而已,很多apache的設定都可以參考鳥哥的資料。
WWW server安裝是有個順序性的,為了避免相依的問題,所以請照我順序安裝。
要裝 next generation, scalable, extendable web server 這個版本的喔!不要裝錯了。
這邊有一個重點就是mysql分成client
和server的部份,我們是要裝mysql5-server的部份,而client的部份是一些連到server的函式庫等等的東西,clinet的部
份會在以後裝phpmyadmin的時候自動相依來裝,所以這裡先不用裝。
[更新]在下載完畢後會執行安裝,並且會詢問你root帳號的密碼,輸入好後請牢記這組密碼,因為等一下使用phpmyadmin管理時會需要用到。
如此我們就裝好mysql-server-5.0(mysql5)的部份了。
在裝PHP5的時候會因為相依的關係自動把for apache2的模組裝進去,所以只要依照我們的step by step的順序來裝就沒有問題。
如此我們就裝好php5這個script language而且也裝好它for apache2的模組了。
裝了mysql結果沒有一個好的管理程式,那下指令改資料庫可能會改到天黑,所以這邊裝了phpmyadmin不僅只是為了mysql的管理,而它
包含了 mysql-client和php for
mysql的模組要裝,所以這一定要安裝,不然的話少了幾個模組,會發現為什麼我的php連mysql的時候沒有函式可以呼叫列~~
這邊你不會裝錯,因為「只此一套件,別無分號」,這邊裝會裝一段時間,因為會自動補齊當apache2 + mysql + php5的時候所缺少的套件。
另外說明一下phpmyadmin並不是一隻程式,而是一堆的php的程式檔,而裝好的時候,[更新]他會詢問你配合使用的是哪套apache,記
得一定 要在apache2的地方按空白鍵做選擇,不然會無法使用(切身之痛)。
它會自動在你的apache2下主目錄下面多出一個連結檔(phpmyadmin ->
/usr/share/phpmyadmin)設定的時候會在提及。
這個週末是參考人家的解說
root密碼及登入~~
詳情請看Ubuntu無法新增檔案? root 密碼是甚麼?
在真的可以無痛安裝前
個人覺得最重要的還是機巴毛的root登入要搞定
從設定ubuntu的root密碼
就要先在終端機內用 sudo passwd root 這個指令來設定root 密碼
再下來呢
就要把ubuntu設成能用root這個管理者帳號登入
點選工具列的 系統>管理>登錄畫面,然後點選標籤 - "安全性" ,然後找到 "允許本地端系統管理員登入",並勾選
安裝LAMP~~
詳情請看ubuntu LAMP server 安裝程序
稍微節錄一下真的有用到的部份...
如果對於apache + mysql + php 不太懂這是什麼東西的人,可以先看看鳥哥的資料,裡面寫的應該是滿清楚的,只是安裝的方式和我們Ubuntu上面是不太一樣而已,很多apache的設定都可以參考鳥哥的資料。
WWW server安裝是有個順序性的,為了避免相依的問題,所以請照我順序安裝。
※Step 1 安裝apache2
sudo apt-cache search -n apache2 | grep generation
sudo apt-get install apache2
sudo apt-get install apache2
要裝 next generation, scalable, extendable web server 這個版本的喔!不要裝錯了。
※Step 2 安裝Mysql5-server
這邊有一個重點就是mysql分成client
和server的部份,我們是要裝mysql5-server的部份,而client的部份是一些連到server的函式庫等等的東西,clinet的部
份會在以後裝phpmyadmin的時候自動相依來裝,所以這裡先不用裝。
sudo apt-cache search -n mysql-server
sudo apt-get install mysql-server-5.0
sudo apt-get install mysql-server-5.0
[更新]在下載完畢後會執行安裝,並且會詢問你root帳號的密碼,輸入好後請牢記這組密碼,因為等一下使用phpmyadmin管理時會需要用到。
如此我們就裝好mysql-server-5.0(mysql5)的部份了。
※Step 3 安裝PHP5
在裝PHP5的時候會因為相依的關係自動把for apache2的模組裝進去,所以只要依照我們的step by step的順序來裝就沒有問題。
sudo apt-cache search -n php5
sudo apt-get install php5
sudo apt-get install php5
如此我們就裝好php5這個script language而且也裝好它for apache2的模組了。
※Step 4 安裝mysql管理程式phpmyadmin
裝了mysql結果沒有一個好的管理程式,那下指令改資料庫可能會改到天黑,所以這邊裝了phpmyadmin不僅只是為了mysql的管理,而它
包含了 mysql-client和php for
mysql的模組要裝,所以這一定要安裝,不然的話少了幾個模組,會發現為什麼我的php連mysql的時候沒有函式可以呼叫列~~
sudo apt-cache search -n phpmyadmin
sudo apt-get install phpmyadmin
sudo apt-get install phpmyadmin
這邊你不會裝錯,因為「只此一套件,別無分號」,這邊裝會裝一段時間,因為會自動補齊當apache2 + mysql + php5的時候所缺少的套件。
另外說明一下phpmyadmin並不是一隻程式,而是一堆的php的程式檔,而裝好的時候,[更新]他會詢問你配合使用的是哪套apache,記
得一定 要在apache2的地方按空白鍵做選擇,不然會無法使用(切身之痛)。
它會自動在你的apache2下主目錄下面多出一個連結檔(phpmyadmin ->
/usr/share/phpmyadmin)設定的時候會在提及。
Subscribe to:
Posts (Atom)