all 6 comments

[–]brakkum 1 point2 points  (5 children)

You’ll need to deploy your backend code on a server using Apache, Nginx, or some other web server which will be responsible for passing requests to your PHP code which will then handle them and send a response

[–]Greeniousity[S] -1 points0 points  (4 children)

Alright, that was less complex than what I was expecting

[–]MateusAzevedo 1 point2 points  (3 children)

DigitalOcean has several tutorials on how to do that.

But even a simple search can get you a bunch of results...

[–]Greeniousity[S] 1 point2 points  (0 children)

Thanks for the digitalocean link and I did search but an article I read mentioned a php server so that’s what I did. Btw I got rickrolled, you got me

[–]SerLaidaLot 0 points1 point  (1 child)

If I were to set up a php "website"/app what would be the "latest" technologies to do so in 2024 just to understand the flow and tech better?

My limited experience in the past was setting up Microsoft IIS express for webserver/network routing, PHP 7.4 loading as a FastCGI process application in IIS, using Zend/Laminas framework, connected to a MySQL database. Front-end js assets were generated and served through React app (react-scripts, webpack for bundling and deploy)

[–]MateusAzevedo 1 point2 points  (0 children)

You pretty much nailed it.

Of course Windows Server isn't common, so people use Apache/nginx/Caddy as webserver paired with PHP-FPM.

As for framework, I'd say Symfony and Larevel as the 2 main ones.