- SETI@home

- MRTG Router Traffic
- Roxen & IMHO Mail
- Web Stats
- WebShell Filemanager
- Sound Blaster Live !
- XMMS Mp3 player
- phpPolls Survey

- Database Document
- Internet Networking
- PHP & Perl
- Linux Document
- Security

profile.gif (1646 bytes)

- Shock with me !!
- Search
- Screen Shot
- GuestbooK
- Webboard
- Cps 1998 Link
 

banner.gif (3697 bytes)

WebShell Files Manager Installation howto
By.. apples
Date.. 11 ธันวาคม 2542
Licent.. สงวนลิขสิทธิ์เอกสารนี้โดย apples   การเผยแพร่เอกสารนี้จะต้องอยู่ภายไต้ เงื่อนไขของ GNU General Public License เวอร์ชั่น 2.0 ที่ออกโดย Free Sofware Foundation กรุฒาอ่านรายละเอียดของ GPL ที่ <http://linux.thai.net/gpl.html>

         การติดตั้ง WebShell Files Manager

    สำหรับตัวโปรแกรม WebShell ที่จะแนะนำต่อไปนี้บางคนอาจจะไม่รู้จักนะครับ โดยผมจะอธิบายก่อนว่า WebShell นี่คืออะไร เพื่อให้ท่านรู้จุดประสงค์หลักของตัวโปรแกรม และนำไปใช้ในงานที่เกี่ยวกับโปรแกรมตัวนี้
         WebShell นี้เป็นตัวที่ใช้ในการ Management file ผ่าน Webbrower เปรียนเทียบง่ายๆ ก็คือตัวที่ใช้ในการ Upload และแก้ไขหรือเขียน homepage ผ่าน Web คล้ายๆ กับตัวโปรแกรม EZ Upload ของ www.geocities.com ครับที่ใช้การ upload file ผ่าน Brower ซึ่งการ Upload file ผ่าน Browser นั้น ยังอำนวยความสะดวกให้กับ user ที่พึ่งเริ่มใช้ Internet อีกทั้งยังมีความรวดเร็วและมี Interface ที่สวยงามด้วยทำให้ user ต่างๆอาจาหลงไหลใน Interface และความสะดวกสบายในการ ใช้งาน ตัว Webshell ครับ (^____^)
         ถ้าท่านใดเริ่มสนใจในตัวโปรแกรม WebShell แล้วก็เริ่ม Download และเรียนรู้ขั้นตอนการติดต้องตาม วิธีทำที่จะแนะนำต่อไปนี้ได้เลยครับ ก่อนอื่นเราก็ทำการ Download ตัวโปรแกรม WebShell มาก่อนครับ โดยหาได้จาก Web Site ของ Distribution นี้โดยตรงสามารถไป Download ได้ที่ http://psoft.piva.net หรืออาจจะ Download จากที่นี่เลยก็ได้
>> webshell.tar.gz << ขนาดไฟล์ 254 K ครับผม
1.เริ่มด้วยการนำไฟล์ copy ไว้ใน /tmp ก่อนนะครับ
2.
#  tar xvfz webshell.tar.gz
3.
ขั้นตอนต่อไปก็ทำการสร้างไฟล์ config.site โดยการ copy จาก Template ที่มีอยู่แล้ว #  cp config.template config.site
4.
เนื้อความในไฟล์ config.site ที่ผมได้ทำการติดตั้งและใช้งานได้สมบูรณ์แบบอีกทั้งมีความเป็นระเบียบมี ดังต่อไปนี้ครับ...

# BEGIN config.site
# ไฟล์ Config WebShell โดย Output จะไปอยู่ที่ Directory /files_manager เพื่อให้เป็นสัดส่วนความเป็นระเบียบและแก้ไขได้ง่าย
--------------------------------------------------------
# WebShell 2.2 Configuration file

# Suffix appended to the cgi scripts
cgi_sufix=".cgi"

# Location of cgi scripts
cgidir="/usr/local/apache/cgi-bin/files_manager"    
<< ตรงนี้จะอยู่ใน cgi-bin directory ของแต่ละท่านอาจไม่เหมือนกัน

# Location of html documents
htmldir="/usr/local/apache/htdocs/files_manager"  
<< ตรงนี้จะอยู่ใน htodcs directory ของแต่ละท่านอาจาไม่เหมือนกัน

# Hostname
hostname="www.apples.cx"  
<< อย่าลืมแก้ไขให้ตรงกับ host name ของท่านให้ถูกต้องนะครับ

# HTTP protocol name (http or https)
protocol="http"

# HTTP port (80 for http or 443 or https, or anything else depending
# on the settings in http server
port="80"     
<< ตรงนี้ใส่ port ที่จะเข้าใช้ WebShell ครับแต่สามารถใช้ port 80 ได้เลยโดยไม่มีปัญหา (default)

# CGI alias
cgi_alias="/cgi-bin/files_manager"
< ทำตามนี้เลยครับ

# HTML alias
doc_alias="/files_manager"
< ทำตามนี้เลยครับ

# minimum allowed user id
MIN_UID=500

# minimum allowed group id
MIN_GID=50

# location of html documents in user accounts
htprotect_startdir="public_html"   
<< ตรงนี้เป็น user directory ครับปกติ Apache ตั้งค่ามาเป็นแบบนี้

# Enter your company name in here
company="Positive Software Corporation"


# You can leave this section unchanged
webshell_name="webshell"
htprotect_name="htprotect"
wshadmin_name="wshadmin"
wshsupp_name="wshsupp"

# Extra include dirs (in form of -Idir)
idir=""

# Extra libraries (in form of -llib or -Ldir)
ldir=""
# END OF FIlE

4. เมื่อทำการแก้ไขเสร็จเรียบร้อยแล้ว ให้พิมพ์คำสั่ง "./configure"
5. จากนั้นก็พิมพ์คำสั่ง
"make" เพื่อทำการ Compile package ( require gcc 2.7.1 สำหรับผู้ใช้ Slackware 4.0,7.0 & Redhat 6.0 ก็ไม่ต้องกังวลเรื่อง gcc )
6. เสร็จจากการ compile แล้วก็ทำการติดตั้งโดยใช้คำสั่ง
"make install"
7. จากนั้นก็ทำการทดสอบโดยการ browse ไปที่ http://www.apples.cx/files_manager/webshell/   ลองทดสอบการทำงานของ WebShell

8. เสร็จแล้วหละครับ ต่อไปก็ดำน้ำได้ตามสบายเลยครับ (^_^)

ภาพตัวอย่าง

webshell01.gif (2906 bytes)

เมื่อผ่านการ login

webshell02.gif (38141 bytes)



EOF หวังว่าทุกท่านอาจได้รับประโยชน์จากเอกสารนี้ไม่มากก็น้อยนะครับ (^_^)

*** หมายเหตุ *** www.apples.cx นี้เป็นเพียง URL สมมติไม่สามารถเข้าใช้งานได้จริง
*** Contact Me  irc.au.ac.th #thailinux  nickname apples or post in my
Webboard :-)