I want to write a PHP application that is going to do some checks first, to ensure an optimal and secure environment. I'm sure I alone can not think of everything, so what am I missing?
- Ensure MySQL username/password can SELECT, INSERT etc
- Update PHP timezone
- Check for register_globals and warn if enabled
- Ensure /install is deleted
- If no config file make one
- Ensure config file doesn't have write permissions
- Erase cache folder contents if over 50mb or so
- Make sure GD and PDO are installed and working
Please answer with any more ideas or if any of the above aern't a good idea. I probably realise the cache folder thing should be a cron job that runs every week or so.