Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Mmorning everyone. I have a quick question on apache.
I have installed and compiled apache 1.3.27 onto my Linux box. My question is, if I wanted to recompile apache to add a few options, what would be the best way to go about doing that?
Is there a link of some sort on how to recompile? I have been working a lot with apache, PHP, mysql and IBM DB2 and I need to recompile apache to add a few new options.
It depends how you change it. If you run ./configure with extra options, you need make and make install. If you're changing one of Apache source files, only make and make install (it will be shorter than the first case, because only changed files will be compiled).
If you installed it from source then just recompile it. First do:
./configure --help
This will give you a list of options to choose from. What ever options you want to add put them in your ./configure statement. Like lets say the option to add php support is --enable-php(Which I don't think it is) You would do:
./configure --enable-php
Then do:
make
make install
./configure is where you add your options like --enable-supermantoflythroughmyscreen or whatever.
Last edited by Crashed_Again; 02-20-2003 at 12:45 PM.
Thanks Mara for your reply. I have been learning a lot compiling Apache and PHP, but I have many questions on so many things.
Let me ask this:
I have both Apache 1.3.27 and PHP 4.3.0 installed on my server. If I wanted to completely start over, meaning recompile both apache and PHP brand new with no residue left over, what would be the best way to go about doing that?
Hmm. Very interesting thing happened when I tried to restart the apache server after doing a bit of recompiling. Here is an error message I received:
[root@ubergeek apache_1.3.27]# /usr/local/apache/bin/apachectl restart
/usr/local/apache/bin/apachectl restart: httpd not running, trying to start
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: libdb2.so.1: cannot open shared object file: No such file or directory
/usr/local/apache/bin/apachectl restart: httpd could not be started
I did not do anything fancy when I was compiling apache. This is what I specified:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.