r/linuxdev • • 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

4 comments sorted by

View all comments

Show parent comment

3

u/BraveNewCurrency Jun 07 '22

it's a simple script that starts and stops Apache and MySql and that's it?

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 install or dnf install). By default they run as daemons. You can manage them with systemctl start/stop/status or 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 vs frameworks

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.

Even the question about killing a process brought up SO pages that just bickered about what each command did and why one is better/worse than another

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/

Man pages

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, the ssh man 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/doc for things that are too complex to be documented with a man page.

1

u/Biking_dude Jun 07 '22

Feel like those final missing puzzle pieces just got found - Thank you!! It was pretty time consuming writing all that out and I really appreciate it, everything's a lot clearer now. Especially the last part, have been finding it hard to even create a system for finding what I need, I wasn't even aware of that command but have seen it referred to (though, ironically, without saying what it does). Will digest all this and come back if I run into any other issues