Results 1 to 25 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
    71
    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,209
    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
    849
    cd /var/www
    mv html html-moved
    ln -s /var/webroot/ html

    .
    # experienced Cloud/OpenStack Architect
    #
    # Feel free to PM me for any info or help to build your cloud.

  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
    849
    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

    .
    # experienced Cloud/OpenStack Architect
    #
    # Feel free to PM me for any info or help to build your cloud.

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

  16. #16
    Join Date
    Nov 2002
    Location
    Europe
    Posts
    122
    Stdout: Screw my server? Why would I screw it by doing this?

    AlpfaWolf: thanks, Ill first try what Sashi has mentioned and if that wont work well, Ill edit httpd.

    admin0: Will your sollution affect all the websites, or only this one?

    Thanks!

  17. #17
    Join Date
    Dec 2001
    Location
    Netherlands
    Posts
    849
    Hi,

    My soultion will prevent the necessity to edit the httpd.conf and no matter what more changes ensim makes, it will not affect the hosting.

    As per your original post,
    .........website content was located at /var/webroot/ .........and now my webiste its again pointing to: /var/www/html/ , instead of /var/webroot/ where the content is actually located at.....

    my solution will sync/alias the 2 directories i.e either it is /var/webroot or /var/www/html, the contents will be the same.

    Hope this explains.
    .
    # experienced Cloud/OpenStack Architect
    #
    # Feel free to PM me for any info or help to build your cloud.

  18. #18
    Join Date
    Oct 2002
    Location
    Canada
    Posts
    3,103
    Originally posted by admin0
    shashi // [sasha is a female name]
    Who says so ?


  19. #19
    Join Date
    Dec 2001
    Location
    Netherlands
    Posts
    849


    sorry! I was not aware of any male sasha.

    apologies once again.

    .
    # experienced Cloud/OpenStack Architect
    #
    # Feel free to PM me for any info or help to build your cloud.

  20. #20
    Join Date
    Dec 2001
    Location
    Netherlands
    Posts
    849
    btw:

    i "SAW" a car
    i "SEE" a car.

    SAW-SEE - that is how shashi is pronounced.
    meaning: "cool as the moonlight"


    .
    # experienced Cloud/OpenStack Architect
    #
    # Feel free to PM me for any info or help to build your cloud.

  21. #21
    Originally posted by rackyou
    admin0: Will your sollution affect all the websites, or only this one?

    It will affect only that site, however you can basically repeat the same thing for any number of sites that you need to do that. Frankly is there a reason you want to do this?
    ••• 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 | •••

  22. #22
    Join Date
    Nov 2002
    Location
    Europe
    Posts
    122
    Originally posted by admin0
    btw:

    i "SAW" a car
    i "SEE" a car.

    SAW-SEE - that is how shashi is pronounced.
    meaning: "cool as the moonlight"


    Saw-See.. You could also say Saucy

  23. #23
    Join Date
    Nov 2002
    Location
    Europe
    Posts
    122
    Originally posted by sprintserve
    It will affect only that site, however you can basically repeat the same thing for any number of sites that you need to do that. Frankly is there a reason you want to do this?
    Thanks. No, theres no need for this to apply to other sites. Once again, thanks to all!

  24. #24
    Join Date
    Nov 2002
    Location
    Europe
    Posts
    122
    Originally posted by admin0
    cd /var/www
    mv html html-moved
    ln -s /var/webroot/ html

    Um, what exactly does the second line do? Im trying to understand this whole function. thx

  25. #25
    It's moving it to another location. You can also consider it a backup if you wish
    ••• 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 | •••

Posting Permissions

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