LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-04-2012, 08:20 AM   #1
gemmajid
Member
 
Registered: Mar 2012
Location: Karachi
Distribution: Ubuntu, RedHat, CentOs,
Posts: 95

Rep: Reputation: Disabled
How to Change Apache Location


Hello Guys,

I'm using Ubuntu and running apache, i'm running FronAccounting and it's location is /var/www/account (/var/www/) was set by default and i access this through localhost/account, but i want to change /var/www/ to different location how may i do this kindly let me know.
 
Old 06-04-2012, 09:33 AM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
You need to look into httpd.conf configuration file and change the location according to your need. Check what all parameters you set in configuration file.
 
Old 06-05-2012, 12:52 AM   #3
gemmajid
Member
 
Registered: Mar 2012
Location: Karachi
Distribution: Ubuntu, RedHat, CentOs,
Posts: 95

Original Poster
Rep: Reputation: Disabled
I'm unable to find httpd.conf file in ubuntu, in centOs it's easily available, can any one tell me the exact location about the file and what changes i have to make ??
 
Old 06-05-2012, 01:25 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Hi,

In ubuntu it's apache2.conf, but for changing the default docroot (/var/www), better look in /etc/apache2/sites-available/default

Regards
 
Old 06-05-2012, 01:46 AM   #5
gemmajid
Member
 
Registered: Mar 2012
Location: Karachi
Distribution: Ubuntu, RedHat, CentOs,
Posts: 95

Original Poster
Rep: Reputation: Disabled
Thanks dear. I got my location.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] change location athrin Linux - Newbie 2 04-07-2011 03:06 AM
In Apache server, How to change log file location and log format for access log fil? since1993 Linux - Server 1 08-19-2009 05:14 PM
Change GDB location joelcomp1 Linux - Newbie 1 07-03-2007 09:28 AM
how to change the location of mysql lexthoonen Linux - Newbie 4 01-25-2007 01:02 PM
apache: location in location eantoranz Linux - Networking 2 08-08-2005 10:37 PM


All times are GMT -5. The time now is 01:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration