?
Solved

Unable to locate httpd.conf containing DocumentRoot

Posted on 2013-06-26
6
Medium Priority
?
360 Views
Last Modified: 2013-06-26
I am a newbie in PHP and have setup CakePHP environment for a project using LAMP on Ubuntu. The images are not getting displayed and I suspect it is got to do something with URL rewriting mentioned here: http://book.cakephp.org/2.0/en/installation/url-rewriting.html To address this issue, I am trying to locate httpd.conf to make changes to DocumentRoot. The only httpd.conf I could locate was the one in /etc/apache2 which contains a single line 'ServerName localhost'. Can experts suggest where I can look for the actual httpd.conf containing DocumentRoot and other directives. There is one file called 'Default' under /etc/apache2/sites-available which has the Directory directives. But modifying this file did not help.
0
Comment
Question by:sukhoi35
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 10

Accepted Solution

by:
honestman31 earned 1200 total points
ID: 39277219
seems this is /etc/apache2  the right place ..  
so you will need to edit  /etc/apache2/httpd.conf  save it   and then restart apache ( or reboot the server )

more information can be found here
http://ubuntugods.com/httpd-conf-location-ubuntu
0
 
LVL 6

Assisted Solution

by:Vijay Pratap Singh
Vijay Pratap Singh earned 400 total points
ID: 39277228
Hi its not hhtpd.conf its apache.conf

/etc/apache2/apache2.conf
0
 
LVL 10

Expert Comment

by:honestman31
ID: 39277258
if hhtpd.conf  is not exist in  /etc/apache2/   then create it ...  edit it ... save it ... restart appache or reboot
0
ATEN's HDBaseT Presentation at InfoComm 2017

Hear ATEN Product Manager YT Liang review HDBaseT technology, highlighting ATEN’s latest solutions as they relate to real-world applications during her presentation at the HDBaseT booth at InfoComm 2017.

 
LVL 84

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 400 total points
ID: 39277277
Several distributions use 'apache2.conf' instead of 'httpd.conf' for the main configuration file and then a variety of others for 'virtual hosts' and other things.
0
 
LVL 10

Expert Comment

by:honestman31
ID: 39277343
noting wrong to edit both files ,, just in case
0
 

Author Closing Comment

by:sukhoi35
ID: 39277653
Thanks for your time
0

Featured Post

Application Discovery Service in AWS

In the era of the cloud, customers migrating away from their existing on-premise infrastructure. This requires lots of planning, strategies, and effort to identify their existing resources and determine how best to migrate.  Datacenter migrations happen in four phases -

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question