miércoles, 18 de junio de 2014

Servidor Web en Nokia N900 - Soporte para PHP 5.2.5 + SQLite

Una imagen dice mas que mil palabras, se me ocurren un chingo de cosas por hacer!

Originally Posted by jolouis View Post
Sorry to be so long with this one guys, I got caught up with things at the end of the week there. Anyways, I thought the easiest thing to do right now is just one deb that contains both PHP and Lighttpd, already configured for each other and ready to go:

I make no guarantees as to compatibility/etc beyond being a webserver with PHP running, but if there are things that need to be tweaked/etc I'm open to doing some recompiling again. The package is quite big (about 10 mb when installed), with the vast majority of that being the PHP binary itself. I noticed that there had been requests for gzip support, and somebody mentioned SQLite, so I've included both those modules which in turn required a few other bits which makes PHP grow in filesize. Anyways, details:
This package contains:
- PHP 5.2.5 CGI
- Built in support for: SimpleXML, sessions, PDO, SQLite
- Modules included for: FTP, pcntl (Process control), Sockets, XML, zlib (gzip, etc)

- Lighttpd (latest version, the number escapes me at the moment)
- Modules for: Authentication, Aliases, CGI

Tested working on Diablo, it's very easy. Simply click the link, wait for application manager to open and install. Once done the webserver will be up and running, configured to start automatically at boot/etc. After closing app manager simply open the browser and type in the address:

If all works, you should get a nice PHP info page that gives you all the pretty details of your new Lighttpd/PHP install. The server is setup to store all files in /wwwPHP, so if you want to use a different storage folder either create a symlink, or edit the Lighttpd/PHP config files to change the path.

As for compiling on the tablets, I believe there's a development tools package up on one of the repositories now, but when I installed the build tools I just did a search of ITT here for "compile on device" and came across the step by step instructions as a thread somewhere...

Feedback/requests for change/etc are welcome of course )

And qole suggested, a complete package including SQLite would be pretty straight forward, it just requires SQLite to be added to what I've got right now... so if there's interest as long as it compiles without too much hassle I could probably toss that together...


Extracto del foro de maemo donde explica como instalar el web server que tantos días intenté montar dentro de mi n900, afortunadamente si corrió, lo ocupaba para correr al 100% la nueva versión de Social Engineer Toolkit y el método de harvesteo con el clonado de sitios por ejemplo gmail,yahoo,google, etc!

Ya con este .deb Pwn Phone Server Suite es posible instalar todas las dependencias y no recurrir al easy chroot, enlace de descarga:

Otro enlace donde se explica algo parecido para montarlo --> http://www.vesiluoma.com/development-projects/how-to-install-nokia-n900-web-interface/

El comando de arranque o paro del server es:
Ya existe un script para autoejecución... lo desarrollé hace tiempo (Github)

1 comentarios:

podia enviar o teu projeto pra mim

Publicar un comentario

Proyectos Documentados, Trabajos, Ideas...


Noize Nación Radio

Click para escuchar


Twitter Delicious Facebook Digg Stumbleupon Favorites More