Troubleshooting “loopback requests that take too long”

I had no problem until I working with my localhost. After uploading, I was able to edit css files but not php files. after a lot of research, I found problem source is enabling HTTPS protocol. I changed url to normal HTTP and everything was good.
After some research, finally enabling openssl extension in php.ini file, resolved my probleem