Discourse with Apache, MySQL and PHP

Hello,

If users with Apache, MySQL, and PHP can install Discourse, I think the market capture of Discourse would increase greatly. Thank you.

Tom

Do users and community managers really care what something is written in?

I recommend reading Why Ruby?

1 Like
 * and the references of that post
1 Like

Many website administrators need LAMP to build their business websites in addition to Discourse. However, if they deploy Discourse on their LAMP server, the Apache had to use a different port. Some kind of trade off between Apache and Discourse.

But, I do really think that Discourse is a great work!

Well if apache is anything like nginx, i would expect it to be possible to forward different connections/subdomains/hosts to different local ports. discourse listens on one of those ports (or on a unix socket) and the php website listens on another.

i have the feeling we’re going off the original post’s subject.

I don’t know whether that is true, but I do know that will never happen.

What most people do is to run discourse on another server.

2 Likes

If two servers mean two public IP addresses. But many small home users only has one public IP address.

This means they must use iptables rules to set up a DNAT gateway.

Tom

Most admins surely sensibly host in the cloud? Just guessing but suspect that’s a cheaper approach than having business class broadband at home. For the price premium of that you surely could instead afford several VPS servers in the cloud with superior internet bandwidth?

It’s a trade off, man.

I have many data like movies files to stream for my home (via Plex). I have my home server with big size hard drives so that I could backup many of my documents and data there.

For example, you could upload public data to the home server and everyone in the private network could download them if permitted. I have my home private network of 1000 Mbps bandwidth, really fast. But with a cloud VPS, this is not a good plan. The bandwidth between your client and the cloud VPS server might be 100 Mbps or so, but it is unlike that it could be 1000 Mbps.

The cloud computer service has serious disk size limit for above intentions.

Actually, I have my cloud VPS server but I only use it to establish the IPsec connections.

Tom

But you don’t need 100’s of Gigs of storage for small to medium sized communities?

2 Likes

Just happened to come across this post and was thinking to drop my thoughts here as well.

Although web development always has a sentiment for certain newer language is the future, LAMP has always been the fundamental components for hosting a website, especially for small businesses or organization - the same target audience who would need discourse to grow their communities, and they wouldn’t like the idea having to setup something completely separate from their infrastructure, and we shouldn’t be the ones to judge how they plan to build their infrastructure. There’s always valid reasons for people needing Discourse on LAMP, be as particular as the case may be.

As long as we’re considering from a software development point of view, adding a variant simply means effort and market share, it does not always have to be a replacement for the other language.

Having that said though, there are valid technical considerations regarding the use of LAMP given Discourse has quite a few features that may make use of real-time processing that requires a daemon/runtime to be always there in-memory, while Apache is just fundamentally build different to be more ad-hoc rather than being always there. Some adjustments or mechanisms might work on a completely different foundation to achieve the same user experience.

Maybe a bit blunt, but then running Discourse isn’t for them. If they can’t put in the effort to run it themselves, then they should use the hosted options.

Running Discourse behind an Apache server (which also hosts PHP applications with MySQL) isn’t impossible, or incredibly difficult. You “only” need to be able to run docker contains. You can either use http or unix socket to proxy the Apache traffic to Discourse’s nginx. All this is easily possible on a $10/month VPS depending on the traffic.

3 Likes