If you are on PHP 8.4 the files you need are likely not libeay32 and ssleay32. instead you probably need to add/replace the following files in apache bin folder
You can check what dll files are needed using dependency checker tool (such as dependency walker https://www.dependencywalker.com/) against the php_curl.dll or curl.dll