TOP

Installing suPHP

If you’re a PHP developer, you’ve probably had to mess with Linux file permissions at one point or another. The user account that you upload/edit your scripts with is, in a normal LAMP configuration, not the same user that will be executing your scripts (that will be the webserver user, www-data on a Ubuntu server). This prevents many scripts from working out of the box and requires you to change the permissions of files and directories that your script needs to edit, to a probably unsecure value. A good example of this is the auto-upgrade and installation of WordPress and its plugins.

Fortunately, we have suPHP. SuPHP is an alternative “link module” that connects Apache to PHP, and causes PHP scripts to be executed with the user that owns them. On an Ubuntu server, it’s really easy to install and configure. Here’s how I did it:

First, we install suPHP:

aptitude install libapache2-mod-suphp

Then, we disable the default PHP module:

a2dismod php5

This should be enough to make suPHP work for scripts in your global document root (e.g. /var/www). There’s a security check though, which causes execution of scripts outside that directory (e.g. in /home/bart/public_html) to not execute. To fix this issue, open /etc/suphp/suphp.conf and put a semicolon in front of:

docroot=/var/www

This is all I needed to make automatic upgrades in WordPress work. :)

Read More
TOP

Revora has been upgraded

Today is a great day in the history of Revora. After months of working on it…

…we have a new website on http://revora.net

What is new?
- It looks better…loads better
- The frontpage is now more than news. It includes vital information about Revora for new visitors, including a cool division showcase. Also displayed are a summary of recent news, the contents of the latest magazine, a quote of the day and other bits of information.
- The about pages describe our network, staff, technology and history in a way that is fun and easy to read.
- The magazine now has it’s own special section.
- A new forum skin is made (Revora 2009) which better integrates the forum with the site. It really feels like the forum is part of the site now.

Credits and Thanks
This new website was not made possible by one person. We’d like to really thank:
- WhatFace and ShadySaiyan for the awesome graphics. We couldn’t have done it without you!
- Jeeves, Litso and others for the important feedback on the design and content.
- Ash and Hostile for their textual contributions.
- Myself, for developing the code and overseeing the project.
- Dark Lord of the Sith, for being my valued co-leader.

What to do
Check out the new site, try the new forum skin and submit quotes for the quote of the day in the our quote topic.
And of course, post your comments, positive and negative!

Read More