I recently downloaded and struggled with Tweetnest (http://pongsocket.com/tweetnest/). It requires some components that weren't installed by default in my Ubuntu install and the setup scripts don't do some nice things that it could do (i.e., set up a back-end database for you).
I first of all tried to get it working in my public_html directory which was a minor disaster and didn't work at all (I think this is related so suphp and I don't know anything about that though). I moved everything to /var/www/ and it worked slightly better (i.e. I didn't get prompted to download a file every time I went to http://laptop/tweetnest/).
[EDIT 1: Ahhah, I have now found out that the reason it didn't work in user space was that by default PHP is disabled in user's "public_html" directories. This needs editing in the Apache PHP5 configuration file: http://www.weblogism.com/item/266/php-not-interpreted-in-public_html-in-recent-ubuntu-update
It's working now, and I have two instances of Tweet Nest running, one for me and one for
pipsytip :)]
[EDIT 2: OK it wasn't quite working. The ReWriteRules weren't working properly, month, search & favourite links were giving a 404 error. Solve by the solution in this post http://ubuntuforums.org/showpost.php?p=2321933&postcount=12 - put 'ReWriteBase /~username/tweetnest/' into the .htaccess]
So here is my step-by-step guide to getting Tweetnest working.
- Ensure all the packages required are installed. As best I can tell (I'd recently installed cacti and think some of the errors in the Apache log were down to that), these were:
apache2 (and it's dependencies)
- php5 (and it's dependencies)
- libapache2-mod-php5
- php5-curl
- mysql
- mysql-administrator
- php5-mysql
- Enable mod_rewrite:
sudo a2enmod rewrite
- Restart the apache2 daemon:
sudo service apache2 restart
- Create the back-end database that Tweet Nest will use to store it's data and grant privileges to a user that will only exist within mysql:
mysql -u root -p
- Enter your mysql root password
- create database tweetnest
- grant all privileges on tweetnest.* to tweetnest@localhost identified by 'TWEETNESTPASSWORD';
(don't forget to set your own password) - flush privileges;
- quit;
chown -R www-data\: /var/www/tweetnest
25 3 * * * www-data php /var/www/tweetnest/maintenance/loaduser.php
- 25 4 * * * www-data php /var/www/tweetnest/maintenance/loadtweets.php
- Be sure to edit the times and path to be appropriate for your installation.