การเข้าถึง
- เปิดเบราว์เซอร์แล้วไปที่:
https://<SERVER_IP>/index.php/setup - ทำตามขั้นตอนของ web installer เพื่อติดตั้งให้เสร็จสมบูรณ์
ความปลอดภัย (สำคัญ)
หลังจากตั้งค่าเริ่มต้นเสร็จแล้ว ให้แทนที่บรรทัด DISABLE_SETUP=false พร้อม DISABLE_SETUP=true in /var/www/invoiceplane/ipconfig.php เพื่อป้องกันการเข้าถึงหน้าติดตั้งโดยไม่ได้รับอนุญาต
sed -i 's/DISABLE_SETUP=false/DISABLE_SETUP=true/g' /var/www/invoiceplane/ipconfig.php
ข้อมูลประจำตัว
เก็บไว้ใน: /root/.invoiceplane-credentials
มุมมอง:
cat /root/.invoiceplane-credentials
ประกอบด้วย:
- ชื่อฐานข้อมูล, ผู้ใช้, รหัสผ่าน
- รหัสผ่าน root: MariaDB
- URL แอปพลิเคชัน
ไฟล์และไดเรกทอรีสำคัญ
- ไดเรกทอรี่การติดตั้ง:
/var/www/invoiceplane - การตั้งค่าหลัก:
/var/www/invoiceplane/ipconfig.php - Nginx config
/etc/nginx/sites-available/invoiceplane.conf - ไฟล์ข้อมูลประจำตัว:
/root/.invoiceplane-credentials
การจัดการบริการ
# Check services
systemctl status nginx
systemctl status mariadb
systemctl status php8.3-fpm
# Restart services
systemctl restart nginx
systemctl restart mariadb
systemctl restart php8.3-fpm