How to secure your Joomla installation’s PHP settings using FTP – joomla 2.5 tutorials

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

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

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

Double click the ‘joomla directory to open it. Scroll down to locate the ‘htaccess.txt’ file.

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

Select a place near the top of the file to enter the following code. Enter the code exactly as illustrated here.

This will code will prevent any errors from being displayed to site visitors. This can help prevent hackers from running potentially harmful code.

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

 

 

 

Now let’s rename the ‘htaccess.txt’ file to ‘.htaccess’.

php_flag display_errors off
php_flag allow_url_include off

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

Be Sociable, Share!

Leave a comment