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 option...so 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: http://apr.apache.org/download.cgi. 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:

          wget http://www.bizdirusa.com/mirrors/apache//httpd/httpd-2.4.3.tar.gz   
      tar -xzvf httpd-2.4.3.tar.gz   
      cd        
      wget     http://mirror.olnevhost.net/pub/apache//apr/apr-1.4.6.tar.gz   
      tar -xzvf apr-1.4.6.tar.gz   
      mv apr-1.4.6 apr   
      cd   
      wget     http://mirror.olnevhost.net/pub/apache//apr/apr-util-1.4.1.tar.gz   
      tar -xzvf apr-util-1.4.1.tar.gz   
      mv apr-util-1.4.1 apr-util
      cd   
      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    
      cd   
      download pcre-8.31.tar.gz from http://sourceforge.net/projects/pcre/files/pcre/8.31/   
          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   
      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!

    Answers(84)

    • You have my vote +1 – Hrvoje Špoljar Nov 19 at 20:37

    • Why are you using both svnserve and apache? You can use either, but using both is asking for trouble.

      To serve subversion over http you need mod_dav and mod_svn enabled in apache.

      • @MarkHenderson If wanting to answer good, well researched questions without having to wade through a sea of crap to find them is elitist then yeah that's me. – Iain yesterday

      • I think you may have otherwise been an excellent choice, but I think you've got a tough contender above. – Evan Carroll Nov 17 at 20:53

      • You got my vote! – Hrvoje Špoljar Nov 19 at 20:33

      • +1 for brighter ServerFault tomorrow! – masegaloeh Nov 20 at 7:45

      • @EEAA I am not under the mistaken impression that the SE family of sites are forums, I simply stated that I have experience moderating other forums in the past. The expectations here are not radically different from what I've experienced and read-up on. – Signal15 Nov 18 at 22:02

      • I don't even know what you mean by that comment. What I want to know is why you've decided to make a comeback given that you've retired in the past? What makes you think that you won't just retire again in a year or two? Nobody expects a moderatorship to be a lifelong commitment, but to have two sucks of the sav, it better be a good reason to vote for you over someone else. – Mark Henderson ♦ Nov 20 at 21:42

        • Your answers on SF are thoughtful and insightful. I should hope ServerFault can find its balance. You would have my vote. – jscott Nov 20 at 18:59

        • @Sven Yes, it's true that I don't have much (or any) experience with SF specifically. However, it's important to note that all Stack Exchange sites are moderated by their communities, and someone who doesn't make use of the moderation tools provided to "mortals" (non-♦s) probably isn't going to make a great moderator, either. (Not to imply that Signal15 here isn't ever going to become a moderator, just that to be a moderator, it would be beneficial for one to have had previous experience with the tools provided to them.) – Doorknob 8 hours ago

        • I think you'd be an excellent choice here. – TheCleaner Nov 17 at 20:40

        • Evan Carroll is a parody account of himself , this is not a serious nomination, please don't engage him . Can we ban Evan during the election so he doesn't continually spam other nominations trying to get people to pay attention to him, as is already happening on the other nomination? – meagar Nov 17 at 21:06

        • I think you'd do a good job. But I think your timezone is already oversaturated with mods. – TheCleaner Nov 19 at 14:44

          • See the second paragraph at the top of this page - be amazed. It's easy to see what active mods are doing, you see their actions all over meta and main. – Iain Nov 20 at 22:54

          • Could you please speak a little about the low helpful flag's count? Thx! – Colyn1337 Nov 17 at 21:07

          • I think you are a very good candidate, and will get my vote too. – ThoriumBR Nov 18 at 11:54

          • @EvanCarroll - as one of the first users to have been a moderator I'm genuinely interested in what new and different you'd aim bring to the moderation of the site. There's often a lot of intelligence behind humour, I'd like a glimpse of it. – Chopper3 Nov 18 at 8:34

          • For the record, last year's nomination . – EEAA Nov 18 at 13:20

          • @CristianCiupitu Did you read my post about rtfm – F. Hauri 12 hours ago

            • I wouldn't hesitate to accept Ward as a moderator at Server Fault. I'm only surprised it hasn't happened already. – Michael Hampton ♦ Nov 17 at 21:02

              • Your moderate voice is a nice change from the calls of "GET OUT OF OUR SITE NOOBS". I've held the view for a long time that being exclusive is not always the right course. – Mark Henderson ♦ Nov 20 at 21:20

              • @Signal15 - I wish I had the time to devote to it. – EEAA Nov 19 at 20:29

                • Always very sane and quality feedback, +1 from me – Hrvoje Špoljar 2 days ago

                • Someone else I can endorse without reservation. – Michael Hampton ♦ Nov 19 at 4:45

                • I wouldn't call 1 year and 3 months 'recent'. Based on that your activity is very low - how does this set you up to be a moderator? What sort of things need a 'fresh face' to look at them ? – Iain Nov 18 at 18:48

                • With no meta participation, no flags, no reviews, and seemly relatively low moderation-related activity in general, I don't think you'd make a very good moderator. Maybe next time, though! – Doorknob 2 days ago

                • Yeah, screw the "Summer of Love," we need a Harsh Winter! – Ward Nov 20 at 15:51

                • @Shog9 That reputation comes from whiny illiterates who don't like that they get down voted for bashing their keyboards randomly and trying to pass the output off as a question on this site, so ServerFault's reputation for snarky helpfulness is unfair, and unwarranted. On the other hand, I actually am snarky, cruel and very good at offering profoundly unhelpful help. Either way, I'm hardly proposing status quo, as none of that has been practiced by our moderators, who have demurred to the official Stack Exchange policy of pink fluffy niceness to the hordes of jackasses shitting on the site. – HopelessN00b Nov 20 at 19:01

                • You'll get my vote (again) unless we get some geographically better positioned candidates. – Iain Nov 17 at 21:50

                • While I am tempted to think this is nothing more than a periodic troll, let's give you the benefit of the doubt. Could you elaborate on what bearing this statement has on anything to do with moderation (or Server Fault) for that matter: "I'll push for a bloody revolution to oust the oppressive overlords who cower behind intellectual property and closed source.". I will politely point out that the vast majority of the internet is run by "closed source" embedded systems called routers and firewalls. Aside from that, a bloody revolution is hardly motivating for my vote. – Mike Pennington Nov 20 at 10:55

                  • So, you haven't been active here for a long time. You don't participate in meta, cast flags, have many notable badges and your voting is appalling. How is this a good basis for being a moderator? – Iain 34 mins ago

                  • You've got one of my votes. – Chris S ♦ Nov 18 at 2:49

                    • And don't mind Shog9. He's said before that every question has been asked before anyway, and the logical end of that is just shutting the place down and walking away anyway. N00b for Quality Questions, not just Eyeballs and Clicks! – Magellan Nov 20 at 19:29

                      • Oh, you don't have to tell me - I've been here before. Of course it's always someone else's fault. Keep digging, and good luck to ya... – Shog9 ♦ Nov 20 at 19:06

                      • It's "Stack Exchange", not "StackExchange". – Nathan Osman Nov 18 at 0:44

                      • You have my vote too thanks for nominating. – Iain Nov 18 at 6:03

                        • @ChrisS I'm usually still up 'way past midnight local time, so I cover at least 0800-1000UTC – Ward Nov 17 at 21:40

                        • Back when I was UTC-8, going much past midnight gets into Europe-time very easily. – sysadmin1138 ♦ Nov 17 at 21:49

                        • Why is this a problem? What's wrong with taking time out and coming back? I think it's better to do that than to just do the bare minimum to hold on to a ♦ whilst not really moderating or being a community leader. even taking a back set I do more than you and several of the mods we currently have. Where are you on meta or main - nowhere to be seen - some community leader you are. – Iain Nov 20 at 21:52

                          • N00b for moderator! – Magellan Nov 20 at 19:25

                          • @Colyn1337 This user is a troll; he's not actually trying to be elected. – Doorknob 2 days ago

                          • I'm not sure if you're being serious or not. I am no community leader, I have never claimed to be a community leader. I am on meta every day, but because virtually all meta activity happens outside my timezone, I come, I read, I vote. Everything is already answered. I don't just throw my voice out to create more noise. How would you know what mods are doing? This kind of elitist attitude is why I do not want you back as a moderator. – Mark Henderson ♦ Nov 20 at 22:47

                          • You've got my vote. – Glueon Nov 18 at 15:25

                          • It seems like every time I'm in the review queues, you're in there, too. +1 – Katherine Villyard Nov 19 at 2:45

                          • You've retired as a moderator in the past, what's changed since then? – Mark Henderson ♦ Nov 20 at 21:21

                          • @meagar that's not how an election works. You vote. You don't just remove someone from the running because you don't like them. Let's have a legitimate election, ok? This is not a sockpuppet. I've been phone verified by StackExchange minions already. I've proven myself. – Evan Carroll Nov 17 at 21:34

                          • blimey shog9. You nailed that one pretty spot on. – Sirex Nov 20 at 19:21

                          • You got my vote. – edvinas.me 2 days ago

                          • 14 votes is less than 1 a month so I'd say 'sparingly' was a good description of your whole (voting) record. – Iain Nov 19 at 18:26

                          • @Shog9 True, we are just begging to be flooded by crap, what with all the statements about how this is a professional community... by simply existing on the internet... whatever makes the hordes of stupid our fault. But this is where I have a novel idea... deal with the stupid by not tolerating it. Crack down on it, rather than the SE policy of trying to change stupid by pink fluffy happiness and positive thought energy, or whatever, if anything, the strategy is. I know I don't have to tell you how the SF (and even SO and SE) communities are declining under the unabated load of inbound st00pid – HopelessN00b Nov 20 at 19:11

                          • @Doorknob: I dont think that you, as someone with zero participation in this site, are in a position to make such recommendations. – Sven 17 hours ago

                          • Wow, you're all crazy. I for one do not endorse Hopelessnoob as a mod for reasons that @Shog9 has mentioned. I put this nomination in the same bucket as Evan Carrols'. – Mark Henderson ♦ Nov 20 at 21:45

                          • It kinda sounds like you've correctly identified the problem, and then... Arrived at the status quo as the solution. Let's face it: as a community, your reputation for cruelty, snark, and general unhelpfulness is unmatched - even Programmers, which attracts far fewer questions per day and rejects nearly all of them, doesn't come close to generating the levels of straight-up vitriol that y'all do. And so, upon observing that the only folks willing to still come here are utterly lost and desperate, your solution is... youtube.com/watch?v=0VjPNKc0VsU – Shog9 ♦ Nov 20 at 18:50

                          • @EEAA Re: the rest of your question; The most experience I have here is upvoting when something appears to contribute to the conversation, and sparingly downvoting. I am a stickler for technical detail, and do my best to adhere to policies and practices set-forth by the other moderators. In all honestly, I think you would make a decent Moderator. You've been here for half a decade, and obviously have benefited from the site. – Signal15 Nov 19 at 18:18

                          • First thing you should probably get your head around is that SE sites are not "forums", and expectations on mods here are much different than on forums. Second thing: please account for your complete lack of involvement in the site thus far. What tangible things can you point to that can help convince us to vote for you? Your meta/review/flagging history are non-existent. – EEAA Nov 18 at 20:53

                          • Why, he can do smileys, and mod-hammer stupid posts while he does smileys... – MadHatter Nov 20 at 16:29

                          • Just because you're not personally moved to vote for me doesn't mean that I have to reform my campaign platform. – Evan Carroll Nov 20 at 20:08

                          • Half of the active moderators are in UTC-5, and -8 isn't much different. Our biggest need is around 0800-1200 UTC. I think you'd be a good moderator, interested in moving to Europe? – Chris S ♦ Nov 17 at 21:22

                            • That's good, but this role is for moderating, not answering. – Cristian Ciupitu 13 hours ago

                            • Of course it's always someone else's fault. you're right @shog9. That Stack Exchange employee that moved a post here the other day despite knowing nothing about this site who got the hump when called on it? Totally our fault... Not sure how but I eagerly await an explanation as to why. Perhaps there should be a "stack exchange tv" movie about it. – RobM Nov 20 at 20:19

                            • I notice that you have stood for almost every election, and generally not gotten past the nomination stage. What do you intend to do differently this time? – Journeyman Geek Nov 18 at 1:15

                              • For those who don't get the joke, this is one. review history tells all. – Andrew B Nov 17 at 21:03

                              • I'm HopelessN00b, and I endorse this awesome post/nomination. – HopelessN00b Nov 20 at 8:44

                                • I've just read it and it's not bad. – Cristian Ciupitu 1 hour ago

                                • Would you still be interested in moderating under these guidelines ? – Shane Madden ♦ yesterday

                                • You haven't noticed? Perhaps you should spend some more time on the site Mark instead of hiding out in the backroom somewhere. @MarkHenderson – Iain Nov 20 at 21:27

                                  • +1 for Calimero! – ring0 Nov 18 at 6:32

                                  • @Signal15 OK, what about the rest of my question? – EEAA Nov 18 at 22:23

                                  • This is the type of voice we need on the mod-staff. – sysadmin1138 ♦ 2 days ago

                                    • generating the levels of straight-up vitriol that y'all do. I don't think that's true any more. Over the past several months there have been fewer "you guys are mean" complaints on meta and in comments. I think we have been closing crappy posts w/out engaging, and if SE has any suggestions on what else to do, I'm sure we'd all like to hear them... – Ward Nov 20 at 19:56

                                      • @CristianCiupitu I've only posted 30 answer, there on ServerFault. But please, have a look on some of them. If I'm convinced to not be helpful, I prefer to stay silently. – F. Hauri 14 hours ago

                                      • @TheCleaner Probably so. Doesn't hurt to go through the process anyway. :) – Nathan C Nov 19 at 15:01

                                      • 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

                                          • Please, go to chat for all the name-calling and mud-wrestling business. – the-wabbit 2 days ago

                                            • The apache logs say pretty much the same thing as the console -- That the password is incorrect. But the password are correct, that's why i modified to store them in plain text for this question. I'm at a loss on this one. Here's the apache log entry: "user jerry: authentication failure for "/svn/DataTeam": Password Mismatch" – Chad May 27 '10 at 19:13

                                            • @Wars A vote for n00b is a vote for a winter of discontent! :) Now is the winter of our discontent / Made glorious summer by the HopelessN00b dork , to quote Shakespeare. – HopelessN00b Nov 20 at 15:58

                                            • yeah, you'd get my vote also. – Sirex Nov 20 at 22:56

                                              • I support moderation in moderation. – briantist yesterday

                                              • A notably high quality contributor. +1 – BlueCompute Nov 18 at 10:40

                                              • Since it's DAV, you'll want to check apache error logs for auth failures. Can you auth correctly with your browser?

                                              • +1 Falcon Momot – c4f4t0r Nov 18 at 7:23

                                                • 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

                                                • @Ward Not to mention fewer of, and less participation from "us guys" that once made up the core of the community. So even there really was a problem with the Server Fault regulars being big meanies, it wouldn't be a problem, because there are less and less of them, and they're participating less and less too. – HopelessN00b Nov 20 at 20:08

                                                • You have barely moderated with only 2 flags, so how have you lead by example until now? – Cristian Ciupitu 20 hours ago