Setup Server
Menyiapkan Server Anda untuk ComusThummz
What This Guide Does
Pemandu ini berjalan melalui pengaturan server web untuk menjalankan ComusThumtz. Anda akan belajar bagaimana mempersiapkan langkah-langkah lingkungan hosting Anda, apakah Anda menggunakan panel kontrol seperti cPanel atau HestiaCP, atau menyiapkan server baru sendiri.
Pada akhir panduan ini, server Anda akan siap untuk memasang dan menjalankan ComusThumtz dengan semua pengolahan video, penanganan gambar, dan fitur situs bekerja dengan benar.
[Cuplikan Layar: kontes-overview]
Who This Guide Is For
Pemandu ini ditulis untuk pemilik situs yang perlu menyiapkan server untuk ComusThumz. Anda harus menggunakan panduan ini jika:
- Anda baru saja membeli hosting atau server dan perlu mengkonfigurasinya
- Anda bermigrasi ComusThumz ke server baru
- Server Anda saat ini tidak bekerja dengan benar dan Anda perlu memperbaiki setup
Anda TIDAK perlu pemrograman atau pengetahuan teknis canggih untuk mengikuti panduan ini. Kami akan memberikan jelas, langkah demi langkah instruksi untuk setiap jenis hosting.
Memilih Tipe Host Anda
ComusThumtz dapat menjalankan beberapa jenis hosting. Inilah yang perlu Anda ketahui tentang masing-masing:
Host Tipe Dibandingkan
Apa yang dibutuhkan Server Anda
Setidaknya, kebutuhan hosting Anda:
- 1 GB RAM (4 GB atau lebih direkomendasikan untuk situs video)
- 1 Inti CPU (4 + core direkomendasikan)
- 10 GB ruang disk (tergantung pada berapa banyak konten Anda akan tuan rumah)
- Ubuntu 20.04 + atau Linux serupa sistem operasi
Memahami Proses Penyiapan
Tidak peduli jenis hosting yang Anda pilih, proses setup mengikuti langkah-langkah dasar yang sama:
- Pilih versi perangkat lunak yang benar - Memastikan Anda memiliki baru-baru ini, software yang kompatibel
- Atur pengaturan - Menyesuaikan batas dan izin untuk upload video
- Pasang perangkat yang diperlukan - Menambahkan perangkat lunak yang memproses video dan gambar
- Unggah berkas ComusThumtz - Menempatkan aplikasi pada server Anda
- Atur hak akses - Memastikan perangkat lunak dapat membaca dan menulis berkas
- Jadwal tugas otomatis - Mengatur pekerjaan latar belakang yang memproses video
- Jalankan pemasang - Menyelesaikan setup melalui web browser Anda
Kami akan berjalan melalui setiap langkah untuk jenis hosting spesifik Anda.
Menyiapkan CPanel Hosting
cPanel adalah panel kontrol yang paling umum pada host bersama dan VPS. Berikut adalah cara untuk mengkonfigurasinya untuk ComusThumtz.
Langkah 1: Pilih Versi PHP Anda
- Log in ke akun cPanel Anda
- Cari bagian yang disebut Perangkat Lunak
- Klik Manajer MultiPHP
- Periksa kotak di sebelah nama domain Anda
- Dari dropdown, pilih PHP 8.3 (atau versi 8.x tertinggi yang tersedia)
- Klik Terapkan
[Cuplikan layar: cpanel-php-versi]
Langkah 2: Atur Pengaturan PHP
- Kembali ke Perangkat Lunak bagian
- Klik Penyunting INI MultiPHP
- Pilih Mode Penyunting di puncak
- Pilih domain Anda dari dropdown
- Cari dan perbarui pengaturan ini:
- Klik Simpan di dasar
Langkah 3: Aktifkan Fungsi Proses Video
Pada host bersama, Anda mungkin tidak dapat melakukan hal ini sendiri. Hubungi penyedia hosting Anda dan minta mereka untuk mengaktifkan fungsi PHP untuk akun Anda:
exec
- shellexec
- pasthru
- procterbuka
- popen
Katakan kepada mereka: "Saya perlu fungsi-fungsi ini aktif untuk pemrosesan video di situs saya".
Jika Anda memiliki akses WHM (VPS atau reseller hosting):
Masuk ke WHMGo ke Konfigurasi Layanan > Penyunting Konfigurasi PHP
- Temukan pengaturan yang disebut matikanfungsi
- Hapus fungsi yang terdaftar di atas dari baris itu
- Klik Simpan dan Bangun ulang
Langkah 4: Buat Basis Data Anda
- Dalam cPanel, pergi ke Basis Data > Basis Data MySQL
- Bawah Buat Basis Data Baru, masukkan nama seperti
comus - Klik Buat Basis Data
- Scroll ke bawah ke Tambah Pengguna Baru
- Buat nama pengguna dan sandi yang kuat
- Klik Buat Pengguna
- Scroll ke bawah ke Tambah Pengguna Ke Basis Data
- Pilih basis data dan pengguna Anda dari dropdowns
- Klik Tambah
- Periksa SEMUA PRIVILEGES pada layar berikutnya
- Klik Membuat Perubahan
Langkah 5: Upload ComusThummz Files
Pilihan A: Menggunakan Manajer Berkas
- Dalam cPanel, pergi ke Berkas > Manajer Berkas
- Navigasi ke publikhtml folder
- Klik Unggah di puncak
- Unggah berkas ComusThumz zip Anda
- Setelah diunggah, benar - klik file zip dan pilih Ekstrak
- Hapus berkas zip setelah mengekstrak
Pilihan B: Menggunakan FTP
- Gunakan program FTP seperti FileZilla atau WinSCP
- Hubungkan menggunakan rincian ini:
- Host: yourdomain.com atau ftpyourdomain.com
- Nama pengguna: nama pengguna cPanel Anda
- Sandi: sandi cPanel Anda
- Navigasi ke publikfolder html
- Unggah semua berkas ComusThumtz ke folder ini
Langkah 6: Atur Tugas Otomatis
ComusThumz perlu menjalankan tugas-tugas latar belakang setiap menit untuk memproses video dan mempertahankan situs Anda.
- Dalam cPanel, pergi ke Tingkat lanjut > Cron Jobs
- Bawah Tambahkan Job Baru Cron, mengatur waktu untuk:
(setiap menit) - Di Perintah kotak, masukkan:
Ganti username dengan nama pengguna sebenarnya cPanel Anda.
- Klik Tambahkan Job Baru Cron
Langkah 7: Selesaikan Instalasi
- Buka peramban web Anda
- Pergi ke:
https://yourdomain.com/install/ - Ikuti 7 langkah penyihir instalasi
- Ketika ditanya untuk rincian basis data, gunakan informasi dari Langkah 4
- Setelah instalasi selesai, hapus
/install/folder
Menyiapkan HestiaCP (VPS)
HestiaCP adalah panel kontrol modern gratis untuk server pribadi virtual. Ini memberi Anda kontrol lebih dari berbagi hosting.
Langkah 1: Tambah Domain Anda
- Masuk ke HestiaCP di
https://your-server-ip:8083 - Klik WEB tab di atas
- Klik hijau Tambah Domain Web tombol
- Ketikkan nama domain Anda
- Periksa kotak untuk Dukungan SSL
- Periksa kotak untuk Mari kita enkripsi
- Klik Simpan
[Cuplikan layar: hestiacp-add-domain]
Langkah 2: Pilih Versi PHP
- Tetap di WEB tab
- Temukan domain Anda dalam daftar
- Klik ikon kunci pas di sebelahnya
- Dari PHP dropdown, pilih PHP 8.3
- Klik Simpan
Langkah 3: Hubungkan via SSH
Untuk langkah yang tersisa, Anda harus terhubung ke server Anda menggunakan SSH. Hal ini memungkinkan Anda mengetik perintah secara langsung.
Pada Windows:
- Unduh PuTTY atau gunakan Terminal Windows
- Menyambung ke alamat IP server Anda
- Gunakan port 22
- Log masuk dengan nama pengguna HestiaCP dan kata sandi
Pada Mac / Linux:
- Buka Terminal
- Tipe:
ssh username@your-server-ip - Masukkan sandi Anda ketika diminta
Langkah 4: Aktifkan Proses Video
Secara baku, HestiaCP menonaktifkan fungsi yang diperlukan untuk memproses video. Mari kita perbaiki itu.
Ketik perintah ini satu per satu:
Ini membuka penyunting teks. Tekan Ctrl + W untuk mencari, lalu ketik disablefunctions dan tekan Enter.
Anda akan melihat garis panjang yang terlihat seperti:
Hapus kata-kata ini dari baris: exec,passthru,shellexec,procopen,popen
Tekan Ctrl + X untuk keluar, kemudian Y untuk menyimpan, kemudian Masukkan untuk mengkonfirmasi.
Sekarang mulai PHP:
Langkah 5: Atur Batas Unggah
Masih dalam SSH, jalankan perintah yang sama untuk menyunting konfigurasi PHP:
Gunakan Ctrl + W untuk mencari dan memperbarui nilai ini:
- Cari
memorylimitdan mengubahnya menjadi512M - Cari
maxexecutiontimedan mengubahnya menjadi600 - Cari
uploadmaxfilesizedan mengubahnya menjadi500M - Cari
postmaxsizedan mengubahnya menjadi500M - Cari
maxinputvarsdan mengubahnya menjadi10000
Simpan (Ctrl + X, lalu Y, lalu Masukkan) dan restart:
Langkah 6: Pasang Perangkat Lunak Proses Video
ComusThumz menggunakan FFmpeg untuk memproses video. Pasang:
Verifikasi itu bekerja:
Anda harus melihat informasi versi. Bila Anda melihat kesalahan, FFmpeg tidak dipasang dengan benar.
Langkah 7: Unggah Berkas Anda
Kembali di HestiaCP (dalam peramban Anda):
Klik BERKAS tab
- Navigasi ke:
/home/username/web/yourdomain.com/publichtml/ - Klik Unggah dan pilih berkas ComusThumz zip Anda
- Setelah mengunggah, klik Ekstrak pada berkas zip
- Hapus berkas zip
Langkah 8: Atur Tugas Otomatis
Kembali ke SSH, tipe:
Bila diminta untuk memilih suatu penyunting, pilih nano (biasanya pilihan 1).
Tambah baris ini di bawah:
Ganti username dan yourdomain.com dengan nilai aktual Anda.
Simpan (Ctrl + X, kemudian Y, kemudian Enter).
Langkah 9: Instalasi Lengkap
- Dalam browser Anda, pergi ke:
https://yourdomain.com/install/ - Ikuti wizard instalasi
- Setelah selesai, hapus
/install/folder
Menyiapkan Plesk
Plesk adalah panel kontrol populer untuk VPS dan server khusus.
Langkah 1: Tambah Domain Anda
- Log masuk ke Plesk
- Klik Situs Web & Domain di kiri
- Klik Tambah Domain
- Masukkan nama domain Anda dan konfigurasi pengaturan
- Aktifkan Dukungan SSL / TLS dan pilih Mari kita enkripsi
- Klik OK
Langkah 2: Atur PHP
- Bawah Situs Web & Domain, menemukan domain Anda
- Klik Pengaturan PHP
- Pilih PHP 8.3 (FPM aplikasi)
- Scroll ke bawah dan set nilai-nilai ini:
- Klik Terapkan atau OK
Langkah 3: Aktifkan Fungsi Proses Video
Masih dalam pengaturan PHP:
- Gulung ke Direktif tambahan bagian
- Tambah baris ini:
(Itu hanya disablefunctions = (Tidak ada sesuatu pun yang serupa dengan ayat-ayat Allah) yang berjumlah sembilan ayat tersebut.
- Klik Terapkan atau OK
Langkah 4: Pasang FFmpeg
Hubungkan ke server via SSH dan jalankan:
Untuk server Ubuntu / Debian:
Untuk server Centos / AlmaLinux:
Verifikasi:
Langkah 5: Buat Basis Data
- Di Plesk, pergi ke Basis Data
- Klik Tambah Basis Data
- Masukkan nama basis data:
comusthumbz - Buat nama pengguna dan sandi yang kuat
- Hibah semua hak
- Klik OK
Langkah 6: Unggah Berkas
Pilihan A: Manajer Berkas Plerik
- Ke Berkas di Plesk
- Navigasi ke
httpdocs/ - Unggah berkas ComusThumz Anda
Pilihan B: FTP / SFTP
Gunakan kredensial yang ditampilkan dalam Plesk di bawah Akses FTP
Langkah 7: Atur Tugas Otomatis
- Di bawah domain Anda, klik Tugas Dijadwalkan
- Klik Tambah Tugas
- Atur jadwal untuk dijalankan setiap menit:
- Perintah:
- Klik OK
Step 8: Jalankan Installer
Ke https://yourdomain.com/install/ dan menyelesaikan setup.
Menata Jalan Awan
Awan menyediakan host awan yang dikelola dengan easy-to-use panel.
Langkah 1: Luncurkan Aplikasi Anda
- Log masuk ke Cloudways
- Klik Luncurkan > Aplikasi
- Pilih PHP Gubahan sebagai tipe aplikasi
- Pilih ukuran server Anda (disarankan minimum 2 GB RAM)
- Pilih penyedia awan (DigitalOcean, Vultr, AWS, dsb.)
- Masukkan nama bagi aplikasi dan server
- Klik Luncurkan
Tunggu beberapa menit untuk server Anda untuk dibuat.
Langkah 2: Atur PHP
- Klik pada aplikasi Anda
- Ke Pengaturan Aplikasi > Pengaturan PHP
- Tata nilai ini:
- PHP Versi: 8,3
- Batas Memori: 512M
- Waktu Eksekusi Max: 600
- Upload Max Filesize: 500M
- Ukuran Maksimum Post: 500M
- Vars Masukan Max: 10.000
- Klik Simpan Perubahan
Langkah 3: Aktifkan Proses Video
Klik pada Anda Server (bukan aplikasi) Pergi ke Pengaturan & Paket > Tingkat lanjutCari Pengaturan FPM PHP
- Dalam menonaktifkanbaris fungsi, hapus:
exec,shellexec,passthru,procopen,popen - Simpan perubahan
Langkah 4: Pasang FFmpeg
- Go to Server > Master Credentials
- Note the SSH username and password
- Connect via SSH using these credentials
- Run:
- Verify:
Step 5: Upload Files
- In Cloudways, go to your Application
- Note the SFTP details under Access Details
- Use an SFTP client to upload files to the
publichtml/folder
Step 6: Set Up Automated Tasks
In Cloudways, go to your ApplicationClick Cron Job ManagementClick Add Cron Job
- Schedule:
(every minute) - Command:
- Click Add
Step 7: Complete Installation
Visit https://yourdomain.com/install/ to complete setup.
Running the Installation Wizard
After setting up your server, the final step is running the ComusThumbz installer. This is the same process regardless of which hosting you chose.
How to Access the Installer
Open your web browser and go to:
Replace yourdomain.com with your actual domain.
The 7 Installation Steps
Step 1: Requirements Check
The installer automatically checks if your server is ready. You'll see a list of requirements with green checkmarks or red X marks.
Green checkmarks mean everything is fine. Red X marks mean something needs to be fixed before you can continue.
Common issues:
- Missing PHP extensions - go back and make sure you installed all required software
- Wrong PHP version - select PHP 8.3 in your control panel
- Permissions errors - contact your host for help
Click Next when all critical items are green.
Step 2: Database Setup
Enter the database information you created earlier:
Host: Usually localhost (don't change this unless your host said otherwise)
- Database Name: The name you created (like
comusthumbzorusernamecomus) - Username: Your database username
- Password: Your database password
- Table Prefix: Leave as
tbl(recommended)
Click Next. The installer will create all the database tables automatically.
Step 3: Configuration
The installer automatically sets up your configuration file. You don't need to do anything here - just click Next.
Step 4: Folder Setup
The installer creates all the folders needed for uploads, logs, and temporary files. Click Next.
Step 5: Default Data
The installer adds essential default data like categories and settings. Click Next.
Step 6: Admin Password
Choose a strong password for logging in to your admin panel. You'll use this to access:
Write down this password somewhere safe.
Click Next.
Step 7: Completion
You'll see a success message. The installer will remind you to delete the /install/ folder.
This is important: Delete the install folder right away for security.
To delete it:
- Go to your File Manager or FTP
- Find the folder called
installin your main directory - Delete it completely
Making Sure Everything Works
After installation, check these items to make sure your server is working correctly.
Test 1: Can You Access the Admin Panel?
Go to: https://yourdomain.com/ct/admin/
You should see the login page. Login with the password you created in Step 6 of installation.
If you see an error, your web server might not be configured correctly. Review the server setup steps for your hosting type.
Test 2: Are Background Tasks Running?
Wait about 5 minutes after setting up your cron job, then check if it's working.
Via cPanel/Plesk/Cloudways:
Use the File Manager to navigate to:
Open this file. You should see entries with timestamps showing the cron job is running.
If the file is empty or missing:
- Go back and check that you set up the cron job correctly
- Make sure you used the right path for your hosting type
- Wait a few more minutes and check again
Test 3: Can You Upload Videos?
- Log in to your admin panel
- Go to Content > Video Upload
- Try uploading a small video file (under 50 MB for testing)
- After upload completes, check the video status
The video should show as "Processing" or "Active" within a few minutes. If it stays "Pending" forever, your video processing isn't working - see the Troubleshooting section below.
Test 4: Is Your Site Secure?
Visit your site at: https://yourdomain.com
Look for the padlock icon in your browser's address bar. If you see "Not Secure" instead, your SSL certificate may not be installed correctly.
Troubleshooting Common Problems
Problem: Videos Stay "Pending" Forever
What you see: You upload a video, but it never finishes processing. It stays stuck at "pending" status.
How to fix it:
- First, check if your automated tasks are running (see Test 2 above)
- If the cron log is empty, your scheduled task isn't running - review Step 6 or 7 in your hosting setup
- If the cron is running, check if video processing functions are enabled:
- Go back to Step 3 in your hosting setup
- Make sure
execand related functions are enabled - Contact your host if you can't enable them yourself
- Check if FFmpeg is installed:
- Connect via SSH
- Type:
ffmpeg -version - If you see an error, FFmpeg isn't installed - go back to the FFmpeg installation step
Problem: Upload Fails with "File Too Large"
What you see: When uploading large videos, you get an error saying the file is too large.
How to fix it:
Go back to Step 2 in your hosting setup and make sure you set these values:
uploadmaxfilesize = 500Mpostmaxsize = 500M
Also, if you're using Nginx (you'll know if you set it up manually), you need to add this to your server configuration:
Problem: Can't Log In to Admin Panel
What you see: You go to https://yourdomain.com/ct/admin/ but see a 404 error or can't access it.
How to fix it:
- Make sure you deleted the
/install/folder after installation - Check that you uploaded all files correctly - there should be a folder called
ctwith anadminfolder inside it - Check file permissions - your web server needs to be able to read the files
- If you set up the server manually, make sure URL rewriting is enabled (modrewrite for Apache)
Problem: "Permission Denied" Errors
What you see: Various errors mentioning "permission denied" or "cannot write to file."
How to fix it:
The web server doesn't have permission to write to certain folders. You need to fix file permissions.
For cPanel/Plesk/Cloudways users:
Contact your hosting support and tell them: "I need the web server to have write permissions on the ct/logs, ct/uploads, and ct/cache directories."
For manual server setup:
Connect via SSH and run:
Problem: Database Connection Failed
What you see: During installation, you get "Connection refused" or "Access denied."
How to fix it:
- Double-check your database username and password - these are the most common mistakes
- Make sure the database exists - log in to your control panel and verify you created it
- Make sure the database user has ALL PRIVILEGES on the database
- Try using
localhostas the host (not your IP address or domain name)
Problem: Site Is Slow or Times Out
What you see: Pages take forever to load or you get timeout errors.
How to fix it:
- Check if you set
maxexecution_time = 600in your PHP settings - If you're on shared hosting, you may have hit resource limits - contact your host or upgrade to VPS
- Clear your browser cache and try again
- Check if your server has enough RAM - video sites need at least 1 GB, but 4 GB is better
ct/logs/php-error.log for clues about what's wrong.What to Do Next
Now that your server is configured and ComusThumbz is installed:
- Secure your admin panel - Change the default admin password to something strong
- Configure storage - Set up CDN or storage servers for your video files
- Add content - Start uploading videos and building your site
- Customize appearance - Adjust colors, logos, and layout to match your brand
- Set up payments - Configure payment processors if you plan to charge for content
Related Guides
Getting Help
If you're stuck and these troubleshooting steps don't help:
- Check the error logs in your control panel
- Look at
ct/logs/php-error.logfor error messages - Contact your hosting provider - they can check if your server meets requirements
- Review the step-by-step instructions for your hosting type again
- Your hosting type (cPanel, HestiaCP, etc.)
- Your PHP version
- The exact error message you're seeing
- What step you're on
This helps support give you faster, more accurate answers.
You're all set! Your server is ready to run ComusThumbz. Move on to configuring your site settings and adding content.