Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Are there any differences between installing Apache httpd using sudo apt-get install apache2 (as the guide of Ubuntu says - https://help.ubuntu.com/12.04/serverguide/httpd.html ) or following the steps on the Apache documentation (http://httpd.apache.org/docs/2.4/install.html#overview)?

I tried both ways; in the first case (using apt-get) the server seems to work - I open a browser page and I got it. In the second case I need other packages (apr, apr-util and pcre) and so I abandoned the attempt.

share|improve this question
    
I doubt if that's what you want, but have you tried XAMPP? –  Vishal Nov 9 '12 at 10:26
    
Thank you. I had never heard before, but reading the official site it seems a good choice. However I'd like to know the answer to my question. –  JustTrying Nov 9 '12 at 10:36
    
Use the LAMP install from command tasksel and you will get all you want plus it will be already configured for Ubuntu. –  Rinzwind Nov 9 '12 at 11:05
add comment

1 Answer

up vote 2 down vote accepted

It is because when you use apt-get (default package manager for Ubuntu), it automatically installs the dependencies. But when installing manually (using ./configure, make and make install), you'll have to make sure that the dependencies are already installed for the program to work. Otherwise, you'll have to manually install the required dependencies as well.

You can refer the answer to this question for further details:
Installing suggested/recommended packages?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.