Solved

Unable to locate httpd.conf containing DocumentRoot

Posted on 2013-06-26
6
351 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
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

919 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now