How to upgrade Apache 2 from 2.2 to 2.4 for Ubuntu 10.04

  • I was in the process of doing a test upgrade from Apache 2.2 to 2.4.3. I'm using Ubuntu 10.04. I would have upgraded to 12.04 for this to see if the upgrade would go a lot smoother. Unfortunately, I was told it wasn't an I'm stuck using 10.04.

    The process I did this was:

    Before attempting this, I have managed to upgrade APR from 1.3 to 1.4 and APR-UTIL since apache has said they were prerequisites beforehand: I took the apr and apr-util and placed them under httpd-2.4.3/srclib

      I have also taken Schlauberg's advise concerning libapr removal. So I removed all traces too when I removed all traces of the current apache.

      First remove all traces of the current apache:

        sudo apt-get --purge remove apache2
        sudo apt-get remove apache2-common apache2-utils apache2.2-bin apache2-common
        sudo apt-get autoremove
        whereis apache2
        sudo rm -Rf /etc/apache2 /usr/lib/apache2 /usr/include/apache2

        Afterwards, I did the following:

        sudo apt-get install build-essential
        sudo apt-get build-dep apache2

        Then install apache 2.4 with the following:

        tar -xzvf httpd-2.4.3.tar.gz   
        tar -xzvf apr-1.4.6.tar.gz   
        mv apr-1.4.6 apr   
        tar -xzvf apr-util-1.4.1.tar.gz   
        mv apr-util-1.4.1 apr-util
        Place folders apr and     apr-util under /httpd-2.4.3/srclib
            sudo cp -r apr-util ~/httpd-2.4.3/srclib
            sudo cp -r apr ~/httpd-2.4.3/srclib    
        download pcre-8.31.tar.gz from   
            Please note that pcre-8.31 isn't obtainable through the wget but needs to be done     manually through sourceforge.             
        tar -xzvf pcre-8.31.tar.gz && cd pcre-8.31   
        sudo ./configure   
        sudo make   
        sudo make install   
        cd httpd-2.4.3   
        sudo ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all     --enable-deflate --enable-proxy --enable-proxy-balancer --enable-proxy-http --with-mpm=prefork --with-included-apr --with-included-apr-util   
        sudo make   
        sudo make install    

        After this process. I no longer get an error in installation. However, I think I'm missing a step because it's not found in /etc/apache2 and if I use a command that uses apache the terminal tells me it's not installed. Can anyone tell me what I'm missing after make install.

        Thanks in advance for any help you have to offer!


      • Most likely you have another libapr somewhere on your system. First I uninstalled libapr that came with the system, which caused a compile error. Then I cleaned up everything except the source I found via

        locate apr

        Another make clean and make install fixed my problem

      • MH is a peaceful mod, while your nick shows you want "cleanup", i.e. destruct content. – peterh yesterday

        • I agree with Reaces 100%. – Katherine Villyard Aug 25 at 16:44

          • @peterh I define a troll as someone who's main purpose (on this site) is not to add or contribute anything to help the site, while at the same time attempting either cause tension or just plain spam the site. On SF from what I've seen it's mostly just people spamming the site. – BigHomie yesterday

          • @TheCleaner Also the street name for someone who makes crime scenes vanish before the authorities show up, so you are clearly here to murder and pillage. QED. – Wesley yesterday

          • First thing: Make a backup. Then follow this documentation, which took me less than a minute to find.

            • @cnst you'd have to ask the junta. – Evan Carroll Aug 24 at 20:33

            • As a recipient of your dope slaps, I approve this message. – Wesley yesterday

            • I appreciate the honesty, but IMHO we can't have another mod that would perform actions in an opaque manner. – Jim B yesterday

            • Do your comments and actions on this question accurately reflect your "passion for helping people?". If so, why? – Paul White Aug 25 at 2:08

            • @JimB truthfully, I probably wouldn't have left the comment explaining why I voted to close it. There was practically no chance the question was going to be improved, because it was a migration, so there was little value in explaining why the question needed closing. – womble yesterday

            • Thank you @KatherineVillyard – TheCleaner Aug 25 at 18:29

            • Judging by your contributions the last few months I'd very much like to vote for you during the next part of the election. However so far your nomination can be summed up in one sentence. I plan to close/delete really bad questions . Is this the only thing you expect to have to do as a moderator? Or more likely is this the reason you're running? I'd very much appreciate a bit more meat to your candidacy! – Reaces Aug 25 at 8:27

            • As a mod on another site, and someone who's known falcon for ages (and I suspect introduced him to SF), I believe he's make a great moderator. – Journeyman Geek yesterday

            • As do I. I will vote for you again. – Jenny D yesterday

            • Candidate score of 39...slacker. ;) – TheCleaner yesterday

            • It's a shame you weren't elected last year, your answers to the community questions were some of the best of the lot. Everyone who is even a little bit interested in the elections should read up on last years'. – Reaces Aug 25 at 13:36

            • Thank heavens. Three decent candidates :) – Journeyman Geek Aug 26 at 5:24

            • You can't govern without a plan. Do you have a plan on how you're going to keep the home router questions out? I say we should have ID checks as people cross the border from SuperUser. I'm not so concerned about our friendly northern neighbors at SO. – LamonteCristo Aug 24 at 20:52

            • Womble is in the UTC+10 timezone. Currently I'm in this timezone, but only for another 3 weeks, when I move to a UTC-5 timezone. It would be good to have a set of hands to cover this zone. – Mark Henderson ♦ Aug 25 at 0:30

            • Thanks, I realize Ubuntu has great documentation, was just asking for some feedback on best practices in case there were recommendations outside the community docs. This content has led me astray in the past, albeit on more convoluted issues, but either way, thanks for pointing me in that direction. – user53813 Sep 28 '10 at 0:13

            • @Reaces Fair enough, I'll add some more info to my... not sure what to call it... perhaps "nomination speech"? – womble Aug 25 at 22:59

              • I don't plan to take on epic projects such as the bad tag burnation especially in light of the fact that among others the plesk , cpanel and whm tags that have recently been resurrected again. I have neither the inclination nor the time for that. – HBruijn yesterday

              • why were you banned? – cnst Aug 24 at 20:31

              • Well, I know who I'm voting for – dyasny Aug 25 at 15:27

              • @NathanOsman, nuh-uh, I don't see a space in – Gene Aug 24 at 20:42

              • @Reaces thanks for the question. Probably because I never understood how it really worked. I have about 1500 reviews total I believe, and was in the top 20 all time for close vote reviews until recently. I never felt like there was much point in flagging something that was already in Review. I guess I don't quite understand still how the process should work. I always flagged something on Main that I saw as necessary to flag, but very rarely do it in Review since I figure its silly to flag something already there. Maybe that's the wrong way to do it? – TheCleaner Aug 25 at 19:05

              • I like that you're patient, fair, and genuinely nice--all excellent qualities for a moderator. Your meta posts are also good. – Katherine Villyard 22 hours ago

              • I would say that you fulfill the "patient and fair," "leads by example," and "shows respect for fellow community members" qualifications. – Katherine Villyard Aug 25 at 16:44

              • For the 100 millionth time... there's a space between "server" and "fault" . – Nathan Osman Aug 24 at 20:35

              • @PaulWhite I agree with you as it was migrated and I seen worst question on SF. BUT, womble did commented why he flagged a close vote. It's rare that people told why, we might agree or disagree, but at least he told is point and by doing so he give the OP the chance to answer back. (Myselft I found it offtopic too, server configuration is for me a talk with a CSE&vendor, as they can simulate the load and suggest proper raid controller and such, a talk a lot over SF's can have. A bad suggestion can backstab the OP) – yagmoth555 Aug 25 at 12:41

                • Works for me thanks for nominating. Being in Europe can only be a help too with most of the other ♦ and candidates being stacked into USdian timezones. – Iain 2 days ago

                • Your answers to the community questions last election cycle were poorly received. Has your platform changed since last year? – Katherine Villyard Aug 25 at 19:17

                • Another one of the strong contenders from last year, who unfortunately did not make it! Well I guess I can look into voting the exact same way this year the way things are panning out. – Reaces 2 days ago

                  • @PaulWhite Sometimes, telling people they are out of their depth is the best way to help them. That very much applies to the question you link to. – Iain Aug 25 at 6:58

                  • A Grade guy right here. Great to see you run! – TheCleaner yesterday

                  • Oh yeah? Well I've been unbanned for two years. Vote for me! – Doorknob Aug 24 at 20:28

                    • While I think you're a great contributor to ServerFault, I have one remark. Out of the three serious candidates so far you have by far the least flags cast, while you've been a member as long as Womble and have been more active than Falcon Momot. Mind if I ask why? Do you not use the review queue that often? – Reaces Aug 25 at 18:47

                        • @Wesley Originally meant "a field to the west" clearly an implied "wasteland to the west", which is terrorist rhetoric if I ever saw it! QED. (I like this game we should play it more often) – Reaces yesterday

                        • I bet you also want drones to keep the undesirables out, huh? – LamonteCristo Aug 24 at 20:54

                        • I like your meta posts and I like that (at least I think what you believe) you feel the moderator is a role of helping users rather than making sure as many questions as possible get closed before someone accidentally answers one. – Jim B yesterday

                        • Your activity is suspicious … – mate64 2 days ago

                        • Most likely you have another libapr somewhere on your system. First I uninstalled libapr that came with the system, which caused a compile error. Then I cleaned up everything except the source I found via

                          locate apr

                          Another make clean and make install fixed my problem

                        • @Reaces thanks, that's good to know. Something I didn't know. I wish I could say I understand after all these years the way the site operates in the background (like Hampton and others seem to pick up so easily). I'm definitely not the top choices here, I love Falcon and Womble, but if for some reason you need a 3rd and it comes down to me and Evan...well... :) I have reached over ~2M users according to my profile and tend to be active on Meta and Slack for the site as well. – TheCleaner Aug 25 at 19:28

                        • who's the junta? – cnst Aug 24 at 20:34

                        • @yagmoth555 - thank you for the kind words – TheCleaner Aug 25 at 20:46

                        • @cnst Jeff and crew. People undemocratically employed by StackExchange. next question. – Evan Carroll Aug 24 at 20:34

                          • also, who is Jeff? – cnst Aug 24 at 20:33

                          • @Reaces Your name has homolytic similarities to the Reese's candy company which makes preservative laden, fat filled candies sold to hundreds of millions of people, so clearly you are interested in the mass murder of the world population over long periods of time making you worse than Hitler. – Wesley yesterday

                          • SF has a sophisticated spam filter, the few tries to advertise things are filtered out very fast by the reviewers, why would it need moderator intervention? – peterh yesterday

                          • @ThomasOwens because I can make our network great again. next question. – Evan Carroll Aug 24 at 20:33

                          • I approve of this guy, despite his vanilla bean look and personality. – TheCleaner yesterday

                          • @peterh - you should click on my profile and the Youtube clip that shows where my nick comes from. It was given to me years ago for my ability to clean up another IT person's mess. – TheCleaner yesterday

                          • @Doorknob To be at same level than him it's not wrote, but you must insult SE in your profile bio too – yagmoth555 Aug 24 at 20:33

                            • That's a good point. Thanks, @MarkHenderson. – womble Aug 25 at 0:31

                            • @NathanOsman We don't have time to be politically correct. We have real problems. You call it what you want. I'll call it what I want. We know what we're talking about, right? next question. – Evan Carroll Aug 24 at 20:36

                            • Allow me the honor of being the first one to say... Probably not. You have in the year since the first election only cast a single flag. How do you expect to be granted moderator responsibilities if you show no interest whatsoever in actually moderating the site? – Reaces Aug 25 at 18:38

                            • Did you call ServerFault a turd? If so, did you mean to do so? And if you did, why would you want to moderate a turd, even if it can be polished? – Thomas Owens Aug 24 at 20:31

                              • I didnt say it would need moderator intervention, I'm just saying if I came across it, I wouldn't let it fly, just as I don't now. I've also come across some pretty slick advertising disguised as answers as well. – BigHomie yesterday

                              • @Reaces no, I don't plan to only close/delete really bad questions. It seemed a little redundant to say, "I would do all the things that moderators usually do". I felt that should be a given for someone who nominates to be a moderator. – womble Aug 25 at 20:55

                              • How do you define the trolls? – peterh yesterday

                              • @Gene look at the page title. Look at the page footer. Anywhere the name is properly capitalized, there is a space. – Nathan Osman Aug 24 at 20:43

                              • @TheCleaner There's still some room for improvement! – EEAA yesterday

                                • Yes, they do. Large numbers of extremely poor questions dissuade people from participating in the site, and poor quality content on the site in general reduces the "Google value" of the site overall. ServerFault is not "ask a sysadmin-dot-com", it's a resource for professional sysadmins to help each other and find solutions to the problems they specifically face. The question you cite did nothing to further that goal. – womble Aug 25 at 2:15

                                • I had an issue with your nomination, but couldn't put my finger on it. However thinking about it I don't understand I honestly don't plan to do all that much more . Why would someone ask for more responsibilities and the tools to be able to better serve the community, only to do just about the same things they were before? – Reaces yesterday

                                • @TheCleaner When something is in the first post, late answer or low quality queue it hasn't yet been flagged, it's just been picked up by the SO automated processes. So those should probably be flagged if inappropriate. – Reaces Aug 25 at 19:10

                                • I just mean I'm back and I will close questions doesn't give me much to go on. As compared to here's what I've done before being a mod and here's why you should elect me . Saying "well the other stuff was just so obvious I didn't say it" somehow rubs me the wrong way. – Reaces Aug 25 at 21:17

                                • @TheCleaner For me at this date in this election you are in my top list. Everyone got really good profile, but I like your tone in comment & how you deal with users generally. As some users are exasperated vs newbie on the site and I don't feel that from you when you comment. – yagmoth555 Aug 25 at 19:42

                                • Would you do anything differently with the benefit of hindsite on the question @PaulWhite linked to? – Jim B yesterday

                                • SF took a left turn from the other SE communities a while back. Unless you've decided to take the complete opposite approach from last year you have almost no chance of being elected- have you? – Jim B yesterday