Page 1 of 2 12 LastLast
Results 1 to 15 of 25
  1. #1
    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..

  2. #2
    Join Date
    Nov 2002
    Location
    Europe
    Posts
    122
    Cmon guys, I really need to know Anyone? Thanks.

  3. #3
    Join Date
    Mar 2003
    Location
    Kansas City, MO
    Posts
    66
    This belongs in : WebHostingTalk Forums > Main Forums > Technical & Security Issues

  4. #4
    Join Date
    Aug 2002
    Location
    Chicago
    Posts
    563
    Originally posted by Promethyl
    This belongs in : WebHostingTalk Forums > Main Forums > Technical & Security Issues
    Thanks a lot for nothing dude

  5. #5
    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.

  6. #6
    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. #7
    Join Date
    Nov 2002
    Location
    Europe
    Posts
    122
    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. #8
    Join Date
    Dec 2001
    Location
    Netherlands
    Posts
    774
    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. #9
    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. #10
    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. #11
    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
    Last edited by sprintserve; 04-08-2003 at 11:06 AM.
    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 |

  12. #12
    Join Date
    Dec 2001
    Location
    Netherlands
    Posts
    774
    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. #13
    Join Date
    Nov 2002
    Location
    Europe
    Posts
    122
    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. #14
    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. #15
    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..

Page 1 of 2 12 LastLast

Related Posts from theWHIR.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •