Can't Upgrade Apache

Hi all, I'm trying to upgrade Apache 2.2.6 to 2.2.15 or the latest Apache due to PCI compliance. I tried entering the command below but it give me "apache2 is already the newest version". Do I need to add something to source.list. The server is Debian. Please help me. Thanks.
apt-get update
apt-get install apache2

Open in new window

infernothaoAsked:
Who is Participating?
 
fosiul01Connect With a Mentor Commented:
yup

http://www.fosiul.com/index.php/2009/09/how-to-install-apache2-php-mysql-from-source/

this is my own tutorial, every time i configure any server i use this. its works perfectly


0
 
fosiul01Commented:
yum or apt-get would not give you 2.2.15

you will have to download and have to install from source

0
 
infernothaoAuthor Commented:
Thank you for answering Fosiul01. I have not install anything from source before... At least not successfully. Can you give me a rough description or link me to a site? Thanks.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
infernothaoAuthor Commented:
Wow.. thanks for the quick reply. Your tutorial looks very detail. I'll start tomorrow and since I'm about to leave. Again thanks.
0
 
fosiul01Commented:
no problem, just let me know if you having any problem.will try my best to fix it


0
 
infernothaoAuthor Commented:
Hi Fosui01, I think I follow instruction correctly. However, after I did /etc/init.d/apache2 restart I checked my phpInfo() the Apache version is still the same. I did not see any error when I was doing "make install". Did I miss something?
0
 
fosiul01Connect With a Mentor Commented:
ok
according to my one

apache would be in

/usr/local/apache/bin/apachectl start

if you have previous version of apache you will have to stop that

which patch did you put at time of install ??


0
 
infernothaoAuthor Commented:
Oh... I thought the new Apache will replace the old one. I downloaded "httpd-2.2.15.tar.gz". Ok... I stop the old Apache and try to start the new Apache with the command "/usr/local/apache/bin/apachectl start". It gave me the error below.
httpd: apr_sockaddr_info_get() failed for igor
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

Open in new window

0
 
fosiul01Connect With a Mentor Commented:
Its because of your host name

edit

/etc/hosts file

and use iP of your server + host name

192.168.1.2  web.yourdomain.com

( you can use any host name)

now try  to restart


0
 
infernothaoAuthor Commented:
Thanks Fosiul01. That works. Am I not suppose to see my sites. Also, am I suppose to configure the new Apache so it will know where all my sites info are located? Sorry, I have never updated Apache before. Anyway thanks for all the helps.
0
 
fosiul01Connect With a Mentor Commented:
told you, i always use my tutorial to setup any linux server

anyway its good that its works

now they way you did before do same way you will have to do

but here
your httpd conf would be

/usr/local/apache/conf/httpd.conf

and your virtual host would be on

/usr/local/apache/conf/extra/http-vhost.conf




0
 
infernothaoAuthor Commented:
Ok thanks for all the helps Fosiul01.
0
 
fosiul01Commented:
Can i ask for a favor please.. if my tutorial helped you.. can you please leave a feed back .on my site for that tutorial..
i would be really great full for that

thanks


0
 
infernothaoAuthor Commented:
I just leave a feed back on your site. :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.