Cara Update XAMPP ke PHP 8.5 di Windows + Solusi Semua Error Entry Point Not Found
![]() |
| xampp-upgrade-php-8.5 |
Daftar Isi
- Kenapa Muncul Error Entry Point Not Found?
- Tabel Error, Penyebab dan Solusi
- Tahap 0: Persiapan dan Download PHP 8.5
- Tahap 1: Ganti Folder ext (Error empty_fcall_info)
- Tahap 2: LoadFile OpenSSL (Error SSL_get0_group_name)
- Tahap 3: Sertifikat SSL Baru (Error ee key too small)
- Tahap 4: LoadFile libssh2 (Error libssh2_session_set_read_timeout)
- Tahap 5: Verifikasi Akhir
- Catatan Penting dan Cara Rollback
Kenapa Muncul Error Entry Point Not Found?
Setelah folder C:\xampp\php di-update ke PHP 8.5, Apache gagal start dengan dialog:
The procedure entry point XXX could not be located in the dynamic link library C:\xampp\php\ext\php_curl.dll
Penyebabnya ada di folder C:\xampp\php\ext dan C:\xampp\apache\bin: keduanya masih berisi DLL versi lama milik PHP 8.2 build tahun 2023. Extension PHP harus satu paket dengan versi core PHP-nya, tidak bisa dicampur versi.
Buktinya gampang dilihat dari ukuran dan tanggal file. php_curl.dll lama berukuran ±680 KB dan bertanggal Oktober 2023, sedangkan milik PHP 8.5.11 berukuran ±1.083 KB dan bertanggal September 2026. Fungsi empty_fcall_info sudah dihapus di PHP 8.5, tapi php_curl.dll lama masih memanggilnya. Muncullah error itu.
Tabel Error, Penyebab dan Solusi
| # | Pesan Error | Penyebab | Solusi |
|---|---|---|---|
| 1 | empty_fcall_info not found |
php_curl.dll masih versi 2023 (PHP 8.2) |
Ganti php_curl.dll dengan milik PHP 8.5.11 |
| 2 | SSL_get0_group_name not found |
libssl lama di C:\xampp\apache\bin (OpenSSL 3.1.3) yang dipakai, bukan milik PHP |
Tambah LoadFile OpenSSL milik PHP di httpd.conf |
| 3 | SSL routines::ee key too small |
Sertifikat SSL bawaan XAMPP RSA 1024-bit (tahun 2009) ditolak OpenSSL 3.5 | Generate ulang sertifikat SSL RSA 2048-bit |
| 4 | libssh2_session_set_read_timeout not found |
libssh2.dll lama di C:\xampp\apache\bin (2023) |
Tambah LoadFile libssh2 milik PHP di httpd.conf |
Tahap 0: Persiapan dan Download PHP 8.5
- Stop semua service di XAMPP Control Panel: Apache, MySQL, dan lainnya.
- Download paket PHP resmi yang cocok persis dengan instalasi Anda:
- Versi: PHP 8.5.11
- Tipe: Win32 VS17 x64 (TS / Thread Safety, bukan
nts-) - Link: https://windows.php.net/downloads/releases/php-8.5.11-Win32-vs17-x64.zip
- Extract zip ke folder mana pun, misalnya
C:\xampp\php-8.5.11-Win32-vs17-x64\. - Backup dulu folder
C:\xampp\php\ext\: copy biasa, simpan di luar folder XAMPP.
Cek dulu versi PHP XAMPP Anda lewat Command Prompt sebelum lanjut:
C:\xampp\php\php.exe -v
Harus tertulis ZTS Visual C++ 2022 x64. Kalau tertulis NTS, paket yang harus di-download adalah php-8.5.11-nts-Win32-vs17-x64.zip. Salah pilih paket, error terus di langkah berikutnya.
Tahap 1: Ganti Folder ext (Error #1: empty_fcall_info)
- Pastikan Apache sudah Stop. File DLL tidak boleh sedang dipakai proses lain.
- Buka
C:\xampp\php\ext\, hapus semua isi folder. Folderext-nya sendiri jangan dihapus. - Salin seluruh isi folder
<hasil-extract>\ext\keC:\xampp\php\ext\. - Kalau muncul dialog "Replace or Skip files", pilih "Replace the file in the destination". Jangan Skip.
Verifikasi wajib. Cek lewat PowerShell, hasilnya tidak boleh ada file bertanggal 2023 atau 2024:
Get-ChildItem C:\xampp\php\ext\*.dll | Where-Object LastWriteTime -lt "2026-01-01" | Select-Object Name,LastWriteTime
Khusus php_curl.dll, klik kanan lalu Properties. Kalau tanggalnya 22/09/2026 dengan ukuran ±1.083 KB, file sudah benar. Kalau masih 25/10/2023 dengan ukuran ±680 KB, file belum terganti dan langkah penggantian harus diulang.
Test cepat di PowerShell:
C:\xampp\php\php.exe -m | findstr curl
Harus muncul curl tanpa warning apa pun.
Tahap 2: LoadFile OpenSSL (Error #2: SSL_get0_group_name)
php_curl.dll baru butuh OpenSSL 3.5, tapi saat Apache start, Windows memuat libssl-3-x64.dll dari folder C:\xampp\apache\bin. Isi folder itu masih OpenSSL 3.1.3 dari tahun 2023 dan tidak punya fungsi SSL_get0_group_name. Folder aplikasi selalu diprioritaskan saat pencarian DLL, jadi versi lama yang menang.
Solusinya: tambahkan tiga baris ini di paling atas file C:\xampp\apache\conf\httpd.conf, sebelum baris LoadModule pertama.
LoadFile "C:/xampp/php/libssl-3-x64.dll" LoadFile "C:/xampp/php/libcrypto-3-x64.dll" LoadFile "C:/xampp/php/libssh2.dll"
Baris ketiga dibutuhkan di Tahap 4, sekalian ditambahkan di sini saja. Cara editnya: buka Notepad sebagai Administrator (klik kanan Notepad, pilih Run as administrator), buka file httpd.conf-nya, tempelkan tiga baris di atas di baris paling atas, lalu Save. Notepad biasa tidak bisa menyimpan file di folder Program Files.
Kenapa memakai LoadFile? Direktif ini memaksa Apache memuat DLL sejak awal. Karena nama filenya sama dengan yang dicari, semua modul berikutnya otomatis memakai versi yang sudah ter-load, yaitu versi baru milik PHP.
Tahap 3: Generate Ulang Sertifikat SSL (Error #3: ee key too small)
Setelah OpenSSL 3.5 aktif, Apache gagal start lagi dengan pesan:
[ssl:emerg] SSL routines::ee key too small AH00016: Configuration Failed
Sertifikat SSL bawaan XAMPP cuma RSA 1024-bit, dibuat tahun 2009 dan kedaluwarsa tahun 2019. Security level OpenSSL 3.5 menolak key di bawah 2048-bit, jadi mod_ssl berhenti total.
Langkah perbaikannya:
- Backup file lama: rename
server.crtdanserver.keydengan menambah.bakdi belakangnya. - Buka PowerShell, jalankan perintah ini satu baris penuh:
cd C:\xampp\apache\conf & "C:\Program Files\Git\usr\bin\openssl.exe" req -x509 -nodes -newkey rsa:2048 -days 3650 -keyout "ssl.key\server.key" -out "ssl.crt\server.crt" -subj "/C=ID/ST=Jakarta/L=Jakarta/O=XAMPP/CN=localhost"
Perintahnya memakai openssl bawaan Git for Windows. Keterangannya: -newkey rsa:2048 membuat key 2048-bit, -nodes membuat key tanpa password (wajib untuk server), -days 3650 membuat sertifikat berlaku 10 tahun, dan CN=localhost harus tetap localhost untuk akses lokal.
Tanda suksesnya: muncul tulisan ........+++++ lalu selesai tanpa error merah. Pesan "Warning: Writing private key" itu normal, abaikan.
Verifikasi: pastikan 2 file baru sudah ada di folder ssl.crt dan ssl.key, lalu cek isinya:
& "C:\Program Files\Git\usr\bin\openssl.exe" x509 -in "C:\xampp\apache\conf\ssl.crt\server.crt" -noout -text | findstr /C:"Public-Key" /C:"Not After"
Harus tertulis Public-Key: (2048 bit) dengan Not After tahun 2036.
Tahap 4: LoadFile libssh2 (Error #4: libssh2_session_set_read_timeout)
Pola errornya sama persis dengan Tahap 2. php_curl.dll butuh libssh2 v1.11 yang punya fungsi libssh2_session_set_read_timeout, tapi yang dimuat Windows adalah libssh2.dll lama tahun 2023 dari folder C:\xampp\apache\bin.
Solusinya sudah termasuk di Tahap 2, yaitu baris ini di httpd.conf:
LoadFile "C:/xampp/php/libssh2.dll"
Folder C:\xampp\apache\bin\ memang masih penuh DLL lama dari XAMPP versi sebelumnya. Setiap kali PHP 8.5 membutuhkan dependensi yang juga ada di sana, seperti libssl, libcrypto dan libssh2, versi lama yang dimuat. Dengan LoadFile, versi baru ter-load lebih dulu dan menjadi satu-satunya yang dipakai.
Tahap 5: Verifikasi Akhir
- Start Apache dari XAMPP Control Panel. Statusnya harus Running tanpa dialog error.
- Buka
http://localhostdi browser, halaman XAMPP harus tampil normal. Kalau membukahttps://localhostmuncul peringatan sertifikat, itu normal untuk sertifikat self-signed: klik Advanced lalu Proceed. - Cek extension di PowerShell:
C:\xampp\php\php.exe -m | findstr curl openssl
Harus muncul curl dan openssl tanpa warning.
- Cek versi PHP lewat browser. Buat file
C:\xampp\htdocs\phpinfo.phpberisi<?php phpinfo();, bukahttp://localhost/phpinfo.php, dan pastikan tertulis PHP 8.5.11. Setelah selesai, hapus file ini. phpinfo.php yang tertinggal di htdocs membocorkan konfigurasi server ke publik.
Catatan Penting dan Cara Rollback
Jangan Campur Versi PHP
Extension PHP (php_*.dll) harus selalu satu paket dengan core PHP (php8ts.dll). Kalau upgrade versi PHP lagi nanti, ulangi Tahap 1 dengan mengganti seluruh isi folder ext, lalu periksa kembali baris LoadFile di httpd.conf.
Extension openssl PHP Berbeda dengan mod_ssl Apache
Dua hal ini sering tertukar:
- Extension openssl milik PHP dipakai kode PHP Anda untuk enkripsi, JWT, dan request HTTPS keluar seperti Guzzle atau
file_get_contents('https://...'). Ini tidak terpengaruh sama sekali oleh mod_ssl Apache. - mod_ssl milik Apache hanya berfungsi melayani
https://localhost. Boleh dimatikan kalau tidak butuh HTTPS lokal, karena request HTTPS keluar dari PHP tetap jalan.
Diagnosis Cepat Kalau Muncul Error Baru
Error dengan pola "The procedure entry point XXX could not be located in..." selalu berarti ketidakcocokan versi DLL. Jalankan perintah PowerShell ini untuk mencari file lama yang tertinggal:
Get-ChildItem C:\xampp\php\ext\*.dll | Where-Object LastWriteTime -lt "2026-01-01" | Select-Object Name,LastWriteTime
File bertanggal 2023 atau 2024 berarti masih versi lama dan harus diganti dengan yang baru.
Cara Rollback ke Kondisi Semula
- Stop Apache.
- Kembalikan isi
C:\xampp\php\extdari backup. - Hapus tiga baris LoadFile di
httpd.conf. - Kembalikan
server.crtdanserver.keydari file.bak. - Start Apache.
