On 8 Apr 2009, at 22:32, Sriram Natarajan wrote:

> In Linux, the convention to read configuration files are from /etc/ 
> <filename>.
> For example, PHP configuration files are read from /etc/php.ini.  
> Similarly , for Apache, configuration files are at /etc/httpd.conf  
> and  MySQL configuration file  at /etc/my.cnf

Actually, it's been a convention on many Linux distros for years to  
put the configuration file for a major component into an appropriate  
component directory within etc. Ie. /etc/apache2 or /etc/mysql.

We changed MySQL a couple of years ago so that it will look in /etc/ 
mysql/my.cnf and /etc/my.cnf precisely to fall in line with the  
changes occuring in the distributions.

> In OpenSolaris, the default configuration files reside under /etc/ 
> <component-name>/<version>
>
> So, Apache or PHP or MySQL configuration file resides under
> /etc/apache2/2.2/httpd.conf or /etc/php/5.2/php.ini or  /etc/mysql/ 
> <5.1>/my.cnf

Correct - but we create a link from /etc/mysql/5.0/my.cnf to /etc/ 
mysql/my.cnf.

> So, reading from /etc/my.cnf would be an exception and we should  
> avoid making exceptions unless there is a very good reason to  
> support it.

It's not an exception, it's an alternative location.

MC

--
Martin 'MC' Brown, mc at mcslp.com and mc.brown at sun.com
Technical Writer, Database Group, Sun Microsystems
Everything MCslp: http://planet.mcslp.com


Reply via email to