Configuration paths

Paths of configuration files of some most common services.

Mac OS X (default configuration)

apache

  • main config file: /etc/apache2/httpd.conf
  • virtual hosts config: /etc/apache2/extra/httpd-vhosts.conf

php

  • /private/etc/php.ini

use phpinfo() to see what ini is php using. The php.ini.default should be copied to the php.ini and changed it there. stackoverflow question

Enableing error reporting

; display_errors
; Default Value: On
; Development Value: On
; Production Value: Off

; display_startup_errors
; Default Value: On
; Development Value: On
; Production Value: Off

; error_reporting
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT 
; Production Value: E_ALL & ~E_DEPRECATED

; html_errors 
; Default Value: On 
; Development Value: On 
; Production value: Off

; log_errors
; Default Value: On 
; Development Value: On 
; Production Value: On

Apache needs to be restarted after this sudo apachectl -k restart

Default log location /var/log/apache2/error_log

http://xdebug.org/wizard.php

mysql

After installing it from Oracle website.

  • bin folder: /usr/local/mysql/bin

CentOS

apache

  • main config file: /etc/httpd/conf/httpd.conf
  • additional config: /etc/httpd/conf.d

    This directory holds Apache 2.0 module-specific configuration files; 
    any files in this directory which have the ".conf" extension will be 
    processed as Apache configuration files. 
    
    Files are processed in alphabetical order, so if using configuration 
    directives which depend on, say, mod_perl being loaded, ensure that 
    these are placed in a filename later in the sort order than "perl.conf".
    

Author

I plan to write more articles about common laravel components. If you are interested let’s stay in touch.
comments powered by Disqus