LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 09-20-2006, 07:43 PM   #1
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: CentOS 5.5, Ubuntu 10.04, Linux Mint 11 gnome 64 bit
Posts: 336

Rep: Reputation: 36
install apache 2.2 from source on ubuntu -it works


I just did a quick install from source
I'm sorry if I prematurely dissed Ubuntu a couple of posts back

I think it's worth posting as a new solution message (IMHO)
I never did an apache 2.2 before and I was wondering if I was missing something. So out of curiousity...
--------------

Download source from apache

I took the .bz2 file
Unix Source: httpd-2.2.3.tar.bz2 [PGP] [MD5]

# cd /usr/local/
# cp whereverFromDownload/httpd-2.2.3.tar.bz2 .


tar xvjf filename
# tar -xvjf httpd-2.2.3.tar.bz2

Note: where xvjf is execute and tvjf is list


./configure --with-layout=GNU \
--prefix=/usr/local/apache



ooops fails no C compiler

this is ubuntu

# apt-get install gcc

configure again

# ./configure --with-layout=GNU \
--prefix=/usr/local/apache2.2.3

No make file - go figgure


# apt-get install make

# make

# make install

# cd ../apache2.2.3/
# ls -l

# cd conf
edit httpd.conf
---------------------
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80
ServerName gandalf.athlone.com:80
---------------------

# cd ../bin

# apachectl start

-----

Now to the browser
http://gandalf.athlone.com/


It works!

-----------

Make it happen!
 
Old 09-22-2006, 12:40 PM   #2
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
Quote:
Now to the browser
http://gandalf.athlone.com/
Quote:
robert@ubuntu:~$ ping gandalf.athlone.com
ping: unknown host gandalf.athlone.com
Does it work locally, at least?
 
Old 09-22-2006, 01:43 PM   #3
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: CentOS 5.5, Ubuntu 10.04, Linux Mint 11 gnome 64 bit
Posts: 336

Original Poster
Rep: Reputation: 36
Hi Robert,

Ooops. Thanks for pointing that out. I failed to mention that athlone.com is a name I made up for my internal netwok.

To get to a home web-server from outside you will have to register with a service like DynDNS
http://www.dyndns.com/

Note: To set up a development environment in Ubuntu
Add extra repos and do:
Code:
sudo apt-get install build-essential glade-common glade-gnome emacs21 fontforge devhelp

Although
# apt-get install gcc
# apt-get install make

Works too...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
install apache and php on ubuntu server spank Ubuntu 15 07-28-2006 01:41 PM
PING works, but no Internet in Ubuntu only bond00 Linux - Networking 2 01-22-2006 04:41 PM
apache works, website works, but not from outside? kahn Linux - Software 7 08-05-2005 02:38 AM
Where to install apache source? ginda Linux - Software 1 03-13-2005 08:12 AM
Removing apache rpm and install apache from source john lee Linux - Software 2 11-15-2001 08:44 PM


All times are GMT -5. The time now is 10:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration