LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-19-2004, 12:34 AM   #16
PaulScott56
LQ Newbie
 
Registered: May 2004
Location: South Africa
Distribution: Mandrake
Posts: 8

Rep: Reputation: 0

You are all getting yourself into an infinite loop here... Forget localhost - that is your server name, not the document root! The document root is the place where your web browsable files are kept. To change the document root, look for document_root in your config files. If you open the files in Vim (vi) then you can find a pattern by typing /document and it will highlight all instances of the pattern - that should help you find all instances of the document root. Next, you gotta change the server alias near the bottom of the httpdcommon.conf file. This will still point to your OLD doc root so its gotta change.

On the other hand, you could always just download webmin and install that, and do it in a nice formatted gui which, if you are struggling this much, may be the best option, or else you are going to be struggling with this for ages!
 
Old 05-19-2004, 12:36 AM   #17
PaulScott56
LQ Newbie
 
Registered: May 2004
Location: South Africa
Distribution: Mandrake
Posts: 8

Rep: Reputation: 0
OOOPS! One more thing.... Whatever you change for the main server configuration, make sure that you change for the virtual host on port 443...Otherwise apache will just get confused!
 
Old 05-19-2004, 03:42 PM   #18
Patbuzz86
Member
 
Registered: Mar 2004
Distribution: MDK 9.2
Posts: 92

Original Poster
Rep: Reputation: 15
and put?
 
Old 05-20-2004, 02:44 AM   #19
PaulScott56
LQ Newbie
 
Registered: May 2004
Location: South Africa
Distribution: Mandrake
Posts: 8

Rep: Reputation: 0
Find all instances of dcument root in the various config files, mainly httpd2common.conf, and change it to your new directory. As I said in an earlier post, it is probably worth your while to download webmin from www.webmin.com and use that!
 
Old 05-20-2004, 03:00 AM   #20
kittani
LQ Newbie
 
Registered: May 2004
Posts: 20

Rep: Reputation: 0
Start new httpd.conf file

start over with a new file. I have a simple router set-up that changes port 80 requests to port 197X internally.. using DDNS. in the main config file i only changed the line referring to what port to listen on... and the two places where it asks you for the location of the web site itself. 3 lines... that's it.... now provided you have it set-up similarly... or with less even... it may be easier for you. it shouldn;t have to refrence outside config files for a basic set-up.... get that working first... then try to get the fancy stuff working.

As far as permissions go i CD'd into the root directory of the web site itself... in my case /archive/http

there i ran a single command, as root ... chmod -R 755 *

don't quote me on the 755... it's whatever one gives you rwxr-xr-x permissions on a ls -l

I didn;t have to change a thing other than that and configuring my router to filter the ports for me.

hope that helps... I was getting the same message you were... it's not apache giving the access denied it's the file permissions or access privelages. I did notice of you turn too much stuff on in the apache config file it will shut the whole thing down because some stuff conflicts internally.

kind of a bug, kind of not.

Tom
 
  


Reply



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



LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:25 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