Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Localhost server with php and ssl

Tags:

php

I'm searching for the server which allows to launch php files with ssl. I've tried for example python simple server:

import BaseHTTPServer, SimpleHTTPServer
import ssl

httpd = BaseHTTPServer.HTTPServer(('127.0.0.1', 4443), SimpleHTTPServer.SimpleHTTPRequestHandler)
httpd.socket = ssl.wrap_socket (httpd.socket, keyfile='privkeyA.pem', certfile='certA.crt', server_side=True)
print("Server is working!")
httpd.serve_forever()

Certificate and key works well, but I can only launch html files, because this server doesn't support php ones.

like image 213
J.G. Avatar asked Aug 13 '26 07:08

J.G.


2 Answers

Use can use Php Build in Server + ngrok for getting Https+SSL

like image 177
storm Avatar answered Aug 14 '26 21:08

storm


im using laragon now, its built-in ssl , and they support cool things https://laragon.org/download/index.html

Note : windows

like image 34
Thomas Jeriko Avatar answered Aug 14 '26 20:08

Thomas Jeriko