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.
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.
Versions:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.