Web Design and Development Forums

Changing the localhost directory

This is a discussion on "Changing the localhost directory" within the Apache and IIS section. This forum, and the thread "Changing the localhost directory are both part of the Hosting Related category.


Go Back   Webforumz.com > Hosting Related > Apache and IIS

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Apr 20th, 2008, 14:37   #1 (permalink)
New Member
 
Join Date: Sep 2007
Location: UK
Age: 22
Posts: 8
Changing the localhost directory

I am an asp programmer and just started learning php. For development under asp, i followed a practice where i had defined a custom root folder in a convenient location where i could store all of my website related data. And had changed the home directory for IIS server (i.e. i changed my root folder from the default wwwroot directory to some other place). So, my localhost would become, say f:\mywork\webdev\, instead of the default c:\Inetpub\wwwroot.
Now, i want to follow a similar practice for php based development as i dont like storing websites' data on c: drive.
If anybody knows how to configure the server root folder settings as i had described above then please help me..im running apache (wamp2)
robinmitra1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 20th, 2008, 14:58   #2 (permalink)
Nerdy Moderator
 
CloudedVision's Avatar
 
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 517
Blog Entries: 4
Re: Changing the localhost directory

Moved to Apache/IIS forum

Your question is related to Apache. PHP has nothing to do with the root directory.

You can change it in Apache by going to the httpd.conf file and editing the DocumentRoot, and also the <directory "mydir"> a few lines down. (It's not the first <directory> tag that you see)
__________________
Take it easy

Other Road Design

WebForumz Moderator: HTML | Javascript | PHP
CloudedVision is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 20th, 2008, 15:29   #3 (permalink)
New Member
 
Join Date: Sep 2007
Location: UK
Age: 22
Posts: 8
Re: Changing the localhost directory

Sorry about posting in the wrong forum...

thanks alot mate...it worked! just had to further copy some files and change some paths.but it didnt work until i restarted all services from wamp..cheers
robinmitra1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache 'http://localhost' not working lcsaeteurn Apache and IIS 6 Apr 16th, 2008 18:21
http://localhost/file.php azilaka PHP Forum 16 Jul 13th, 2007 21:56
(localhost) cookie weirdness Donny Bahama PHP Forum 4 May 29th, 2007 14:44
Sending Emails From Localhost ? Accurax PHP Forum 6 Jan 20th, 2007 03:05
'ODBC'@'localhost' error Sqrlgrl MySQL 8 Nov 21st, 2005 13:27



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 05:00.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59