[opensuse] OT: Web App / Service Project
So I am at last tackling my next project which I need to create a service to run on linux in the background with a web front end to manage it. One example would be plex media server, which has a service running as root. The service starts up a web server to allow the user to manage the program from a web front end as well as the service running other code in the background. Of course I am not making my own version of plex, that is just an example of how I need my program to run. Since this is the first time I have made such a program, what would be the best way to go about this? Could apache be used as the web server for this? Any and all advice is appreciated. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, 5 Dec 2017 21:42:01 +0000 Paul Groves <paul.groves.787@gmail.com> wrote:
Since this is the first time I have made such a program, what would be the best way to go about this?
Could apache be used as the web server for this?
It could but it probably isn't the best choice. What language are you writing your application in? It probably has one or more embedded web servers available in its libraries. That/they would likely be a better starting point. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 05/12/17 22:02, Dave Howorth wrote:
On Tue, 5 Dec 2017 21:42:01 +0000 Paul Groves <paul.groves.787@gmail.com> wrote:
Since this is the first time I have made such a program, what would be the best way to go about this?
Could apache be used as the web server for this? It could but it probably isn't the best choice. What language are you writing your application in? It probably has one or more embedded web servers available in its libraries. That/they would likely be a better starting point.
The service will be in c or c++ and the web front end in php. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Op woensdag 6 december 2017 14:08:42 CET schreef Paul Groves:
On 05/12/17 22:02, Dave Howorth wrote:
On Tue, 5 Dec 2017 21:42:01 +0000
Paul Groves <paul.groves.787@gmail.com> wrote:
Since this is the first time I have made such a program, what would be the best way to go about this?
Could apache be used as the web server for this?
It could but it probably isn't the best choice. What language are you writing your application in? It probably has one or more embedded web servers available in its libraries. That/they would likely be a better starting point.
The service will be in c or c++ and the web front end in php.
Then apache should be fine. Just create a vhost for the webapp, the connection php-to-the-service inside the app -- Gertjan Lettink, a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 06/12/17 13:13, Knurpht - Gertjan Lettink wrote:
On 05/12/17 22:02, Dave Howorth wrote:
On Tue, 5 Dec 2017 21:42:01 +0000
Paul Groves <paul.groves.787@gmail.com> wrote:
Since this is the first time I have made such a program, what would be the best way to go about this?
Could apache be used as the web server for this? It could but it probably isn't the best choice. What language are you writing your application in? It probably has one or more embedded web servers available in its libraries. That/they would likely be a better starting point. The service will be in c or c++ and the web front end in php. Then apache should be fine. Just create a vhost for the webapp, the connection
Op woensdag 6 december 2017 14:08:42 CET schreef Paul Groves: php-to-the-service inside the app I assume this is what is happening with owncloud server for one example?
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Op woensdag 6 december 2017 16:51:11 CET schreef Paul Groves:
On 06/12/17 13:13, Knurpht - Gertjan Lettink wrote:
Op woensdag 6 december 2017 14:08:42 CET schreef Paul Groves:
On 05/12/17 22:02, Dave Howorth wrote:
On Tue, 5 Dec 2017 21:42:01 +0000
Paul Groves <paul.groves.787@gmail.com> wrote:
Since this is the first time I have made such a program, what would be the best way to go about this?
Could apache be used as the web server for this?
It could but it probably isn't the best choice. What language are you writing your application in? It probably has one or more embedded web servers available in its libraries. That/they would likely be a better starting point.
The service will be in c or c++ and the web front end in php.
Then apache should be fine. Just create a vhost for the webapp, the connection php-to-the-service inside the app
I assume this is what is happening with owncloud server for one example? Yep. AFAIK. (In fact that was what I was thinking of, though nextcloud )
-- Gertjan Lettink, a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Paul Groves wrote:
On 06/12/17 13:13, Knurpht - Gertjan Lettink wrote:
Op woensdag 6 december 2017 14:08:42 CET schreef Paul Groves:
On 05/12/17 22:02, Dave Howorth wrote:
On Tue, 5 Dec 2017 21:42:01 +0000
Since this is the first time I have made such a program, what would be the best way to go about this?
Could apache be used as the web server for this? It could but it probably isn't the best choice. What language are you writing your application in? It probably has one or more embedded web servers available in its libraries. That/they would
Paul Groves <paul.groves.787@gmail.com> wrote: likely be a better starting point. The service will be in c or c++ and the web front end in php. Then apache should be fine. Just create a vhost for the webapp, the connection php-to-the-service inside the app I assume this is what is happening with owncloud server for one example?
No, owncloud and nextcloud are written entirely in PHP. -- Per Jessen, Zürich (0.5°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
Paul Groves wrote:
On 06/12/17 13:13, Knurpht - Gertjan Lettink wrote:
Op woensdag 6 december 2017 14:08:42 CET schreef Paul Groves:
On 05/12/17 22:02, Dave Howorth wrote:
On Tue, 5 Dec 2017 21:42:01 +0000
Since this is the first time I have made such a program, what would be the best way to go about this?
Could apache be used as the web server for this? It could but it probably isn't the best choice. What language are you writing your application in? It probably has one or more embedded web servers available in its libraries. That/they would
Paul Groves <paul.groves.787@gmail.com> wrote: likely be a better starting point. The service will be in c or c++ and the web front end in php. Then apache should be fine. Just create a vhost for the webapp, the connection php-to-the-service inside the app I assume this is what is happening with owncloud server for one example?
No, owncloud and nextcloud are written entirely in PHP.
the owncloud and nextcloud _servers_, that is. -- Per Jessen, Zürich (0.4°C) http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, 6 Dec 2017 13:08:42 +0000 Paul Groves <paul.groves.787@gmail.com> wrote:
On 05/12/17 22:02, Dave Howorth wrote:
On Tue, 5 Dec 2017 21:42:01 +0000 Paul Groves <paul.groves.787@gmail.com> wrote:
Since this is the first time I have made such a program, what would be the best way to go about this?
Could apache be used as the web server for this? It could but it probably isn't the best choice. What language are you writing your application in? It probably has one or more embedded web servers available in its libraries. That/they would likely be a better starting point.
The service will be in c or c++ and the web front end in php.
https://www.gnu.org/software/libmicrohttpd/ And forget the PHP. (Whatever you do!) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 06.12.2017 um 14:08 schrieb Paul Groves:
The service will be in c or c++ and the web front end in php.
What is the reason for this choice of languages? C/C++ is a poor choice for web development unless you're an expert and aware of all the security pitfalls (buffer overflows, properly doing SSL/TLS handshakes, securely storing passwords, etc). Same for PHP: A good choice if you know it well. If this is your first project in this language, I strongly suggest to avoid it. PHP has many flaws that lead to poor/insecure code. That said, you should really write down your requirements and then evaluate a few web frameworks. My reasoning is that cracking computers is big business today. If you expose some software to the Internet, automated tools will try to crack it. Unless you really know what you're doing, try something that some expert has built. For a small project, I suggest Python 3 since it forces you to write good code and comes with all tools necessary for the job. For bigger projects, Java or one of the more modern flavors like Kotlin is a good choice, simply because you'll find a ton of good frameworks (and a shitload of bad ones) to help you. Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://blog.pdark.de/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, 6 Dec 2017 21:24:28 +0100 Aaron Digulla <digulla@hepe.com> wrote:
Am 06.12.2017 um 14:08 schrieb Paul Groves:
The service will be in c or c++ and the web front end in php.
What is the reason for this choice of languages?
Fair question :)
C/C++ is a poor choice for web development unless you're an expert and aware of all the security pitfalls (buffer overflows, properly doing SSL/TLS handshakes, securely storing passwords, etc).
Dunno. C is fine for services, IMHO. But then in my personal opinion C++ is the work of the devil and should never be used. You have to know what you're doing to expose any service to the Internet, but then we don't actually know whether it will be exposed to the Internet at all?
Same for PHP: A good choice if you know it well. If this is your first project in this language, I strongly suggest to avoid it. PHP has many flaws that lead to poor/insecure code.
Disagree here. PHP is also the work of the devil and should never be used. I would personally use Perl but nowadays people prefer Python.
That said, you should really write down your requirements and then evaluate a few web frameworks.
Fair suggestion, but might be overengineered until the requirements are expressed. If the requirements are simple enough, a framework may be overkill.
My reasoning is that cracking computers is big business today. If you expose some software to the Internet, automated tools will try to crack it. Unless you really know what you're doing, try something that some expert has built.
Absolutely agree.
For a small project, I suggest Python 3 since it forces you to write good code and comes with all tools necessary for the job.
Reasonable enough.
For bigger projects, Java or one of the more modern flavors like Kotlin is a good choice, simply because you'll find a ton of good frameworks (and a shitload of bad ones) to help you.
Have to disagree here. Java never was a good solution (and I speak as a certified Java programmer). It was a nice idea that somehow got sidetracked into being a nightmare and dragged down into the mire by its libraries and then suffocated by its security implications. Kotlin is too new for a neophyte, IMHO. Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Aaron Digulla
-
Dave Howorth
-
Knurpht - Gertjan Lettink
-
Paul Groves
-
Per Jessen