LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-03-2007, 11:08 AM   #1
antinull
LQ Newbie
 
Registered: Oct 2007
Posts: 25

Rep: Reputation: 15
I need help configuring apache on my webserver


Okay, i have used apache on a windows me machine as a webserver but that computer bit the dust recently
so now i am trying to use a newer linux-debian installed computer to run my website.
problem is i cannot seem to get apache to stop pointing to/www/apache2-default/
instead of my /www/ directory
What configuration file do i need to edit and how ?

http://antinul.com/
it allways goes to
http://antinul.com/apache2-default/
which doesnt exist anymore

Last edited by antinull; 11-03-2007 at 11:10 AM.
 
Old 11-03-2007, 11:31 AM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
Originally Posted by antinull View Post
Okay, i have used apache on a windows me machine as a webserver but that computer bit the dust recently
so now i am trying to use a newer linux-debian installed computer to run my website.
problem is i cannot seem to get apache to stop pointing to/www/apache2-default/
instead of my /www/ directory
What configuration file do i need to edit and how ?

http://antinul.com/
it allways goes to
http://antinul.com/apache2-default/
which doesnt exist anymore
you can change it in httpd.conf with this directive: DocumentRoot /where/you/want/to/put/your/docs.

The httpd.conf file is located in the apache_x.x.x/conf/ directory.
 
Old 11-03-2007, 11:35 AM   #3
antinull
LQ Newbie
 
Registered: Oct 2007
Posts: 25

Original Poster
Rep: Reputation: 15
actually forsome reason debian has a different alternate root line in a config file i never used before i finally found it and now the server loads my index file ^_^
thanks for the help though
 
Old 11-03-2007, 11:57 AM   #4
antinull
LQ Newbie
 
Registered: Oct 2007
Posts: 25

Original Poster
Rep: Reputation: 15
i uploaded my website but now i get this error when i goto antinul.com

Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

Fatal error: Unknown: Failed opening required '/var/www/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0


EDIT:
FIXED
awesome nevermind i just suck with linux permissions

Okay now to make my code work properly.... SHIT lol

Last edited by antinull; 11-03-2007 at 12:11 PM.
 
  


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
webserver/apache help colinstu General 8 09-03-2006 12:28 PM
Apache webserver Help.. co_macho Mandriva 5 02-26-2006 10:22 PM
Apache webserver name karupt Linux - Networking 2 08-01-2004 11:55 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
Apache webserver trusouthrnplaya Linux - Networking 1 03-30-2003 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:17 PM.

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