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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I just reinstalled Fedora Core 7 with as many add-ons as I thought I'd need for a Web host. Just as I'd wanted, it looks as though Apache, php, and mySQL are present on the machine.
Here's the problem:
Since I didn't do the install manually, I have not the slightest clue where things are installed or what the default values are. I think I've managed to locate all the pieces of Apache and php that I need (although if somebody can tell me how to verify what version I have of these, I'd appreciate it very much). But I haven't figured out where mySQL lives, what the default database name is, what the administrator name is, what the admin password is, or anything of that nature.
If I simply type "mysql" at the command prompt, I get
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
I imagine that tells me mysql isn't running...
Does anybody know how I can find these things? is there something I need to do in order to establish these things? or do I need to uninstall mySQL, then download it and install it manually? Honestly, I wished I'd installed without it, 'cause I would have controlled where things went and I wouldn't be here asking this.
apache: httpd -v (may be in /usr/sbin, /usr/libexec, other locations ... you might have to look around for it)
php: php -v (if the cli support is enabled).
mysql: mysql --version
IIRC, fedora and redhat break mysql into mysql-client and mysql-server. mysql-server will pull in mysql-client (and a couple other libs), but the converse is not true. IE: you may have to go and install mysql-server if you just said "yum install mysql".
Assuming you've been using your package manager, that is. yum search mysql, yum search php, yum search apache should all have interesting results.
To check if any given thing is actually running, I recommend the command "ps -ef" or "ps aux".
If you've got an installed, running mysqld, you might just need to change the my.cnf "socket" declarations for the [mysql] and [mysqld] sections to match each other. I'd recommend, in that case, changing just the client one, else you'll have to restart mysqld.