LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 07:20 AM   #1
gemmajid
Member
 
Registered: Mar 2012
Location: Karachi
Distribution: Ubuntu, RedHat, CentOs,
Posts: 104

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, 08:33 AM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

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-04-2012, 11:52 PM   #3
gemmajid
Member
 
Registered: Mar 2012
Location: Karachi
Distribution: Ubuntu, RedHat, CentOs,
Posts: 104

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, 12:25 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,201
Blog Entries: 1

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
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, 12:46 AM   #5
gemmajid
Member
 
Registered: Mar 2012
Location: Karachi
Distribution: Ubuntu, RedHat, CentOs,
Posts: 104

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 02: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 04:14 PM
Change GDB location joelcomp1 Linux - Newbie 1 07-03-2007 08:28 AM
how to change the location of mysql lexthoonen Linux - Newbie 4 01-25-2007 12:02 PM
apache: location in location eantoranz Linux - Networking 2 08-08-2005 09:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:39 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
Open Source Consulting | Domain Registration