You will need to log into cPanel with your supplied username and password. Normally this URL is: http://vvww.joomquery.com/cpanel.
Select the Username ?eld and enter your username. Select the Password ?eld and enter your password. Next click the Log in button. Select the File Manager option under the Files section. With the Web Root radio button selected, click on the Go button. Select the ‘joomla’ folder and double click to open it.
Right click the ‘htaccess.txt’ file then select the Edit option (The ‘.htaccess’ file can be used by Joomla for a number of directives). Click the Edit button.
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 Changes button. Click the Close button to close the editor.
Click the Yes button. Now lets rename the file so Joomla can use it. Right click the ‘htaccess.txt’ file and select the Rename option. Click the Rename File button.
php_flag display_errors off
php_flag allow_url_include off
You now know how to secure your Joomla PHP settings using cPanel.