could not figure out how localhost is setup and all these things. sorry guys these days I'm very busy completing my syllabus, so I don't have time to learn docker or container that some of you recommended. still xamp is not starting apache on my linux machine. but now I will not go that xamp way. I know these are easy ways to do this and generally easy way are ways where information is abstracted. I wanna learn the hard way (where everything is explained in enough, it's just lengthy and sometimes boring so people don't like it) to setup my php environment correctly without xamp or wamp. because php is in this semester and its gonna end next month or so. and I want to start learning practically. all other languages setups are easy be it html, css, js, python, c, java as they are either performed from text editor and either a browser or terminal resp. but here I'm setting up a local web server and I'm very confused about it. I read lots of articles on the web, but IG nearly all (IMO 98% of them) have information to set it up with xamp, wamp or mamp which is nearly useless for me now-a-days. Kindly help me, I need to learn and I want to learn :)
The hard way is to install apache, php, mysql individually and configure them. The other hard and better way is to use docker, it doesn't abstract much, if anything. You can clone this repo https://github.com/BoilingSoup/lemp-dev-containers/ to get started quickly. only requirement is to download & install docker rootless & docker-compose. Then docker-compose up -d will start the server, php, and postgres database.
Обсуждают сегодня