I use Mint and I often do

sudo....
apt-get install xxx

It works but later I never know where xxx was installed. I would like to edit-reconfigure my apache 'r root document to use with cakephp but I don't know how.

link|improve this question

33% accept rate
Did you configure it at time of install? If so, dpkg-reconfigure is your friend! – Rob Feb 9 at 18:12
feedback

1 Answer

up vote 0 down vote accepted

Does this do what you want?

apt-file show apache2

As a last resort

sudo find / -name httpd.conf

Update:

  `find / -name httpd | grep "bin.*httpd"` -V | egrep 'ROOT|CONFIG'

should produce something like

   -D HTTPD_ROOT="/etc/httpd"
   -D AP_TYPES_CONFIG_FILE="conf/mime.types"
   -D SERVER_CONFIG_FILE="conf/httpd.conf"

Unless you have lots of httpd files in bin directories.

Otherwise you can scrutinise the contents of startup scripts such as /etc/init.d/httpd or /etc/init.d/apache*

link|improve this answer
Thanks, but I use command [gedit /etc/apache2/httpd.conf] then I only see [Servername localhost] nothing else in the file. – Thach Xuyen Feb 9 at 14:38
Does /usr/sbin/apachectl -t say anything? – RedGrittyBrick Feb 9 at 14:48
No such file or directory! – Thach Xuyen Feb 9 at 14:53
Sorry it should be apache2ctl -t which produces SYNTAX OK – Thach Xuyen Feb 9 at 14:58
Then apache2ctl -V will show you what config file it normally loads (unless a different one is specified in the startup script) – RedGrittyBrick Feb 9 at 15:12
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.