LinuxQuestions.org
Visit Jeremy's Blog.
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 08-18-2006, 12:37 PM   #1
pinguim66
LQ Newbie
 
Registered: Aug 2006
Posts: 16

Rep: Reputation: 0
apache web site


How can I create an apache web site
 
Old 08-18-2006, 01:06 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 273Reputation: 273Reputation: 273
What distro are you using? Do you want it available to the outside world?

Anyway, the general steps are:
1) install apache
2) build a web page
3) put that page in the document root
4) Tada!
 
Old 08-18-2006, 01:43 PM   #3
pinguim66
LQ Newbie
 
Registered: Aug 2006
Posts: 16

Original Poster
Rep: Reputation: 0
My distro is ubuntu.
I already install apache.
But wat a must do next.
 
Old 08-18-2006, 02:13 PM   #4
pinguim66
LQ Newbie
 
Registered: Aug 2006
Posts: 16

Original Poster
Rep: Reputation: 0
I put the address localhost in the browser and than the apache page appears
 
Old 08-18-2006, 02:16 PM   #5
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
The next step would be to post the specific problems you have with the next step.

- You're probably looking for Apache's document root? - That's /var/www on Ubuntu.
Quote:
But wat a must do next.
Are you serious??
 
Old 08-18-2006, 02:21 PM   #6
pinguim66
LQ Newbie
 
Registered: Aug 2006
Posts: 16

Original Poster
Rep: Reputation: 0
No I mean: what I must to do next.
 
Old 08-18-2006, 02:50 PM   #7
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
Put some HTML or text file into Apache's document root.

Locate Apache's Home folder and add sample contents
You need to be root to put files to that place. I.e., in a terminal, type,
Quote:
sudo nautilus /var/www
The file manager Nautilus will open that folder, and you can create some file there by right-clicking, "Create document >> Empty File".
A file will be created.

Double-click it and enter some random text. Save, and close the editor.

Rename the file to "test.html" by right-clicking it in Nautilus.

Enable web users to view it
Right-click the file, select "Properties", and a dialog will pop up. There, choose the tab "Permissions", and give "Others" "Read" permissions.

Test the results
Next, point your browser to http://localhost/test.html.

Last edited by robbbert; 08-18-2006 at 02:52 PM.
 
Old 08-18-2006, 03:04 PM   #8
pinguim66
LQ Newbie
 
Registered: Aug 2006
Posts: 16

Original Poster
Rep: Reputation: 0
I do that and works. But I still have the page test.html in my computer not in apache server...
 
Old 08-18-2006, 03:16 PM   #9
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
Please, be more specific!

We really cannot know what you mean. - Your messages are too short and not specific enough.

- Thanks for your understanding.
-----------
Quote:
I do
What exactly did you do?
Quote:
and works
What works, exactly?
Quote:
But I still have the page test.html in my computer not in apache server...
That's not understandable to anyone. Make it absolutely reproducable to the readers, else, forget it.

- Is this the first time you're requesting support?
 
Old 08-19-2006, 04:20 AM   #10
pinguim66
LQ Newbie
 
Registered: Aug 2006
Posts: 16

Original Poster
Rep: Reputation: 0
What I mean it's that the test.html page appears in the browser. But this page is in the computer not in apache serve. I want create a web site in apache, in apache server. A page that can be see in any computer. A page online. I don't know if that is possible...
Sorry my english!
 
Old 08-19-2006, 08:03 AM   #11
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
Thanks, I understand. - Usually, people host their web pages at remote servers, by contracting with an internet service provider. Keyword: "web hosting".

You apparently want the files on your computer being accessed remotely, by other people.

What's the output of
Code:
ifconfig
and how do you connect to the internet - using a DSL provider? - sharing a DSL line with others? - being in a corporate network?
 
Old 08-19-2006, 08:43 AM   #12
hraposo
Member
 
Registered: Aug 2004
Posts: 370

Rep: Reputation: 30
I have a connection DSL.
 
Old 08-19-2006, 08:58 AM   #13
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
Good to know...
 
Old 08-19-2006, 11:40 PM   #14
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
have a look for "Dynamic DNS" so you can point a URl to your system
Quote:
What I mean it's that the test.html page appears in the browser. But this page is in the computer not in apache serve.
Huh? if you can see it in a web browser, then it is on the apache server, as your system IS the apache server.
 
  


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
Apache started but web site don't work acercatealaluz Linux - Newbie 2 05-25-2005 10:59 AM
*@!Z Yarg!!!! Web site in Apache not showing - think it is Permissions! ServerStorm Linux - Software 4 03-17-2005 10:17 AM
How To: Use Windows Partition for Default Apache 2 Web Site RavenLX Linux - Networking 0 01-18-2005 01:41 PM
Apache 401 The web site is blocked by administrator jkruer01 Linux - Software 8 04-14-2004 04:08 PM
Apache Web site updating? munzza Linux - Newbie 1 05-17-2002 02:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:32 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration