LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 11-11-2004, 01:35 PM   #1
revof11
Member
 
Registered: Nov 2003
Location: Macungie, PA
Distribution: Fedora Core 9, Gentoo 2008.0
Posts: 108

Rep: Reputation: 15
Question 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

 
Old 11-11-2004, 01:45 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
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.
 
Old 11-11-2004, 02:18 PM   #3
revof11
Member
 
Registered: Nov 2003
Location: Macungie, PA
Distribution: Fedora Core 9, Gentoo 2008.0
Posts: 108

Original Poster
Rep: Reputation: 15
Talking 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!!!!
 
Old 11-11-2004, 02:23 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
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....
 
Old 11-11-2004, 02:46 PM   #5
revof11
Member
 
Registered: Nov 2003
Location: Macungie, PA
Distribution: Fedora Core 9, Gentoo 2008.0
Posts: 108

Original Poster
Rep: Reputation: 15
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?
 
Old 11-11-2004, 03:30 PM   #6
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
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
 
Old 11-12-2004, 08:01 AM   #7
revof11
Member
 
Registered: Nov 2003
Location: Macungie, PA
Distribution: Fedora Core 9, Gentoo 2008.0
Posts: 108

Original Poster
Rep: Reputation: 15
Talking

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!!!
 
Old 11-12-2004, 11:46 AM   #8
doublejoon
Member
 
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370

Rep: Reputation: 44
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!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
download LAMP jocom Linux - Software 1 11-14-2005 04:53 AM
emerge --emptytree system problems, gentoo problems!!! alamuru420123 Linux - Distributions 6 10-11-2005 10:48 PM
v9.2 Trying to get lamp going boardtc Mandriva 4 03-21-2005 08:05 PM
Lamp mikage14 LinuxQuestions.org Member Success Stories 2 05-08-2004 03:20 AM
Little LAMP help ElementNine Linux - Software 4 01-19-2004 03:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration