This is a command line utility that scans one or more directories of a Joomla! site. The utility operates in two modes - directory scanning to check directory permissions and verify the presence of index.html files, or file scanning to check permissions on files. In both modes, the script will recursively check the directory in which it is placed and all sub-directories beneath the directory.
In directory scanning mode, the script checks whether directory permissions are set to 0755, the recommended default settings for Joomla! It also checks every directory for the presence of an index.html file. All deviations from the recommended permissions settings and any missing index.html files will be logged to the console. You can use the "Change permissions" option and the "Add index files" option to automatically correct these problems.
In file scanning mode, the script checks whether file permissions are set to 0644, the recommended default settings for Joomla! All files are scanned and any deviations from the recommended permission settings will be logged to the console. You can use the "Change permissions" option to automatically change any anomlous permission to the recommended settings.
Note - the above permissions apply to live servers, if running this script on a development server, or on a local machine your default settings may be different, e.g. a Windows development environment may have all directories set to 0777 and files to 0666.
Visit our website for more information about this and our other utilities.
Released under the GNU General Public License. Copyright 2010 Bodvoc Ltd. All rights reserved.
Copy this file (sitescan.php) into the root of your Joomla! web site (or another directory if you only wish to scan part of the site.
Start your browser and enter the url for this script file on your server (e.g. if the file is in the root directory, enter - http://www.mysite.com/sitescan.php)
An introductory screen will be displayed, offering three options:
Scan directories
Scan files
Delete this script (deletes the scrip from your webserver)
Select the option you require and click the Run button.
Note - we recommend that you remove the script from your server once you have completed the scans, to prevent misuse.