Solved

Unable to locate httpd.conf containing DocumentRoot

Posted on 2013-06-26
6
350 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
Comment Utility
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
Comment Utility
Hi its not hhtpd.conf its apache.conf

/etc/apache2/apache2.conf
0
 
LVL 10

Expert Comment

by:honestman31
Comment Utility
if hhtpd.conf  is not exist in  /etc/apache2/   then create it ...  edit it ... save it ... restart appache or reboot
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 100 total points
Comment Utility
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
Comment Utility
noting wrong to edit both files ,, just in case
0
 

Author Closing Comment

by:sukhoi35
Comment Utility
Thanks for your time
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
The viewer will learn how to count occurrences of each item in an array.

771 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

11 Experts available now in Live!

Get 1:1 Help Now