Results 1 to 25 of 25
Thread: Need Help With Website!
-
04-06-2003, 02:55 PM #1WHT 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..
-
04-06-2003, 07:13 PM #2WHT Addict
- Join Date
- Nov 2002
- Location
- Europe
- Posts
- 122
Cmon guys, I really need to know Anyone? Thanks.
-
04-07-2003, 12:59 AM #3Junior Guru Wannabe
- Join Date
- Mar 2003
- Location
- Kansas City, MO
- Posts
- 71
This belongs in : WebHostingTalk Forums > Main Forums > Technical & Security Issues
-
04-07-2003, 01:09 AM #4Web Hosting Master
- Join Date
- Aug 2002
- Location
- Chicago
- Posts
- 563
Originally posted by Promethyl
This belongs in : WebHostingTalk Forums > Main Forums > Technical & Security Issues
-
04-07-2003, 01:13 AM #5Web Hosting Master
- 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.
-
04-07-2003, 04:51 AM #6Junior 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
hololiLast edited by allan; 04-07-2003 at 07:40 AM.
-
04-07-2003, 08:44 AM #7WHT Addict
- 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.
Hololi: Thanks for your help as well As I said, Im a newbie when it comes to manually configuring Apache
-
04-07-2003, 10:15 AM #8Web Hosting Master
- 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.
-
04-08-2003, 09:45 AM #9WHT 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..
-
04-08-2003, 10:31 AM #10Web 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
-
04-08-2003, 10:46 AM #11Retired Moderator
- Join Date
- Jan 2003
- Posts
- 9,049
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..
ps. His solution is better than editing httpd.conf as any control panel changes do not affect itLast 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 | •••
-
04-08-2003, 11:01 AM #12Web Hosting Master
- 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.
-
04-08-2003, 02:01 PM #13WHT Addict
- 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
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..
-
04-09-2003, 01:49 AM #14Newbie
- 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.
-
04-09-2003, 02:10 AM #15Newbie
- 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..
-
04-09-2003, 09:39 AM #16WHT Addict
- 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!
-
04-09-2003, 09:50 AM #17Web Hosting Master
- 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.
-
04-09-2003, 10:01 AM #18Hail Eris !
- Join Date
- Oct 2002
- Location
- Canada
- Posts
- 3,103
Originally posted by admin0
shashi // [sasha is a female name]
-
04-09-2003, 10:19 AM #19Web Hosting Master
- 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.
-
04-09-2003, 10:44 AM #20Web Hosting Master
- 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.
-
04-09-2003, 11:46 AM #21Retired Moderator
- Join Date
- Jan 2003
- Posts
- 9,049
Originally posted by rackyou
admin0: Will your sollution affect all the websites, or only this one?
••• 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 | •••
-
04-10-2003, 09:00 AM #22WHT Addict
- 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"
-
04-10-2003, 09:02 AM #23WHT Addict
- 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?
-
04-10-2003, 03:01 PM #24WHT Addict
- Join Date
- Nov 2002
- Location
- Europe
- Posts
- 122
Originally posted by admin0
cd /var/www
mv html html-moved
ln -s /var/webroot/ html
-
04-10-2003, 03:07 PM #25Retired Moderator
- Join Date
- Jan 2003
- Posts
- 9,049
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 | •••