php not working on browser (localhost)
I just bought this pretty 14' M1 Pro On Monday, migrated my M1 Air..great. Added MySql 8, Added php8.1 through Mac Ports using Xcode. PHP works front the command line, but does not activate. Started Apache Server, It works. However, PHP will not see any file if running in development mode, no matter the directory, no matter if I add the file extension or not {php81 -S localhost:8080/index.php.} Nor will Apache recognize PHP as code, it just spits it out on the browser. I am stumped. I bought this machine (at least this is the excuse I used) So I can do all of my development projects on it. But I can't even get PHP to run in the browser. I've installed , updated this file and that, the only thing I know is there is no libphp.so module at all, and even if there was, it has a Certificate Problem , and this thing is still under warranty. Any help would be greatly appreciated.
MacBook Pro 14″, macOS 13.0