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 have been reading and jumping through forums like crazy trying to get Apache/MySQL/PHP installed on my new Gentoo Linux installation. Since Fedora Core 3 came out, I thought I'd give something else a try since I was going to wipe the machine clean anyway.
I've got a decent amount of stuff accomplished installing things in Gentoo (2004.2, by the way). However, I cannot seem to get Apache or MySQL (and PHP, but that's questionable since I don't have Apache installed).
I have already done the following:
emerge apache
emerge php
emerge httpd
emerge mysql
I have attempt to run "rc-update add httpd default", "rc-update add mysqld default", etc. but they all return "* /sbin/rc-update: /etc/init.d/<whatever i ran> not found; aborting."
Does anyone have a link to an article or can offer help on installing these? In general, I have been pretty impressed with the Gentoo documentation (and whatever was lacking I was actually able to find here)... but I just can't get this stuff installed!
I think the commands you want are:
# rc-update add mysql default
and
# rc-update add apache2 default
If this still doesn't work run:
# rc-update -s
and it will list all the daemons you have installed, and what runlevel(s) (if any) they run in. Locate the actual name of mysql and apache and use with "rc-update add <name> default"
edit:
For php you need to edit /etc/conf.d/apache2 (or whatever gentoo is calling your apache) and edit like this:
Code:
APACHE2_OPTS="-D PHP4"
Restart apache:
# /etc/init.d/apache2 restart
Steer your browser to http://localhost/ and see your apache test page.
Oh yeah, I forgot about that. "emerge php" only installs cli php. For the apache module you need to run "emerge mod_php". Restart apache again, and it should be good.
Explain your sound driver problem, I _might_ be able to help....
Sound is easy... it just says "no audio device" when I mouse-over the default icon in Gnome.
I didn't get around to gigging for answers to installing audio devices just yet.
Does the mod_php install the "PHP/MySQL bridge" too?
Eveverything works like a charm!
If I have any problems getting my sound card activated, I'll start another thread. I'll leave this "closed" for now since it solved the topic issues.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.