Joomla Security

Hi, I installed Joomla and I’m trying to improve the security of the web site, an important step is change the configuration.php file outside of the public_html directory, but this configuration depend of the server setup. Can someone tellme how I can do it without have problems with my website?

Thank you