hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Need Help With Website!
Reply

Forum Jump

Need Help With Website!

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-06-2003, 02:55 PM
rackyou rackyou is offline
WHT Addict
 
Join Date: Nov 2002
Location: Europe
Posts: 122

Need Help With Website!


Heres the problem: I have a dedicated server on which I am running few websites. I had this guy helping me with setting up one of the websites with special needs, but cant get a hold of him since hes out of country now.. He set it the way that this website content was located at /var/webroot/ . All good, until I have decided to allow more bandwidth for this website (using the ensim control panel to do the job for me - through which the site was at first set up). Doing this, Ensim made the desired changes, but has also reseted other settings to default (thus nullifying this guys work) and now my webiste its again pointing to: /var/www/html/ , instead of /var/webroot/ where the content is actually located at.

So my question is, what do I have to do in order to make sure that when person visits my website is pointed to the right area of my server and not to the default part, set by ensim. I hope Im clear enough and that you understand the situation I found myself in Thanks!

PS: I hope this is the right section of WHT to post this in..



Sponsored Links
  #2  
Old 04-06-2003, 07:13 PM
rackyou rackyou is offline
WHT Addict
 
Join Date: Nov 2002
Location: Europe
Posts: 122
Cmon guys, I really need to know Anyone? Thanks.

  #3  
Old 04-07-2003, 12:59 AM
Promethyl Promethyl is offline
Junior Guru Wannabe
 
Join Date: Mar 2003
Location: Kansas City, MO
Posts: 66
This belongs in : WebHostingTalk Forums > Main Forums > Technical & Security Issues

Sponsored Links
  #4  
Old 04-07-2003, 01:09 AM
Mesum Mesum is offline
Web Hosting Master
 
Join Date: Aug 2002
Location: Chicago
Posts: 563
Quote:
Originally posted by Promethyl
This belongs in : WebHostingTalk Forums > Main Forums > Technical & Security Issues
Thanks a lot for nothing dude

  #5  
Old 04-07-2003, 01:13 AM
allan allan is offline
Retired Moderator
 
Join Date: Dec 2000
Location: Leesburg, VA
Posts: 3,205
MOD Note: Moved

You will need to make the change in the httpd.conf, but whenever you make changes through the control panel it will overwrite the changes you made.

__________________
My Political Blog

  #6  
Old 04-07-2003, 04:51 AM
hololi hololi is offline
Junior Guru
 
Join Date: Dec 2002
Location: London
Posts: 179
first of all sorry nobody is being very helpful to you
at the moment

anyway : to make matters worse I know nothing about all these control panels.

I hack around with apache form source.
and the following solution is a command line solution that I use.

I would

back up all the current websites

re configure apache (I do it command line ) it's the httpd.conf manually. I assume control panels are just front ends for editing httpd.conf etc..

I think you need ot know about apache configuration for multiple websites

I have a few "quick tips" on configuring apache for multiple websites (name based virtual hosting) on my website.

check out the quick tips on
MOD Note: Participants may not use the Forum to direct others to any pages which they have a commercial interest in, these include commission or referral hyperlinks.

I guess the "virtual hosts on Apache " is the one you should read

best of luck and sorry I don't use control panels

hololi


Last edited by allan; 04-07-2003 at 07:40 AM.
  #7  
Old 04-07-2003, 08:44 AM
rackyou rackyou is offline
WHT Addict
 
Join Date: Nov 2002
Location: Europe
Posts: 122
Quote:
Originally posted by allan
MOD Note: Moved

You will need to make the change in the httpd.conf, but whenever you make changes through the control panel it will overwrite the changes you made.
Thanks Allan, Im aware that Ensim will reset those settings every time I use it. But untill I come up with better solution Ill just have to stick to this. If its just one file that has to be edited, added few lines, then I can just keep those lines saved on my pc and everytime this occurs, I can just add them where they are supposed to be. I dont even use ensim all that often so it shouldnt be a problem. However, could somebody explain a bit more about this httpd.conf editing to me? Im sorry, but Im a newbie when it comes down to that..

Hololi: Thanks for your help as well As I said, Im a newbie when it comes to manually configuring Apache

  #8  
Old 04-07-2003, 10:15 AM
admin0 admin0 is offline
Web Hosting Master
 
Join Date: Dec 2001
Location: Netherlands
Posts: 773
cd /var/www
mv html html-moved
ln -s /var/webroot/ html


__________________
███ Remote Hands/Cloud Setup @ Europe
███ DevOps for Hosting Comapanies
███ Cloud Consultancy and Setups
███ since 1997

  #9  
Old 04-08-2003, 09:45 AM
rackyou rackyou is offline
WHT Addict
 
Join Date: Nov 2002
Location: Europe
Posts: 122
Thanks admin0 Theres only one question left: Where and how the hell do I edit this httpd.conf? I know, I know... RTFM right? Just tell me guys, please. Curently 700 daily uniques are going into nothing..

  #10  
Old 04-08-2003, 10:31 AM
sethgarnar sethgarnar is offline
Web Hosting Guru
 
Join Date: Feb 2003
Posts: 267
First of all, how can you run a web hosting business if you cant even figure out how to edit httpd.conf. It really is depressing to see such a lack of basic unix skills.

locate httpd.conf !!!!!!!

then vi/joe/pico/ httpd.conf

  #11  
Old 04-08-2003, 10:46 AM
sprintserve sprintserve is offline
Retired Moderator
 
Join Date: Jan 2003
Posts: 9,009
Quote:
Originally posted by rackyou
Thanks admin0 Theres only one question left: Where and how the hell do I edit this httpd.conf? I know, I know... RTFM right? Just tell me guys, please. Curently 700 daily uniques are going into nothing..
If you did what sashi advised, you do not need to edit httpd.conf.

ps. His solution is better than editing httpd.conf as any control panel changes do not affect it

__________________
Like us on Facebook to qualify for discounts!
http://www.sprintserve.net
Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting |
Services: | Managed Multiple Cores 64bit Servers | Server Management |


Last edited by sprintserve; 04-08-2003 at 11:06 AM.
  #12  
Old 04-08-2003, 11:01 AM
admin0 admin0 is offline
Web Hosting Master
 
Join Date: Dec 2001
Location: Netherlands
Posts: 773
Quote:
Originally posted by sprintserve
If you did what sasha advised, you do not need to edit httpd.conf.

ps. His solution is better than editing httpd.conf as any control panel changes do not affect it


shashi // [sasha is a female name]


with my steps, you never need to edit the httpd.conf. and no matter what changes the control panel makes, it will always work.

Note:
special Thanks to sprintserve


__________________
███ Remote Hands/Cloud Setup @ Europe
███ DevOps for Hosting Comapanies
███ Cloud Consultancy and Setups
███ since 1997

  #13  
Old 04-08-2003, 02:01 PM
rackyou rackyou is offline
WHT Addict
 
Join Date: Nov 2002
Location: Europe
Posts: 122
Quote:
Originally posted by sethgarnar
First of all, how can you run a web hosting business if you cant even figure out how to edit httpd.conf. It really is depressing to see such a lack of basic unix skills.

locate httpd.conf !!!!!!!

then vi/joe/pico/ httpd.conf
I aint running webhosting biz, so chill out Last time I checked, this was open forum for who ever finds its info helpfull..


Admin0 & Sprintserve: Tanks a lot Ive got little confused since few other guys were mentioning httpd.conf and thought this has something to do with it..

  #14  
Old 04-09-2003, 01:49 AM
Alphawolf Alphawolf is offline
Newbie
 
Join Date: Apr 2003
Location: Minnesota
Posts: 15
Edit httpd.conf

If you wanted to edit the httpd.conf file...

httpd.conf is the primary config file for Apache. The directive you are looking for is DocumentRoot. There may be more than one based on multiple web sites configured.

Your DocumentRoot is set to /var/www/html and you want it set to /var/webroot/

When you edit this file, search for /var/www/html and simply change it to /var/webroot/

Afterwards you will need to stop/start the httpd process.

I am not familiar with Ensim either, but if you need a quick fix and wanted to edit httpd.conf that should be all you need to do.

Look for something like this:
<VirtualHost *>
DocumentRoot /www/example1
ServerName www.example1.com

# Other directives here
</VirtualHost>

Assuming you are running Linux you should be able to find the httpd.conf file using (as another poster stated):
locate httpd.conf

Good luck.

  #15  
Old 04-09-2003, 02:10 AM
stdout stdout is offline
Newbie
 
Join Date: Apr 2003
Location: Nelspruit, South Africa
Posts: 29
poor guy is going to have a hard time trying to choose which way to screw his server - thanks guys..

Reply

Related posts from TheWhir.com
Title Type Date Posted
Designer-Focused Website Builder Webydo Closes $7 Million Funding Round Web Hosting News 2014-06-24 12:11:52
TrendyTools Launches HTML 5 Website Builder cPanel Plugin Web Hosting News 2013-08-07 14:18:20
Domain Registrar Namecheap Offers Onepager Website Builder to Customers, Makes Equity Investment Web Hosting News 2013-01-10 17:24:23
VIDEO: WebsPlanet, Hostway talk Website Building Software Partnership Whir Tv 2014-05-02 14:54:09
VIDEO: Yola CEO Talks About Website Builder and Web Hosting Partners Whir Tv 2014-05-02 14:58:34


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?