PDA

View Full Version : Any demand for a webserver for the it?


schmots
2007-02-14, 17:14
I saw in the repository that there is thttpd, but I have never used it, and couldn't find out if it would definitely support php cgi. I have lighttpd compiled for the n800 sdk. Will test it on the actual device once I go dual boot (promised the wife I wouldn't modify my new "toy" right away) Fairly certain I could get a static php.cli compiled that would work on the system so you could have php support in webpages off your server.

However, two things

1. Is there really a need to have a webserver on one of these? I just did it because its small and I like to compile lighttpd for everything I run.

2. I am not a developer, I don't usually distribute what I do, so I have never made a .deb package.. that will slow things down a bit. But as this install only has one dependency that I could make into a package as well if I could figure out the process, it shouldn't be too huge of a deal.

biggles
2007-05-17, 20:10
Hi,

I'm also interested in finding an equivalent of Apache, MySql and PHP for the Nokia N800. I'm developing web pages and it would be good to be able to run them directly from the handheld for testing purposes to check layout etc. If you get anything like this working I would be interested. :)

torx
2007-05-22, 02:30
I believe lighttpd has alot of memory leak issues and may not be that suitable for Maemo.

For me, httpd is sufficient.

elpaso
2007-05-22, 06:27
I tested nginx on n800, it works fine with php5.

The deb package is already available.

biggles
2007-05-25, 22:09
I'll give nginx a try. Thanks. :)

defor
2007-06-01, 06:17
Out of curiosity and the many projects i've sen for ports of apache to everything under the sun, why has apache been avoided? I'm asuming due to the number of dependencies, but I'm not sure.

elpaso
2007-06-01, 06:38
I'm not sure, but I think apache is heavier and bigger if compared to ligthweight web servers like nginx and lighttpd.

aleksandyr
2007-06-01, 19:34
Apache is designed for a different memory and processor model.

bizshop
2007-07-07, 05:30
I could not fimd nginx,or lighttpd (if PHP)

I also am a webmaster and would like to be able to test websites in a localhost envoronment with php. MySQL would be ideal, but should be able to use another SQL such as SQLlite.

Johnx
2007-07-09, 00:15
This isn't a definitive guide or anything, it's just how I eventually figured out how to end up with a working SDK install for bora 3.2 (which is the right SDK version to go with the just released firmware).
1) Install the bora 3.1 SDK (instructions found in INSTALL.txt here: http://tabletsdev.maemo.org/3.1/ ).
2) After you're reasonably sure that is all working right, update it to the bora 3.2 SDK with the instructions in the INSTALL.txt here: http://tabletsdev.maemo.org/3.2/ ).

Good luck!

megabyte405
2007-07-16, 14:16
With regard to an SDK - the INdT Maemo SDK VMware Appliance (I think there's a matching QEMU image as well) is quite useful, since it makes it possible to skip the somewhat-complicated setup process for Scratchbox. Non-gui applications should recompile very easily in this SDK, theoeretically without changes, so try rebuilding the source of a debian package. (apt-get source yourserver, copy the files into the scratchbox directory, dpkg-buildpackage -rfakeroot )

torx
2007-07-25, 02:44
Thanks - however the VMWare image is v3.0 (latest is 3.2), so I just installed Scratchbox and maemo-explicit on my Kubuntu machine and followed INSTALL.TXT. Pretty straightforward, just gotta read the instructions. :) It would be quite a feat to get MySQL running on the N800 now wouldn't it?

If MYSql is not a requisite, you should just use SQLite. A package is available together with the metasploit installation,

scottw01
2007-08-06, 21:42
I have tries to install PHP on my n800 with no success.

I have installed:
http://maemo-hackers.org/php5-fastcgi.install (PHP5)
http://maemo-hackers.org/nginx.install (HTTP Server)

I then tried to run a PHP file from the built in browser and only got a display of the contents of my PHP file.

scottw01
2007-08-06, 23:09
Please be gentle and kind, I am a Windows guy (although I do like a good ribbing)!!

How would I go about this??

Thanks

scottw01
2007-08-07, 00:02
I have found a listing that says I should update /etc/nginx/mime.types to include:
application/x-httpd-php .php

I'm attempting to do this, but seem to have a permissions problem.

BTW:
vi on a virtual keypad is more fun than should be legal!! (where is the ESC key!!)

fpp
2007-08-07, 09:02
It is the hardware "back/cancel" key.

fpp
2007-08-07, 09:05
This is a FAQ, BTW :-)

scottw01
2007-08-07, 16:27
Do you know where the FAQ page is located??

fpp
2007-08-07, 16:40
That is a FAQ too :-)

No, seriously, theses forums are one gigantic FAQ page. Not very well organized as such, but with almost two years of accumulated wisdom by 770 and N800 users. AND there is a Search function in the menu at the top of the page...

The fact that wave after wave of eager new users, coming aboard after the recent flash sale of the 770 inventory, just barge in as if they're the very first, and create new threads to ask the same old questions over and over again, certainly doesn't help those who DO use said Search function...

Just try "escape key" : you'll get three pages of answers going from January 2006 to last month.

bizshop
2007-08-07, 17:36
Sometimes the search is frustrating and time consuming - I think an FAQ wiki would be very useful. Posters in the forum could be directed to the appropriate FAQ which should cut down a bit on the clutter here you mentioned.

I'd even be willing to start and host such a beast - but don't want to duplicate efforts if someone else already has. The http://maemo.org/community/wiki/ is aimed at developers rather than users it methinks.

fpp
2007-08-07, 19:09
No problem, look up.
No, higher.
Right at the top of the page. Yeah, there, just under the ITT logo.
See the third icon from the left ?
Home...
Forum...
Wiki :-)

scottw01
2007-08-07, 20:11
That was uncalled for, fpp.

I didn't open a new thread, I was on a thread about a web server on N800 and stated that I couldn't get php to work. I clearly stated that I had an avenue I was working on. My ESC key comment was trivial and humor based, at the bottom of a post. You took this and turned it into a personal rant.

I haven't had a chance to try the update to the mime.type file, yet. And vi on the virtual keyboard is still interesting, to say the least. That is a joke and a personal opinion.

fpp
2007-08-07, 20:29
You're taking it too personal, scott. It was a rant, yes, but not specifically directed at you -- I was just bouncing it off your second question about the FAQ (maybe that one was tongue-in-cheek too but I missed the smiley).

Otherwise if you look at the "todays posts" page day after day for the past month or two, compared to what was going on a year ago, I assure you I was not exaggerating. The board is rather a mess right now, with tons of new threads on old questions and very little value added. I guess/hope it will settle down.

And I did answer your original question, didn't I ? :-)
BTW, I agree with your opinion about vi on the tablet. It's manageable with a BT keyboard, but without one, I find it easier to use mc's builtin editor.

scottw01
2007-08-07, 20:38
Understood.

I did think that you meant that there was an FAQ. Point missed.

I'm still hoping to get PHP working on the N800 so I can call it from a locally running Flash file. I need to store some data for a multi screen Flash application (volume, user, etc.) without going back and forth to a remote server.

No Harm, No Foul.

flyinghigh
2007-08-07, 22:27
I have got the nginx running with php5 on a 770 seems to be pretty usable.

no install issues at all ( apart from the usual grief of finding the correct repo )

I then went on to try gpsd and the gpsd.php scripts - like all things N770 fragile documentation - I got the basic text display of location to work, but looking quickly at the php code, it looks like it should be able to do some graphic stuff, but no idea how an to tired to figure it out.

I then tried to get the python interface to work without success - oops thread creep...

scottw01
2007-08-08, 00:04
Did you update /etc/nginx/mime.types
to include: application/x-httpd-php .php

That is what I am attempting to do.

Thanks

michaelxy
2007-08-24, 13:36
I try to run phpmyadmin with php5-cgi and the nginx but phpmysqladmin says:

phpMyAdmin - Error
Cannot load mysql extension. Please check your PHP configuration.

It seams this php5 module has no support for mysql ?

Is there a way to php + mysql ?

Michael

bizshop
2007-09-17, 03:28
I did a phpinfo(l and mysql is not configured/compiled in. So we have to have someone port a new php - ideally.

I'm trying to get sqlite to work in the meantime..

hordeman
2008-05-20, 18:25
Looks like someone pulled together some packages for lighttpd. I'll have to give this a shot and see if it will work with the php (fastcgi) packages for nginx.

http://zedstar.org/blog/2008/03/02/packaging-lighttpd-for-maemo-the-quick-way/

Of course, I saw this which has a suite, but I could not find any debs: http://www.maemoapps.com/2007/10/23/drupal-on-the-nokia-n810/

maillaxa
2008-05-22, 22:26
Any chance to see a "light" webserver with perl support ? I would like to setup a pretty light wiki onto my N810 device but I need a perl installation.

Regards

jethro.itt
2008-05-23, 18:02
Any chance to see a "light" webserver with perl support ? I would like to setup a pretty light wiki onto my N810 device but I need a perl installation.

(Second try. I think I replied once already, but perhaps forgot to press the final "submit". Here's that reply once again...)

I used HTTPi (http://www.floodgap.com/httpi/) a year ago or so. It's written in pure Perl, it's tiny and requires no Perl modules. It can be configured to run Perl CGI scripts directly, re-using the interpreter instance (less overhead).

When I used HTTPi, it was for launching actions (CGI scripts) from web browser bookmarklets to do things like Youtube video download, direct play using mplayer... Nowadays there are better solutions for that, so I forgot all about it.

There's also Perl Web Server (http://perlwebserver.sourceforge.net/), but it seems to require Perl modules that are not present on OS 2008 by default.

hordeman
2008-05-23, 19:21
BTW, I did try the packages for lighttpd, but got an "incompatible" package error. May have to try contacting the packager. Wish Scratchbox didn't seem so daunting to install; otherwise I would package stuff myself. :(

maillaxa
2008-05-23, 21:50
(Second try. I think I replied once already, but perhaps forgot to press the final "submit". Here's that reply once again...)

I used HTTPi (http://www.floodgap.com/httpi/) a year ago or so. It's written in pure Perl, it's tiny and requires no Perl modules. It can be configured to run Perl CGI scripts directly, re-using the interpreter instance (less overhead).

When I used HTTPi, it was for launching actions (CGI scripts) from web browser bookmarklets to do things like Youtube video download, direct play using mplayer... Nowadays there are better solutions for that, so I forgot all about it.

There's also Perl Web Server (http://perlwebserver.sourceforge.net/), but it seems to require Perl modules that are not present on OS 2008 by default.


Interesting but without a ready-to-install package, it won't work for me. Do you have one for HTTPi ? :)

jethro.itt
2008-05-25, 15:00
Interesting but without a ready-to-install package, it won't work for me. Do you have one for HTTPi ? :)

No, it needs to be configured and run from command line, unless someone is willing to make a deb out of it.

maillaxa
2008-06-03, 06:31
I solved my problem by switching to a real and complete GNU/linux distribution: Debian.

Thank you anyways.