Re: Simple open source CMS as a starting point
| From: | Michael A. Peters | Date: | Thu, 12 Feb 2009 16:46:09 +0000 |
| Subject: | Re: Simple open source CMS as a starting point | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288169@lists.php.net to get a copy of this message | ||
Shawn McKenzie wrote:
Michael A. Peters wrote:Since the database user used by the script shouldn't have db admin privileges, it doesn't make sense to be able to change those from a webapp admin interface anyway, changing those should require shell login. Yes, I saw the wink, but restricting the privileges of the DB user is worth mentioning anyway. I suppose they could be changed via phpMyAdmin if you run it (I don't, but if I did, it would have to be from an SSL served directory with mod_auth protection)Another thing the common CMS tools frequently do - they want a configuration file that the web server has write permission to that is parsed as php by almost every page the app displays. Big mistake - if you want a web interface to change settings, store the settings in a database table, don't have the web app write them to a file that other pages include.Some good advice, however I have never been able to retrieve my db type, db name, db user name and db password from the database without first using these to connect to the database ;-)