Solved

Unable to locate httpd.conf containing DocumentRoot

Posted on 2013-06-26
6
358 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 300 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 100 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
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 100 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

Containers & Docker to Create a Powerful Team

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

691 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