Solved

Unable to locate httpd.conf containing DocumentRoot

Posted on 2013-06-26
6
356 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Unix process listing into CSV format 3 53
xml with php question 5 36
curl parse data from site 20 42
CSRF session and form tokens never match when using php/AJAX 4 30
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo‚Ķ
This article discusses how to implement server side field validation and display customized error messages to the client.
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.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

733 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