r/linuxdev • u/Biking_dude • Jun 06 '22
Having trouble setting up a development environment, and trying to wrap my head around the relationships between XAMPP / LAMP / WAMP
/r/linux4noobs/comments/v5vlet/having_trouble_setting_up_a_development/
4
Upvotes
View all comments
Show parent comment
3
u/BraveNewCurrency Jun 07 '22
Yes. On Windows, it might be slightly useful as a "bundle". But on Linux, it's an un-needed appendage. You are probably better off not using it. It is keeping you from learning how things "really" work.
Most people would just install MySQL+Apache+PHP (via
apt installordnf install). By default they run as daemons. You can manage them withsystemctl start/stop/statusor similar if you aren't using systemd.) And.. That's it. (If you need to start/stop them, you can do that manually, or write your own script, it will be 2 lines long.)Docker is not a framework. It's an easy way to manage your versions of your servers. Instead of installing them directly on the host system, you install them in containers. This lets you manage dozens of versions at once without going crazy.
Ha ha, that's true. Ignore that. Find some "cheat sheets" for Linux that list various example commands. Try to read the man pages to figure out what the command does and why they are useful. Some will be quite complex, so feel free to skip and come back later (or maybe never. I still don't bother learning
sed.) Try to find some intro to Linux command tutorials -- maybe even using the Raspberry Pi as a keyword, since it's a real Linux box that lots of people try to learn on.https://ubuntu.com/tutorials/command-line-for-beginners#1-overview
https://www.ubuntubeginner.com/basic-ubuntu-commands-for-beginners/
There is no spam in man pages. I'm talking about the "
man" command as in "man httpd". (Learn to navigate within a man page -- usually hit `h` for help.) Pay attention to "SEE ALSO:" at the bottom of man pages, they can give you clues to relevant/related things. For example, thesshman pages references "scp(1), login.conf(5),.." Those are other man pages you can read. The number is the section ("man man"), very occasionally you need to specify the section to get the right document: "man 5 login.conf".Sometimes there is documentation in
/usr/share/docfor things that are too complex to be documented with a man page.