OneFileCMS

Download

Want to take OneFileCMS out for a test drive? Please do! Just make sure you read the license before you go using it commercially or making modifications!

Filename Description Size
onefilecms_v1.1.1.zip OneFileCMS only 8kb
onefilecms_site_v1.1.1.zip OneFileCMS with example PHP site 56kb

Install

OneFileCMS is so easy to install your butt will fall off. So, you know, you should go ahead and take precautions now. Or whatever.

  1. After downloading the file from above, unzip it, and open its contents (onefilecms.php) in a code editor.
  2. Find these lines below the intro text:
    // CONFIGURATION INFO
    $config_username = "username";
    $config_password = "password";
    $config_hint = "";
    $config_title = "OneFileCMS";
    $config_footer = "2009 <a href='http://onefilecms.com/'>OneFileCMS</a> by 
    <a href='http://iamnotagoodartist.com/'>iamnotagoodartist</a>.";
    $config_disabled = "bmp,ico,gif,jpg,png,psd,zip";
    $config_excluded = "onefilecms.php,favicon,.htaccess";
  3. Change "username" and "password" to what you'd like them to be, keeping the quote marks.
  4. Optional: Add a hint for if/when people get stuck. Don't make it too obvious!
    Example: "$config_hint = "favorite author";"
  5. Optional: Change the admin title, "OneFileCMS," to something else.
    Example: "$config_title = "Joe's Tire Mansion Site Admin";"
  6. Optional: Re-brand the footer text.
    Example: "$config_footer = "2009 Joe's Tire Mansion Site Admin. Designed by Joe!";"
  7. Optional: Specify which file extensions to disable from being edited and which files to be excluded from the index. $config_disabled is extension type; $config_excluded is any part of the filename. By default, all conventional images and zips are disabled, and onefilecms, favicons, and .htaccess are excluded from the index.
  8. Save!
  9. Optional: Rename "onefilecms.php" to something else. (If you'd like it to still be excluded from the index, redo step 7.)
    Example: "admin.php"
  10. Upload to the root folder of your website.

Depending on how your webspace is set up, you may also have to modify the file permissions of your site's folders to allow OneFileCMS to modify and create files. (More about that here.) Make sure onefilecms.php and its parent folder are allowed to execute, with CHMOD at 777 and 755. Check with your host if you're not sure.

Yay! Now you can visit http://yoursiteblahblah.com/onefilecms.php (or whatever you renamed it to) and manage your whole site from there. Incredible!

Upgrade

To upgrade your installation of OneFileCMS, simply swap out the configuration info detailed above and upload the new file, replacing the old one.

Share! Twitter Stumbleupon Digg Facebook