What's new

Installing Apache/PHP/MySQL on Gentoo

Eagle

aka Alshain
Moderator
I'm trying to install Apache on gentoo, I have found guides to installing on linux but they all have me configuring them before building them. With Gentoo's unique portage system, this can't apply. Can someone give me a guide (link or just quick overview) of how to do this. Same question for PHP & MySQL.
 

Malcolm

Not a Moderator
So you're trying to build your own custom Apache/PHP/MySQL packages?

If so, cool :)

Just download the source packages, and in the source directory pull a
Code:
./configure --help | less
This will give you all the flags that you can use with that source build.

Here's some source links:
PHP4: http://www.php.net/get/php-4.3.9.tar.bz2/from/a/mirror
PHP5: http://www.php.net/get/php-5.0.2.tar.bz2/from/a/mirror
Apache: http://gulus.usherbrooke.ca/pub/appl/apache/httpd/httpd-2.0.52.tar.bz2
MySQL: http://dev.mysql.com/get/Downloads/MySQL-4.0/mysql-4.0.21.tar.gz/from/pick
 
OP
Eagle

Eagle

aka Alshain
Moderator
Well I was kinda hoping I could just configure the apache that I emerged through portage so I wouldn't have to unmerge it.
 

Malcolm

Not a Moderator
well, you could always have 2 copies of apache compiled and installed; as long as they don't try to override each other ;)
 
OP
Eagle

Eagle

aka Alshain
Moderator
Malcolm said:
well, you could always have 2 copies of apache compiled and installed; as long as they don't try to override each other ;)

Thats not quite what I meant, I meant I didnt want to uninstall the one I already put on there, just to install the same thing right back on. Its not a very fast computer, it takes a long time to build all that.
 

Malcolm

Not a Moderator
ahh, well check on google to see if you can get some pre-compiled modules for the features you want added.
 
OP
Eagle

Eagle

aka Alshain
Moderator
Malcolm said:
ahh, well check on google to see if you can get some pre-compiled modules for the features you want added.

well I decided to just unmerge it. but what I'm wondering is why even put it in portage if you cant install it that way. Doesnt make sense to have it there, unless it just compiled it with all the modules or something to that effect.
 

Jakob

evil *******
well, I'd bet that the modules it installs is determined by the use vars, in this case, you could pass them to it during the emerge, just test with the pretend flag(-p or --pretend) to make sure
 
OP
Eagle

Eagle

aka Alshain
Moderator
I did an emerge pretend first but it didnt have hardly any flags at all.
 
OP
Eagle

Eagle

aka Alshain
Moderator
I think I figured it out, you actually have to emerge with the modules.

emerge apache mysql mod_php

So does anyone want to recommend any other modules for a personal webserver that wont hold very large websites? I want to be able to access it almost completely remotely because I only have one monitor between the two and it would be easier.
 
Last edited:

Malcolm

Not a Moderator
thats all your really need in a web server, unless you want perl and python support.

Just make sure you add ssh to your default init level:
Code:
rc-update add sshd default
 

Powerlord

Evil Emperor
mod_throttle can really help if you're concerned about bandwidth. mod_rewrite has its uses (blocking remote image downloads, etc...), if that isn't installed by default.

That's the only ones I can think of at the moment.
 

Top