LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-16-2009, 01:19 PM   #1
ammorais
Member
 
Registered: Nov 2009
Location: Lisbon, Portugal
Distribution: Gentoo, CentOs, Ubuntu, Debian
Posts: 182

Rep: Reputation: 49
Lighttpd, PHP, SQLITE, and a Forum


So, here's the thing. I have an old Pentium(1), 200 MHz with 64MB of ram. Resuming, a top machine. I'm a little nuts so I figured that I wanted to make something of that, so I've transformed it in to a home server. I've put gentoo(with 586 CHOST with pentium-classic optimizations, I had to compile everything from scratch), lighttpd, sqlite, and PHP.

Since I have several open source projects hosted in sourcefourge and others, I decided to host the web pages of my progects so that I can at least win the ads revenue. Since other are wining my ads money.

Anyway, since It's a damn old machine with little ram, I've decided NOT to use content management software like joomla or phpnuke, since It's to heavy for such low specs. So I've build everything from scratch from the guestbook to the comments code.

Well the thing is. I need a forum to give future support to my apps, but I don't have the patience to build one from scratch.

So my question is (and please don't send me to google, since I do put effort on my research), Do you guys know any good light(minimalistic) PHP forum that works well with lighttpd and sqlite2 or sqlite3.

You can have a look on how the page already looks like in http://alvaromorais.homelinux.org

Thanks for the patience.
 
Old 12-16-2009, 02:49 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
I've had good luck with smf for a lightweight forum, however for sqlite support you'd need to use the 2.0 release candidate.

http://www.simplemachines.org/
 
1 members found this post helpful.
Old 12-16-2009, 03:17 PM   #3
ammorais
Member
 
Registered: Nov 2009
Location: Lisbon, Portugal
Distribution: Gentoo, CentOs, Ubuntu, Debian
Posts: 182

Original Poster
Rep: Reputation: 49
Thanks. I will try SMF 2. But I suspect that's not the ideal solution since I need a more minimalist forum. With no level accounts. Just a simple. Administrator, guest, registered level.
 
Old 12-16-2009, 04:29 PM   #4
huwnet
Member
 
Registered: Jan 2006
Location: England
Distribution: Arch
Posts: 119

Rep: Reputation: Disabled
I provide support at SMF however regardless of the solution you go with, you'd be far better using a proper database (even on such an old machine)

Also going slightly offtopic, however I believe sourceforge require adsense to be setup in a certain way so that they still get a percentage even if you're not directly hosted with them (I suppose it is fair given that it does cost money for them to host your stuff)
 
1 members found this post helpful.
Old 12-16-2009, 04:53 PM   #5
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
here is a fairly good list of php forum software comparisons. Look for a minimalistic set of your required features and give it a roll. I've only personally used phpbb, smf, invision, ubb, and vbulletin as most of the forums I've been running needed fairly significant feature sets. The ones that I didn't need serious feature sets for I've run SMF on even though it has a good feature set it's pretty light weight compared to some of the above.

Taking a quick look at the above chart looks like sqlite is going to limit you to FluxBB, FUDforum, MyBB, NextBBS, phpBB3, PunBB, and SMF2.

Edit: If you're looking for *truly* simple then maybe some code reuse from this tutorial is more your speed, change it over to sqlite and roll it right into the rest of the custom code on your site. Since most of the logic is there already it would be fast to integrate it into your site.

Last edited by rweaver; 12-16-2009 at 04:58 PM.
 
1 members found this post helpful.
Old 12-16-2009, 05:07 PM   #6
ammorais
Member
 
Registered: Nov 2009
Location: Lisbon, Portugal
Distribution: Gentoo, CentOs, Ubuntu, Debian
Posts: 182

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by huwnet View Post
I provide support at SMF however regardless of the solution you go with, you'd be far better using a proper database (even on such an old machine)
Hi. I was hoping to avoid MySQL. I'm relearning the word light again, since I've deployed this server in this old machine. I've tried Debian before as a server but it was too heavy, since it is compiled with SELinux. Even after disabling SELinux it was heavy. But I guess I could enable MySQL with the minimal gentoo profile, since it has a small memory footprint.

Quote:
Originally Posted by huwnet View Post
Also going slightly offtopic, however I believe sourceforge require adsense to be setup in a certain way so that they still get a percentage even if you're not directly hosted with them (I suppose it is fair given that it does cost money for them to host your stuff)
I do not want to take sourceforge revenue since I think they deserve it. If I wanted to remove their revenue I could simple host my svn repositories and abandon sourceforge for hosting. The thing is. When you post an open-source program in sourceforge in the fallowing week you will see hundreds of software sites around the world(even in japan) linking to your project so they can earn ads revenue. That's their business model, and I don't have anything against it. If I had, I would,'t make my projects GPL.
I currently don't have any business model, since I make programs for fun. But if so many are making money indirectly with my work why can't I have a piece of the pie too.
 
Old 12-16-2009, 05:17 PM   #7
ammorais
Member
 
Registered: Nov 2009
Location: Lisbon, Portugal
Distribution: Gentoo, CentOs, Ubuntu, Debian
Posts: 182

Original Poster
Rep: Reputation: 49
Quote:
Edit: If you're looking for *truly* simple then maybe some code reuse from this tutorial is more your speed, change it over to sqlite and roll it right into the rest of the custom code on your site. Since most of the logic is there already it would be fast to integrate it into your site.
Thanks. I alredy made the sessions class(with sqlite support) and the guest-book(it's not available yet), so most of the work is done. If I decide to go trough and make the forum myself I will probably reuse some code.
 
Old 12-16-2009, 10:35 PM   #8
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
Heres one:
TABLE thread
title,
fk_originalAuthor,
creationDate
fk_state

TABLE post
content,
fk_user,
fk_thread,
date,
creationDate

TABLE user
name,
email,
inscriptionDate

TABLE state
description = SEQ(open,close,hidden,removed)

Writing a forum using those table should fit in 450 SLOC with basic HTML+CSS and run fine on SQLITE
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP exec() issue with chrooted lighttpd JSmaniak Linux - Server 10 04-03-2010 01:48 AM
seem to have hung php on lighttpd pellicle Linux - Server 1 08-13-2009 12:42 PM
Strange PHP/SQLite problem RattleSn@ke *BSD 1 06-25-2009 04:51 PM
PHP 5.1.2 / Apache 2.2 / SQLite install error on FC4 Ravo Linux - Software 3 03-09-2006 03:16 PM
apache proxypass, or lighttpd php belorion Linux - General 2 07-15-2005 10:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration