runnig a webserver - no chance
-
@poVoq said in runnig a webserver - no chance:
Doesn't answer your question, but it can be done with Android and Termux in case you are open to going back to Android.
Thanks for this hint. I will give a try.
bfo
-
@bforpc said in runnig a webserver - no chance:
I dont want to create an app. Where have you read this? I want to use a portable webserver (like described above).
I'm asking questions because I cannot figure out what you're trying to achieve.
A portable webserver is not an answer because a webserver can be anything and can be used in so many different ways.Maybe you want to self host a website on your phone, maybe you want to host data for an app (apparently no), maybe that's for home automation, security features or privacy issues, ...
How do you intend on accessing your server ? Browser, webservices, etc.
Depending on your use case we might suggest creating an app, using X in Libertine or Y in anbox. It can even lead to a useful feature for the many...That's why we ask questions. To be able to give you the best advice.
If no one tried to install apache or nginx, no one will be able to help.
But if someone tackle a similar problem maybe it could help you.Webapps are basically local webservers, but if you wish to access it from any internet connected computer it's not suitable.
Syncing your data to a Nextcloud instance can be a solution to share data locally stored.
...
If we don't understand it's hard to help. We are no mind readers. -
The bottom line is that yes, you can run a web server on your phone if you want to, but no, it's not going to work the same as running a web server on a stationary computer with a stable network connection.
-
@dobey said in runnig a webserver - no chance:
The bottom line is that yes, you can run a web server on your phone if you want to, but no, it's not going to work the same as running a web server on a stationary computer with a stable network connection.
But exactly that will be the benefit.
If ubports should be more then a system for nerds and some special interest groups, then it should have more than the other 2 OS'es.Think bigger. Get out of your jail.
If it is not know available, OK, take your time, take what you need. But develop it in this direction.Bfo
-
@bforpc
You'll have to understand that this is a community and it is rude to show up and dictate how people should act.Ubuntu Touch has already more to offer than the big-two.
As already stated if you don't like it, no one is forcing you to use it.If you like it then great, you're welcome to help improve Ubuntu Touch.
Because like I said, we're a community and that's how it works.So please stop being condescending and rude, that's not how you ask people for help.
We understand English might not be your native language, but please be respectful. -
@bforpc said in runnig a webserver - no chance:
If ubports should be more then a system for nerds and some special interest groups, then it should have more than the other 2 OS'es.
Before anything else, uTouch is a phone targeted os for people, any kind, that wish to get rid of gafam.
All those people need, 90% i'd say, is reliable basic smarphone features first, and if possible when such is done, reliable advanced smartphone features.
Right now there is lot to do for few devs, so just take on you and wait.
You can't ask ten devs or so, to achieve the same work that hundred of thousand do for the other 2 OS'es in the same time.
-
@Keneda said in runnig a webserver - no chance:
@bforpc said in runnig a webserver - no chance:
If ubports should be more then a system for nerds and some special interest groups, then it should have more than the other 2 OS'es.
Before anything else, uTouch is a phone targeted os for people, any kind, that wish to get rid of gafam.
All those people need, 90% i'd say, is reliable basic smarphone features first, and if possible when such is done, reliable advanced smartphone features.
Right now there is lot to do for few devs, so just take on you and wait.
You can't ask ten devs or so, to achieve the same work that hundred of thousand do for the other 2 OS'es in the same time.
Everything you said is true and i respect the developer for their work and time. I'm also an developer, so i know, what i talk abaout.
But its disappointing, if the system is touted as better as the 2 ones, with convergence AND a linux root system.
I know, it needs more time. A lot of wishes are in the pipe.btw: I have try termux on android - and this also do not work as expected, because of google (android jail). This is good for 75% of all, but not for me. Therfore i serach for a alternate solution.
however: this discussion breaks the sense of the original forum question.
So @all (developer): I wish you the best.Bfo
-
@AppLee said in runnig a webserver - no chance:
We understand English might not be your native language, but please be respectful.
Sorry, but where i wasnt respectful?
Or is a critical question disrespectful?Bfo
-
@bforpc
By that I meant :Think bigger. Get out of your jail.
This implies that we (as a community) did not and that is not helping.
I understand you don't mean harm but textual communication does not have tone to help understanding.
And as you realize I have to be to, because I didn't want to hurt your feelings too.To get back on topic, can you be more specific on why termux is not fulfilling your need and what exactly you're looking for.
I don't think there is a magical solution to your problem, but we certainly can find something to help you out. -
@AppLee said in runnig a webserver - no chance:
To get back on topic,
very well
can you be more specific on why termux is not fulfilling your need and what exactly you're looking for.
because it is also not a real system like the standard distros. It hasnt have a standard directory structure and a less of applikations available with the special paket format .
Maybe i can compile everything self, but who wants to do tihs work - for a webserer - from my view - an absolut standard deamon.
Also it is clearly slower then the CLI on ubport - on the same Hardware.I don't think there is a magical solution to your problem, but we certainly can find something to help you out.
Its very nice, that you are trying so hard to help.
For Android problems, this forum isnt the right one.
It looks like, that Ubports - at this moment - are not far enought, to use it for my requirements.I will use an raspi with all (negativs) around, but the raspi meets my requirement. it would have been nice, but not know.
Thx for your help/support/suggestion and this discussion.
Maybe in the near future again.Bfo
-
@bforpc Have you seen this https://ubports.com/blog/ubport-blogs-news-1/post/raspberry-pi-11https://ubports.com/blog/ubport-blogs-news-1/post/raspberry-pi-1144 it might interest you.
-
@Lakotaubp I don't think that will help, as what this person wants is clearly not UT, but traditional linux distro.
-
@dobey Your probably right but you never know. They have a rpi, maybe they might try UT on it and see what can be done with UT.
-
@bforpc Forgive me but what is the usecase to run a web server on a mobile device? It will be slow, it will be unreliable over WiFi and it will drain your battery.
-
@bforpc said in runnig a webserver - no chance:
Dear Group,
I have tried the last 3 days without success. Apache is not running under libertine, nginx are running, but - no matter what the error is - it does not found any file in the web root directory.
Only hint - no error - i found in debug logs of nginx are:
2020/10/05 15:47:21 [debug] 9911#9911: *1 http script var: "/" 2020/10/05 15:47:21 [debug] 9911#9911: *1 trying to use dir: "/" "/var/www/html/" 2020/10/05 15:47:21 [debug] 9911#9911: *1 trying to use file: "=404" "/var/www/html=404" 2020/10/05 15:47:21 [debug] 9911#9911: *1 http finalize request: 404, "/?" a:1, c:1 2020/10/05 15:47:21 [debug] 9911#9911: *1 http special response: 404, "/?"
I have tried also running the Web Servers from the root of the nexus 5 it self. This will be working - but breaks the system and then some apps (all web browsers) are not working annymore. morph browser crashes the hole system into a reboot.
Is there a chance, to have ubport up and running and also a web server inkl. php?
Bfo
Let me try to eschew the philosophical conversation and have a technical one (and ducking my head while doing so;) ).
Can you give more detail about what exactly you tried and what exactly was the result. I understand you installed apache in libertine?! which packages precisely, how did you configure it, start it, test it ...
-
@doniks said in runnig a webserver - no chance:
Let me try to eschew the philosophical conversation and have a technical one (and ducking my head while doing so;) ).
Thats a very well nice suggestion.
Can you give more detail about what exactly you tried and what exactly was the result. I understand you installed apache in libertine?! which packages precisely, how did you configure it, start it, test it ...
Only some standards.
Like described: If i install apache2, it will not start, because of some restrictions inside libertine - at this moment i cant remember. nginx is starting (the daemon), but no websites will be served out - Browser says alway: page not found, The nginx conf is standard, searching in webroot under /var/www/html - what has exist with content and all needed rights.
Installed i have the packages with pkg install nginx php (and some other dependencys).In root of ubports i have try to install apache2 or nginx and mc, but - because of less storage in the roor dir, i moved /var/cache/apt and /usr/share/doc to the /userdir storage and linked it back. After that i install nginx what worked well...except for the small thing that the device no longer boots into the desktop - something was broken - yes yes yes ... i had read that, this can be happen and i dont care about it.It was a try.
Bfo
-
@bforpc Have you tried lighttpd?
In my attempt to test MotionOS (using lighttpd if i'm not wrong...) in Libertine, i was able to access the Web UI in Morph: https://forums.ubports.com/topic/2570/help-needed-motion-eye-in-a-container?lang=en-GB -
Only some standards.
Like described: If i install apache2, it will not start, because of some restrictions inside libertine - at this moment i cant remember.Well, it's in the eye of the beholder what is standard ... I personally have no experience with apache, so I wouldn't have a clue what is standard .... well let me just try ...
sudo apt install apache2
on my laptop and afterward go tohttp://localhost
shows some default website. ha! that was easy. I somehow feared it was more difficult:) Ok, try again on my deb:libertine-container-manager install-package -p apache2
... no, it doesn't like thatSetting up apache2 (2.4.18-2ubuntu3.17) ... /bin/sh: 1: .: Can't open /etc/apache2/envvars Could not read /etc/apache2/envvars dpkg: error processing package apache2 (--configure): subprocess installed post-installation script returned error exit status 2
https://paste.ubuntu.com/p/MBKhfGTDjT/
Mhm. I guess you'd have to dig into whatever happens in "Setting up". I poked a little bit but .deb packages are still pretty much magic black boxes to me. I don't know where to find the setup code...
-
Instead of using libertine you could put your server in your home directory and add an upstart service for it. Or create an unconfined app that does the very same, allowing you to use Clickable for compiling, adding dependencies and such.
-