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...
Tuesday, June 22, 2010
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來練習
Subscribe to:
Posts (Atom)