Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
11-11-2004, 01:35 PM
|
#1
|
Member
Registered: Nov 2003
Location: Macungie, PA
Distribution: Fedora Core 9, Gentoo 2008.0
Posts: 108
Rep:
|
Gentoo - LAMP problems
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!
Thanks.
Joe
|
|
|
11-11-2004, 01:45 PM
|
#2
|
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Rep:
|
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.
Last edited by bulliver; 11-11-2004 at 01:52 PM.
|
|
|
11-11-2004, 02:18 PM
|
#3
|
Member
Registered: Nov 2003
Location: Macungie, PA
Distribution: Fedora Core 9, Gentoo 2008.0
Posts: 108
Original Poster
Rep:
|
PHP and MySQL running... but just need PHP
that worked like a charm!
The only problem is that adding the PHP4 line didn't update PHP.
Do I need to update the "mod_php" or whatever it is somewhere else in Apache?
This Gentoo install has taught me A LOT about Linux.
I'm actually quite happy I decided to try it out.
After this, all I need is to get my sound drivers working!!!!
|
|
|
11-11-2004, 02:23 PM
|
#4
|
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Rep:
|
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....
|
|
|
11-11-2004, 02:46 PM
|
#5
|
Member
Registered: Nov 2003
Location: Macungie, PA
Distribution: Fedora Core 9, Gentoo 2008.0
Posts: 108
Original Poster
Rep:
|
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?
|
|
|
11-11-2004, 03:30 PM
|
#6
|
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Rep:
|
Quote:
Does the mod_php install the "PHP/MySQL bridge" too?
|
Yes, MySQL support has been built into PHP by default for quite a while now, for gentoo anyway. The docs are here:
http://www.php.net/manual/en/ref.mysql.php
|
|
|
11-12-2004, 08:01 AM
|
#7
|
Member
Registered: Nov 2003
Location: Macungie, PA
Distribution: Fedora Core 9, Gentoo 2008.0
Posts: 108
Original Poster
Rep:
|
Thanks!!!!
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.
Thanks a TON!!!
|
|
|
11-12-2004, 11:46 AM
|
#8
|
Member
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370
Rep:
|
I just did this
emerge mysql -uD
emerge apache -uD
USE="session" emerge php -uD
USE="session" emerge mod_php -uD
rc-update add apache2 default
cp /usr/sbin/mysqld /etc/init.d
rc-update add mysqld default
Boom worked!!!
|
|
|
All times are GMT -5. The time now is 02:30 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|