Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Please excuse me if there are any errors in my english...
I want to learn how to run a server and apache, mysql, php, etc purely out of commandline
Obviously gonna need ssh, but there are hundreds of online guides and I want to know whats the best, most understandable guide out there for doing such a task? I would like to buy the ssh book from Oreilly but I currently have no cash right now cause I bought a hard drive and memory for my server.
Download lampp (xampp for linux).
It's a preconfigured package with Apache, MySQL, PHP, and a couple more. All you do is run the command line "Apache Start" (or something like that) file, and you're set.
You don't need X for that, so it should be no hassle.
Most distro's come with Apache, MySQL, PHP, and SSH. So the best way to start is by installing those and then playing around with them. The method for starting these services depends on what distro you're using, so I can't really help you with that. (Try to give as much info as you can when asking a question)
Once you get Apache installed and running, start up your browser and enter the url 'http://locahost/'. The default page for most installs will bring you to a generic Apache page with a link to the Apache documentation. You can find out everything you need to know right there, though there's so much to learn that it may be a little scary at first.
PHP will usually be set up to run right out of the box when you fire up Apache, though you may need to uncomment the following line in your httpd.conf file (again, I can't tell you exactly where this file is, because you haven't told what distro you're using):
Include /etc/apache/mod_php.conf
Probably the best advice I can give about MySQL is that after you install it, you need to run the command 'mysql_install_db'. The most common mistake that people make here is that before you run this command, you must run the command 'su mysql' to become that user.
I'm a little surprised to find that O'Reilly has a book devoted just to SSH, because it's really a very simple set of programs to use. The server daemon should be set up to run just by installing the package in your distro. The client programs (ssh, scp, sftp) should also work just fine after the first time you connect, where you see a message saying that the host you're connecting to is unknown. This is perfectly normal, since it's the first time you're connecting, so just say 'yes' to accept that host.
Perhaps the best resource I can offer you is to use the 'search' function here in the forum, since this is a very popular project, and many people have asked about almost every conceivable problem that you might run into. By searching, you'll usually find an answer more quickly than posting a question and waiting, and you'll keep the forum clear of repeated questions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.