Reputation: 5180
I'm just finishing a CMS that I want to release as open source. The program has some ini_set()
directives to set a secure environment, like session.use_only_cookies
, etc. The problem is that some hosts don't allow ini_set()
and only allow configuration with the php.ini
file. Is there a way to set up a secure PHP environment on a wide base of PHP configurations? How do other PHP programs face this problem (e.g. Wordpress, Drupal etc.).
Upvotes: 1
Views: 163
Reputation: 401182
Generally speaking :
Upvotes: 2
Reputation: 449803
You could output a warning if you encounter a setting that you deem unsecure.
Many web apps do it that way, e.g. if the install script isn't deleted, or the administrator has a default password.
Upvotes: 0