Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using plesk server with multiple sites running. I want to set ft_min_word_len=3 for full text search. I have found that I have to change the option file but problem is that I am not being able to find out the file my.cnf. I have come to know that this file is found either in /etc/ or /home/mydir/ but do not know how and where to check this file.

share|improve this question

closed as off-topic by MadHatter, Michael Hampton Jan 17 at 15:05

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

You can use nice Unix tools such as Locate ou Find to find that file.

To use the locate tool, first generate the database :


Then search for the file

locate my.cnf

share|improve this answer

Or, to find it faster then messing with locate (the DB should actually be automatically kept fairly up to date) try this:

find /etc -name my.cnf
find ~ -name my.cnf

One of those should print a line showing where my.cnf is.

share|improve this answer

Run "ps -eF" to see the command line being passed to the mysql process. If it's a non-standard config file it should appear there. If it isn't a listed option it will use the compile time default for mysql, which is normally dependent on the OS mysql package (rpm etc.) rather than plesk.

share|improve this answer
find / -name my.cnf -type f -print

should do it, but it might run slow.

share|improve this answer

The path is: /etc/mysql/my.cnf

share|improve this answer