• 2

DNS-323超簡單改機法 PART2

感謝OPIH技術指導。

感謝lotpeter兄不吝嗇提供ML改機法,經過幾天研究,終於找出安裝網頁的方法和程式,
在改機前必須安裝lotpeter兄的超簡單改機法,方能繼續安裝
先至http://www.mobile01.com/topicdetail.php?f=110&t=476080&last=4671419
下載超簡單改機法附加檔
裡面的檔案會有:
lnx_bin (資料夾,裡面是核心檔案)
mldonkey (資料夾,裡面有mldonkey啟動後的預設設定檔downloads.ini)
fun_plug (沒有副檔名,telnet的啟動檔)
fun_plug.tar (telnet啟動要用的核心程式)
mlnet.sh (自動化批次檔)
放置於”Volume_1”下

正式安裝PHP
重新啟動DNS323…..開啟PUTTY選擇TELNET連線
PUTTY http://www.csie.ntu.edu.tw/~piaip/pietty/

另外還需要下列檔案
1.lighttpd-1.4.17.tgz
2.php-5.2.4.tgz
3.imagemagick-6.3.4_9.tgz
4.libjpeg-6b.tgz
5.libpng-1.2.18.tgz

連線後請輸入下列紅色指令(可直接複製)
cd /mnt/HD_a2
wget http://www.inreto.de/dns323/fun-plug/0.3/lighttpd-1.4.17.tgz
wget http://www.inreto.de/dns323/fun-plug/0.3/php-5.2.4.tgz
wget http://www.inreto.de/dns323/fun-plug/0.3/imagemagick-6.3.4_9.tgz
wget http://www.inreto.de/dns323/fun-plug/0.3/libjpeg-6b.tgz
wget http://www.inreto.de/dns323/fun-plug/0.3/libpng-1.2.18.tgz


安裝 lighttpd
funpkg.sh lighttpd-1.4.17.tgz

安裝 PHP 5.2.4
funpkg.sh php-5.2.4.tgz
cp fun_plug.d/etc/lighttpd.conf-with-php-sample fun_plug.d/etc/lighttpd.conf
chmod +x fun_plug.d/start/lighttpd.sh


安裝 ImageMagick, libpng, libjpeg
funpkg.sh imagemagick-6.3.4_9.tgz
funpkg.sh libpng-1.2.18.tgz
funpkg.sh libjpeg-6b.tgz


建立www相關資料夾資料夾
mkdir www
mkdir www/pages
mkdir www/logs


更改檔案權限
chmod 777 www
chmod 777 www/pages
chmod 777 www/logs


第一次執行lighttpd
./fun_plug.d/start/lighttpd.sh

建立一個PHP網頁
建立一個文字文件
輸入
<?php
phpinfo();
?>
改檔名為index.php
放置於/Volume_1/www/pages/裡即可
開啟瀏覽器(下圖)
輸入http://<你的DNS-323 IP>:8080/
如顯示

恭喜你已完成安裝

如要更改PORT或相關設定
請開啟下列檔案更改
vi lighttpd.conf


DNS-323超簡單改機法 PART2

2008-01-16 14:10 發佈
文章關鍵字 機法 323
接下來看看能不能研究出安裝相簿及MYSQL囉
幫推幫推
我有找到國外的相關改機論壇~~~~

http://forum.dsmg600.info/f3-DNS-323-General-Discussion.html

小弟英文很爛,希望有好心的大大能測試一下,順便翻譯,造福國內網友~~~
PHP 加 mySQL 支援已經有囉~~ 連結如下:
http://81.216.140.39/dns-323/mysql_and_php/

步驟:
要裝他的 php-5.2.6-mysql-1.tgz 之前一定要先移除舊版PHP

shell> funpkg -r php-5.2.x-x.tgz

然後照著打就可以了
開一個新資料夾放檔案 (也可以不開)
mkdir additional_packages
進入新資料夾
cd additional_packages
下載mySQL 資料庫
wget http://81.216.140.39/dns-323/mysql_and_php/mysql-5.1.23-rc-2.tgz
下載PHP (支援 mysql 版本)
wget http://81.216.140.39/dns-323/mysql_and_php/php-5.2.6-mysql-1.tgz
安裝mySQL 資料庫
funpkg -i mysql-5.1.23-rc-2.tgz
安裝PHP (支援 mysql 版本)
funpkg -i php-5.2.6-mysql-1.tgz


以下是你應該會看到的過程. 可以用來對照
~/HD_a2 # mkdir additional_packages
~/HD_a2 # cd additional_packages/
~/HD_a2/additional_packages # wget http://81.216.140.39/dns-323/mysql_and_php/my
sql-5.1.23-rc-2.tgz
Connecting to 81.216.140.39 (81.216.140.39:80)
mysql-5.1.23-rc-2.tg 100% |*******************************| 10632k 00:00:00 ETA
~/HD_a2/additional_packages # wget http://81.216.140.39/dns-323/mysql_and_php/ph
p-5.2.5-mysql-4.tgz
Connecting to 81.216.140.39 (81.216.140.39:80)
php-5.2.5-mysql-4.tg 100% |*******************************| 6389k 00:00:00 ETA
~/HD_a2/additional_packages # funpkg -i mysql-5.1.23-rc-2.tgz
Installing package mysql-5.1.23-rc-2 ...
~/HD_a2/additional_packages # funpkg -i php-5.2.5-mysql-4.tgz
Installing package php-5.2.5-mysql-4 ...
~/HD_a2/additional_packages # mysql_install_db
Installing MySQL system tables...
080424 13:38:26 [Warning] option 'thread_stack': unsigned value 65536 adjusted t
o 131072
OK
Filling help tables...
080424 13:38:27 [Warning] option 'thread_stack': unsigned value 65536 adjusted t
o 131072
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/ffp/bin/mysqladmin -u root password 'new-password'
/ffp/bin/mysqladmin -u root -h NAS password 'new-password'

Alternatively you can run:
/ffp/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /ffp ; /ffp/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /ffp/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /ffp/bin/mysqlbug script!

The latest information about MySQL is available at http://www.mysql.com/
Support MySQL by buying support/licenses from http://shop.mysql.com/


成功啦恭喜 :D
要執行的話去找mysqld.sh 輸入
mysqld.sh start

mysqld.sh stop



php裝好後要重新啟動lighttpd. 就可以啦~

有問題歡迎討論
免責聲明:本文所載資料僅供參考,以上都是玩笑話,並不構成投資建議,本人對該資料或使用該資料所導致的結果概不承擔任何責任。
AF35 wrote:
PHP 加 mySQ...(恕刪)
請問安裝完這些套件之後就可以使用PHP 加 mySQL 那BT跟盧子的部分也是正常使用嗎?
天際囊蓋四大洋 翔翼敖游五大洲 志向節揚傲亏天 氣度深廣遼勝海
funplug要升級到0.5. 之前lotpeter大寫的教學是funplug 0.3

然後mldonkey 跟其他的package全部重抓支援funplug 0.5 的就可以了.

我上面寫的MySQL 跟 PHP package 都是funplug 0.5 版的
免責聲明:本文所載資料僅供參考,以上都是玩笑話,並不構成投資建議,本人對該資料或使用該資料所導致的結果概不承擔任何責任。
請問有人試成功在dns-323上架設,網路相簿嗎?
沒試過. 但是既然有PHP 跟 mysql 應該不太難架吧? 等我有空試試..
免責聲明:本文所載資料僅供參考,以上都是玩笑話,並不構成投資建議,本人對該資料或使用該資料所導致的結果概不承擔任何責任。
chiyu wrote:
感謝OPIH技術指導...(恕刪)


哈囉 您好~~

不好意思打擾你囉~~因為我也是買DNS-323這台機器~~最近想放照片~~

不知道該如何設定喔~~這台可以改成放照片的空間嗎?謝謝~~可以教一下嗎?謝謝
感謝在Mobile01幫助過我的人~~謝謝您
DNS-323超簡單改機法 PART2
我最近也買了一台 我不太懂PHP
不過大大的方法我都照做也OK了
不過 我看到一個PHP 的網頁 想放上去 有高手願意指點嗎???
dns-323+xoops.php
  • 2
內文搜尋
X
評分
評分
複製連結
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?