- Webmin Shell: https://49.231.27.66:10000/shell/?xnavigation=1
- Subdirectory:
tpmap_act - ไฟล์:
household-dashboard.html
เปิด browser ไปที่: https://49.231.27.66:10000/shell/?xnavigation=1
pwd
ls -la(เปลี่ยน path ให้ตรงกับ document root ของคุณ)
# ตัวอย่าง paths ที่เป็นไปได้:
cd /var/www/html
# หรือ
cd /home/yourusername/public_html
# หรือ
cd /usr/share/nginx/htmlกรณีที่ 1: ถ้ายังไม่มี Repository (Clone ครั้งแรก)
# Clone repository
git clone https://github.com/bogarb12/OpenGISData-Thailand.git
# เข้าไปใน directory
cd OpenGISData-Thailand
# เปลี่ยนไปยัง branch ที่ต้องการ
git checkout claude/household-data-dashboard-0174AUdvgg9Vkk6Ew942ATnGกรณีที่ 2: ถ้ามี Repository อยู่แล้ว (Update)
# เข้าไปใน directory ของ repository
cd OpenGISData-Thailand
# Fetch ข้อมูลล่าสุดจาก remote
git fetch origin
# เปลี่ยนไปยัง branch ที่ต้องการ
git checkout claude/household-data-dashboard-0174AUdvgg9Vkk6Ew942ATnG
# Pull ข้อมูลล่าสุด
git pull origin claude/household-data-dashboard-0174AUdvgg9Vkk6Ew942ATnG# ตรวจสอบว่ามีไฟล์อยู่ใน tpmap_act/
ls -la tpmap_act/
# ควรจะเห็น household-dashboard.html# ให้สิทธิ์อ่านไฟล์
chmod 644 tpmap_act/household-dashboard.html
# ให้สิทธิ์เข้าถึง directory
chmod 755 tpmap_actเปิด browser และทดสอบเข้าถึง:
http://49.231.27.66/tpmap_act/household-dashboard.html
หรือ
http://your-domain.com/tpmap_act/household-dashboard.html
cd /var/www/html
git clone https://github.com/bogarb12/OpenGISData-Thailand.git
cd OpenGISData-Thailand
git checkout claude/household-data-dashboard-0174AUdvgg9Vkk6Ew942ATnG
chmod 755 tpmap_act
chmod 644 tpmap_act/household-dashboard.html
ls -la tpmap_act/cd /var/www/html/OpenGISData-Thailand
git fetch origin
git checkout claude/household-data-dashboard-0174AUdvgg9Vkk6Ew942ATnG
git pull origin claude/household-data-dashboard-0174AUdvgg9Vkk6Ew942ATnG
ls -la tpmap_act/# ให้สิทธิ์ owner เป็น web server user (เช่น www-data, apache, nginx)
sudo chown -R www-data:www-data tpmap_act/
# หรือ
sudo chown -R apache:apache tpmap_act/# ติดตั้ง git
sudo apt-get update
sudo apt-get install git
# หรือสำหรับ CentOS/RHEL
sudo yum install git# ตรวจสอบ SELinux (สำหรับ CentOS/RHEL)
sudo chcon -R -t httpd_sys_content_t tpmap_act/
# หรือปิด SELinux ชั่วคระว
sudo setenforce 0-
Document Root: path อาจแตกต่างกันตามการตั้งค่า web server ของคุณ
- Apache บน Ubuntu/Debian:
/var/www/html - Apache บน CentOS:
/var/www/html - Nginx:
/usr/share/nginx/html - cPanel:
/home/username/public_html
- Apache บน Ubuntu/Debian:
-
Branch: ตอนนี้ใช้ branch
claude/household-data-dashboard-0174AUdvgg9Vkk6Ew942ATnG -
URL เข้าถึง:
http://your-server/tpmap_act/household-dashboard.html -
ถ้าต้องการ merge เข้า main branch:
git checkout main git merge claude/household-data-dashboard-0174AUdvgg9Vkk6Ew942ATnG git push origin main
- เข้า Webmin Shell สำเร็จ
- Clone/Pull repository สำเร็จ
- ไฟล์อยู่ใน
tpmap_act/household-dashboard.html - ตั้งค่า Permission ถูกต้อง
- ทดสอบเข้าถึงผ่าน browser สำเร็จ