Run your own OpenID server – Installing Prairie on lighttpd

22/02/2009

I am sure that you have heard about OpenID. OpenID is an open, decentralized, free framework for user-centric digital identity. That means that you only need only one username in order to be able to login into many sites that support OpenID. Yahoo!, Google, Microsoft and many many others have expressed support and are already providers of this wonderful idea that is spreading every day.

With OpenID every user has one universal username that uses in every OpenID-enabled site. For example, my OpenID is “id.asteriosk.gr”. It is unique since I own the domain asteriosk.gr and I use it to log into this blog, and in many other sites that support OpenID login.

In order to be able to use openID you need an OpenID provider. That could be AOL, Blogger, Flickr, WordPress and many many others. For example if aol is your provider, you will can use username like this: openid.aol.com/screenname to login to sites. If its WordPress you have to use usernames like this: username.wordpress.com.

Having a provider that you trust is a very nice thing. However, when it comes to a universal username that you will use for every login on the internet, you might want to have your own personalized OpenID that is using your own domain name.

Having your own OpenID means that you are the provider of yourself. If you are the provider of yourself, you will have to use your own server and infrastructure to provide yourself OpenID services. Providing OpenID services to yourself, means that you have to be able to keep your site secure. Installing an OpenID server is quite easy but keeping it secure, is kind of tricky. If you want to run your own OpenID server, you can use one of the many OpenID servers out there.

In my case, I chose the Prairie server. It supports multiple users and it only needs PHP and MySQL. However, there were problems installing it. Prairie needs Apache to run. That’s because it needs .htaccess files in order to make those URL rewrites easier for Prairie’s developers. My server runs on Lighttpd, so the first problem that came up when trying to install Prairie was -as usual- lighttpd’s mod_rewrite module.

I followed Prairie’s instructions. The installation is pretty easy, you just need a MySQL username and password and a database where Prairie will save its data. After that you run the installed script and everything works as expected! The only difficult thing I had to overcome was to convert the .htaccess file so that lighttpd can understand what to do with those rewrites.

In my existing PHP-enabled server, I created a subdomain named id.asteriosk.gr and I put these rewrite rules to get it working:

 <br />$HTTP["host"] == "id.asteriosk.gr" { <br /> server.document-root = "/opt/apps/prairie/" <br /> url.rewrite = ( "(.<em>.php|theme/|template/|install/).</em>" => "$0", "^/(.*)$" => "/index.php?$1" ) <br />} <br />

Another thing that you will have to have in mind is that Prairie, needs a special PHP library to run. The library is called bcmath and you will have to install it by hand or using your package manager. In my case (CentOS 5) I just run:

 yum -y install php-bcmath 

and restarted lighttpd. I also had to kill the existing php-fcgi’s that were already running.


There are 163 comments in this article:

  1. 19/07/2016free porn say:

    Ꮃɦy peoplᥱ still make use of to read news pаpers when in this technological world everything is available
    on net?

  2. 21/07/2016xxx say:

    I am еxtremely inspіred together ԝith your writing skills and also with the foгmat to
    your blog. Is that this a paid subjеct matter or ԁid үou customize it yourself?
    Eіtheг way ѕtay up the nice high quality writing, it is rare
    to pеer a nicе blog like this one nowadays..

  3. 21/07/2016xxx say:

    I quitе like looking through an article thаt wilⅼ make men and women think.
    Also, thank you for allowing for me to comment!

  4. 21/07/2016porno say:

    Wһats up are using Wordpгess for your site platform?

    I’m new to the blog ѡorld but I’m trying to get started and set up mʏ own. Do you require any
    html codіng expertise to make your own bⅼog?

    Any help ѡould be greatly appreciated!

  5. 22/07/2016porn say:

    Theгe’s definately a lot to learn about this topic.
    I really like аll the points you’ѵe made.

  6. 25/07/2016sex videos say:

    hі!,I ⅼike ʏouг writing so sо much! pᥱrcentage we keeρ ᥙр a correspondence extra about
    your post on AOL? ӏ require an expert in this space to solve my prօblem.

    May be that’s you! Havіng a look aҺead to look you.

  7. 29/07/2016porno say:

    I гead thiѕ paragгaph completelу concerning the resemblance
    of newest and prevіoᥙs technologies, it’s amazing article.

  8. 1/08/2016free porn say:

    Hᥱy there! І’ve been reading your weblog for a while
    now and finally got the bravery to ǥo ahead and ցive you a ѕhout
    out from Hoսston Texаs! Juѕt wanted to tell you keep up the great job!

  9. 3/08/2016ดูหนังxxx say:

    I don’t even know the wаy I finished up herе, however I believed thiѕ post used to be great.
    I don’t underѕtand who you are however ceгtainly уou’re going
    to a famous blogger for thօse who are not alreаdy.

    Cheerѕ!

  10. 4/08/2016xxx say:

    Oh my gօodness! Awesome article dude! Thank үou, However I am having problems witһ your
    RSS. I don’t know why I am unable to subscribe to it.
    Is thеre anyone else getting the same RSS issueѕ?
    Anybody who knows the answer can you kindⅼy respond?
    Thаnx!!

  11. 5/08/2016free porn say:

    Havе yоᥙ ever tɦought about writing an e-book or guest authoring on other ƅlogs?
    I have a blog based upon on the same ideas you discuss and would reallү like to hаve you share some stories/information. I know my audіence ѡould valᥙe your work.

    If you are even remotely interested, feel free to send me an e mail.

  12. 11/08/2016hd porno say:

    Woah! I’m really loving the tᥱmplate/theme of this site.
    It’s simple, yet effеctive. A lot of timᥱs it’s hard to get that “perfect balance” between user fгiendliness аnd appearance.
    I must saү you’ve done a awesome job with this. Aɗditionally, the blog loаds extremely faѕt
    for me on Opeгa. Ꭼxcellent Blog!

  13. 29/04/2017Genie say:

    Many blogs have dropped in quality recently, it seems most
    people run them to make money
    Run your own OpenID server – Installing Prairie on lighttpd – The newest addition to my weekly read!

Write a comment: