Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all,
I Have just installed debian 4.0, i have installed apache and when i do http://localhost/ it brings up the apache page which says "it works" so i figure i have apache installed correctly.So i found out that the "it works" was located at "/var/www/apache2-default" and i removed it and placed my own website files in there.So now when i type "http://localhost/" in to my browser i get an index of my website,which i have created which is not what i want.I wanted my webpage to come up.So i think my first question is have i put my website files in the right place?If so why does my site not display the way it should.I was running it on windows xp but decided to move it to linux.
Thanks Nige.
with all due respect to the apache-hating poster above me, apache is popular for a lot more reasons than its own popularity... that's a self-perpetuating impossibility. Apache is also nothing close to a big fat cow unless you want it to be. Anyone who claims otherwise hasn't tried very hard to learn much about the product. I'm not trying to feed the troll here... I just want the OP (apparently a new user) to understand that there are other viewpoints. Choose whatever webserver you like best... but if you're just starting out with this stuff, it's far easier to find help with apache issues than any other.
Anyway, the issue is likely related to a lack of an index file. your webserver is expecting you to tell it what page to start out with. This has traditionally been an index file, one named something like "index.html" or "home.html". If you're using a php page, you will need to be sure apache is configured to use php. No matter what type of page you're trying to use, you'll need to make sure apache knows where it is. If you don't mind a little invasion of privacy, you could post a directory listing and your httpd.conf file here and we can help you troubleshoot.
Hi firstly thanks for the reply,
now just so there could be no mistakes i have just reinstalled apache which is up and running as in i get the "it works" when i type "http://localhost/" in a browser.When you ask for a directory listing i assume this is what you want to see.
Quote:
Quote:
About-me.htm
linux is here to stay.htm
AS-IF_files
linux_suggestions.htm
AS-IF.htm
localstart.asp
_borders
masternige_files
Carm.jpg
masternige.html
Connor.jpg
masternige_linuxworld.dwt
Copy (2) of Pictures
Messenger_files
Copy (2) of Python basics_files
Messenger.htm
Copy of Debian help.htm
mmc.gif
Copy of Debian help topics.htm
Molly-in the snow.jpg
Copy of Debian static ip.htm
Monitor power.htm
Copy of fphover.class
MY HTML HOW TO.htm
Copy of fphoverx.class
my_linux_help_topics.htm
Copy of html_tutorial.htm
my_nfs_tutorial.htm
Copy of images
nfs_setup_ubuntu.htm
Copy of linux_how_tos.htm
pagerror.gif
Copy of Linux how to(Suse).txt-ahpp.html
penguin.jpg
Copy of Linux how to(Suse).txt.bak
penguin_small.jpg
Copy of linux is here to stay.htm
photogallery
Copy of masternige_files
Photo gallery.htm
Copy of masternige.html
Pictures
Copy of masternige.pub
postinfo.html
Copy of Photo gallery.htm
Practice-homepage.pub
Copy of Python basics_files
print.gif
Copy of Python basics.htm
_private_copy(1)
Copy of Suse mouse config.htm
Python basics_files
Copy of Suse sources list.htm
Python basics.htm
Copy of testing.htm
Shortcut to my-page-old.....lnk
Copy of Ubuntu-help-topics.htm
sites-enabled
Copy of Ubuntu wireless card config.htm
Suse desktop config options.htm
Daims&Kaz 009_copy(1).jpg
Suse help topics_files
Daims&Kaz 177_copy(1).jpg
Suse help topics.htm
Daims&Kaz 272_copy(1).jpg
Suse Index.htm
Daims&Kaz 274_copy(1).jpg
Suse mouse config.htm
Debian help.htm
suseslick__questions.htm
Debian help topics.htm
Suse sources list.htm
Debian static ip.htm
Suse wireless.htm
_derived
testing.htm
desktop.ini
Thumbs.db
Download Linux.htm
Ubuntu-Desktop-Config.htm
FORMDATA.HTM
ubuntu_questions.htm
fphover.class
Ubuntu wireless card config.htm
fphoverx.class
_vti_cnf
help.gif
_vti_inf.html
html_tutorial.htm
_vti_log
iisstart.asp
_vti_pvt
images
_vti_script
index_files
_vti_txt
index.htm
warning.gif
libc_version.htm
Where to download Linux
_LinuxDiscussion
winxp.gif
linux_how_tos.htm
wireless_card_setup.htm
Linux how to(Suse).txt-ahpp.html
XP-Freeze_files
Linux how to(Suse).txt.bak
XP-Freeze.htm
now the file which should be my home page is "masternige.html" as for my "httpd.conf" it is empty.I hope this helps.
I don't think your httpd.conf is empty... it's probably just not where you think it is It should be in /etc/httpd/conf/ or possibly (rarely) in just /etc.
please post the output from the following and I'll see what I can figure out for you:
Apache is a big software because it's the most powerfull one. You can just do whatever you want with apache.
master, I suggest that you read a bit about its internal if you want to understand what you're doing.
Hi,
I would just like to say thanks for everybody's input.
After playing about when i type in http://localhost in to my browser i get my webpage come up which is great.Also when i use my other computer as i have 3 of them on a private lan all with there own ip address, and type in the computer ip address of my soon to be webserver i get the webpage up.But i only get that if i type in the private ip add not my ip i have been given by my isp.So at the moment it would seem i have created an intranet. which is almost what i want.So my question is how do i make this accessible to the outside world.I have opened port 80 on my router.Now i noticed just one error when i restart apache which i have listed below.
compaq:/etc/apache2# /etc/init.d/apache2 reload
Reloading web server config...3840
[Wed Apr 25 18:37:47 2007] [warn] NameVirtualHost *:0 has no VirtualHosts
.
If anyone can shed any light on this
Thanks Nige.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.