Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

Easy installers for PHP scripts

I tried out FUDforum last night, after Rasmus Lerdorf recommended it in a comment on Jeremy Zawodny’s blog. Feature wise, it’s pretty impressive but still doesn’t quite do it for me—I want something that’s trivial to integrate with an existing authentication system and outputs valid HTML (or XHTML) out of the box. Rasmus says it’s the only board he’s seen that doesn’t have obvious security holes though so it’s probably worth checking out if you need to set up a forum of that kind.

That said, what impressed me about FUDforum more than anything else was the installation process. The forum is distributed as a zipped archive, but when you extract it the only file you need to copy to your web server is a single 4.5 MB file called “install.php”. You drop that in to a web facing directory and access it from your browser. It then steps you through the rest of the install, telling you which directories to chmod 777 so that the installation process can access them, asking for your database settings and automatically creating all of the scripts, database tables and configuration files it needs to run. It even refuses to let you in to the admin panel at the end until you’ve deleted the install.php file from the server. Pretty slick.

Of course, the need to chmod anything 777 in a shared hosting environment is a little bit worrying, but that’s been a common problem with server side web development for as long as I can remember.

This is Easy installers for PHP scripts by Simon Willison, posted on 13th November 2003.

View blog reactions

Next: Extracting EXIF data with Python

Previous: The little things

8 comments

  1. I saw some work a while back on a generic installer script for PHP to be used in your projects that does all the work, like detect PHP settings, database setup and such, but I lost track of it. Anyone heard of this?

    Peter - 13th November 2003 14:34 - #

  2. Re: "worth checking out if you need to set up a forum of that kind"

    Hello, yes, I'm looking for a forum with massive security holes. Can someone recommend something along those lines?

    Mark - 13th November 2003 15:32 - #

  3. "It even refuses to let you in to the admin panel at the end until you've deleted the install.php file from the server. Pretty slick."

    So does phpBB2.

    NOTE: I tried using blockquote above but the server rejects it, saying "Your comment could not be added: Tag blockquote may not contain raw character data". WTF?

    chris hester - 13th November 2003 16:48 - #

  4. That annoys me too. It's part of the XHTML spec - for some reason, XHTML 1.0 strict (and probably HTML 4 as well) doesn't allow the blockquote tag to just contain raw text - it has to be contained within another block level tag like a paragraph or a div. <blockquote>some text</blockquote> is invalid; <blockquote><p>this</p></blockquote> is how you're meant to mark quotes up. I don't understand the reason for this but I had to code it in to my comment system to keep my XHTML valid.

    Simon Willison - 13th November 2003 17:07 - #

  5. integrating a forum with an existing authentication systems is a pain to do. I tried it once then flaked out. Building your own might be the solution but you will end up having less few :(

    owen - 13th November 2003 22:16 - #

  6. hi, i recently bought a php script and i cant install it, the guy i bought it off said it would takes 2 mins,he said it was an auto install but i still cant do it. would you be able to install this to my hosting account and in return i will give you a copy of a banner exchange website and 100,000 credits to the website, www.3traffic4u.com. (its a traffic exchange website). i will really apriciate your help. ifyou are intrested please email me at referal1@hotmail.co.uk many thanks rich

    richard - 17th February 2005 12:42 - #

  7. hi, i am now running a hosting business, i am in need of some script installers. i have some autosurf pro and basic scripts along with HYIP scripts. i need someone who can install them and i will pay the person for each individal installation. also i need someone who has good web design knowledge. if you have visited my hsting site you will see its needs some style, if anybody could create a good design, please let me know, i will pay you to create it for me, if possible one with flash. regards, please email if you need to contact me.

    richard - 25th April 2005 21:30 - #

  8. richard... fuck off would you

    noddy - 23rd September 2005 21:04 - #

Comments are closed.

Previously hosted at http://simon.incutio.com/archive/2003/11/13/easyInstallers

A django site