How to secure your Joomla installation’s PHP settings using FTP

This tutorial assumes you have a FTP application and have opened and logged in to your server via FTP

There are a number of both free and commercial FTP applications. In this example we will be using CuteFTP

1) On your remote web server, open the htdocs or public_html directory, then select the directory where Joomla has been previously installed
Joomla CMS

2) Double click the ‘joomla’ directory to open it

Scroll down to locate the ‘htaccess.txt’ file
Joomla Cloud

3) Right click the ‘htaccess.txt’ file then select the Edit option(The ‘.htaccess’ file can be used by Joomla for a number of directives)
Joomla Web Hosting

4) Select a place near the top of the file to enter the following code. Enter the code exactly as illustrated here
Joomla Cloud Hosting

This will code will prevent any errors from being displayed to site visitors
Joomla Content Management System
This can help prevent hackers from running potentially harmful code

5) Now click the Save button
Joomla Hosting

6) Now lets rename the file so Joomla can use it. Right click the ‘htaccess.txt’ file and select the Rename option
Joomla CMS

7) Now let’s rename the ‘htaccess.txt’ file to ‘.htaccess’
Joomla Cloud

You now know how to secure your Joomla PHP settings using FTP