![]() |
Web server with PHP support or a way to run Dokuwiki locally
Hi to all.
I'm developing an helpdesk support for my company using Dokuwiki. I actually used the Dokuwiki on a stick provided by the author, and not have installed anything on my PC, just using the m(ini)apache webserver supplied with that installation. I would have liked to try a local install on my N800 (maybe providing one to each of our technicians later :) ), but I cannot understand wheter there is a webserver supporting php on the tablet. I know that we have apache port, nginx port, thttpd, but I cannot figure out if the php support is out of the box or if there is anything needed to let it work (provided this is possible on the tablet). Anyone willing to help? |
Re: Web server with PHP support or a way to run Dokuwiki locally
try to compile lighthttpd, it has php support.
i've also tried dokuwiki on a nslu2 with lighthttp&php (xscale processor). it's a looooooot lightweight then apache. Cheers, -Mihai |
Re: Web server with PHP support or a way to run Dokuwiki locally
I have installed nginx along with php-fastcgi. For my application (local install of eyeOS), I was confronted with the problem that the php in the N8X0 does not have gzip enabled... and I was stumped on how to solve that. I posted that problem here, but got no response recently. So, to answer your question I beleive that php support is available, but may not be fully functional... IMO
|
Re: Web server with PHP support or a way to run Dokuwiki locally
Quote:
|
Re: Web server with PHP support or a way to run Dokuwiki locally
Quote:
|
Re: Web server with PHP support or a way to run Dokuwiki locally
Well, I didn't figure out that all was already available on the repository :o
installed right now php5-pear and nginx, I'll try to install dokuwiki later on and see how (and if) it works |
Re: Web server with PHP support or a way to run Dokuwiki locally
Yes, please post back your progress. I'd be interested to see if it works for you.
|
Re: Web server with PHP support or a way to run Dokuwiki locally
I've compiled PHP and Lighttpd from scratch on the tablets with no problem... I disabled most of the modules I wouldn't be using, but it's possible to compile them without too much issue. Of course if there's already stuff in the repos, then great go for it since it saves you hassles and work, but if you are looking for a specific PHP build/config/module or lighttpd I've got 'em on my tablet right now... I could probably deb 'em up if somebody's really desperate for something they can't pull out of the repos, but I provide no promises that they'll work flawlessly for you...
-Rob |
Re: Web server with PHP support or a way to run Dokuwiki locally
Jolouis, I for one would l like a copy of the .debs or any way you can send them. I just want to create php scripts that will interact with sqlite3 db through a browser window, and have been unsuccessful with the repository packages.
|
Re: Web server with PHP support or a way to run Dokuwiki locally
Jolouis, I would really like to be the next one, who receives the ethernal gift of the "up-debbed" PHP and Lighttpd packages.
Please send them to gk[at]lka.hu |
Re: Web server with PHP support or a way to run Dokuwiki locally
Count me in. I'd like .debs of lighttpd and PHP. Can you make those available for download?
|
Re: Web server with PHP support or a way to run Dokuwiki locally
I forgot about this thread - yes, I would be interested as well. I think gzip enabled in it would also be of benefit (to me at least).
|
Re: Web server with PHP support or a way to run Dokuwiki locally
Just a note, full Apache 2 with all of the modules is available in the Debian repos...
I've installed Apache so I can use the smb2www package, a (perl) web-based network surfer. Works fine. One of these days, when I have some time, I want to try to set up a full LAMP stack on my tablet, and then see how fast it is as a server :) |
Re: Web server with PHP support or a way to run Dokuwiki locally
For all those who were asking I'll try to throw together a deb that has lighttpd along with PHP 5 prebuilt and ready to go in the next day or two when I get some time. I don't remember which modules specifically I had compiled when I initially did my build, but I'll double check and post up a link to the deb along with some instructions (though it should be pretty straight forward...).
As qole pointed out there's a full Apache build in the repos, but in my experience if you're just interested in serving up PHP content for your own local use Apache is massive overkill, but that's just my oppinion ;o) Thanks, -Rob |
Re: Web server with PHP support or a way to run Dokuwiki locally
Yeah, but I'm all about massive overkill :)
OpenOffice anyone? |
Re: Web server with PHP support or a way to run Dokuwiki locally
FWIW, a while back (pre Diablo) i had nginx and PHP-cgi working well. I just installed both and had to edit the config files, but it did work.
|
Re: Web server with PHP support or a way to run Dokuwiki locally
Thanks, jolouis! Definitely want a lightweight web server for use only with PHP --- I'm looking forward to those .debs. :) Also, you mentioned that you compiled directly on the tablet; is there a link you can point me to so I can learn to do this myself?
|
Re: Web server with PHP support or a way to run Dokuwiki locally
I've been thinking, what about a lightweight maemo replacement for the LAMP stack? Use SQLite instead of MySQL, and lighttpd instead of Apache...
A .deb that installs all the components and configures them all to work together... would be very cool! It could be called ... hmmm... the Maelisp stack? maelisph? |
Re: Web server with PHP support or a way to run Dokuwiki locally
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:
http://www.electronicproductonline.c....1.0_armel.deb 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: 127.0.0.1 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 :o) 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... Thanks, -Rob |
Re: Web server with PHP support or a way to run Dokuwiki locally
SQLite is already in Extras. You wouldn't need to add it to your package, just make your package depend on it (and then push your package into Extras, too :D ). Several packages (including Maemopadplus) use it.
I notice mysql-server is also in the chinook repository. |
Re: Web server with PHP support or a way to run Dokuwiki locally
awesome!!! I just installed it and it's running beautifully right out of the box. Thank you so much!!! :)m
|
Re: Web server with PHP support or a way to run Dokuwiki locally
Thanks so much for this! Just a note for others, I had to shutdown my 810 and restart before browser would connect to 127.0.0.1, but it works very well indeed!
|
Re: Web server with PHP support or a way to run Dokuwiki locally
Installs and works nicely on OS2008HE.
Needed to comment out the session extension in php.ini, because it's already compiled into php-cgi and generated warning messages. Great package btw, thanks again. |
Re: Web server with PHP support or a way to run Dokuwiki locally
Is it possible to use the libsqlite3-0 library, as used by datable? Sqlite3 and sqlite2 databases are incompatible.
|
Re: Web server with PHP support or a way to run Dokuwiki locally
installed fine and simply works!
thank you very very much! |
Re: Web server with PHP support or a way to run Dokuwiki locally
Well... Since I am the one that started the thread, I guess I should give an update about my situation :D : system is up an running great, even tough not very fast (but I have some pages which are full of images) using the Lighttp server and PHP package.
Nevertheless, I had to increase the memory reserved for the PHP scripts to 32MB otherwise I was getting errors even on the standard Dokuwiki installation (not my wiki), on the sintax section. I edited the /etc/php.ini file. Thanks for your work!!! |
Re: Web server with PHP support or a way to run Dokuwiki locally
Glad to be able to help out guys :-) Sorry about that session extension thing, I usually like to build everything as modules to help make things as customizable as possible but SQLite got really mad if I didn't have sessions statically built in, and I forgot to change the php.ini file after that to reflect...
Thanks, -Rob |
Re: Web server with PHP support or a way to run Dokuwiki locally
does these PHP5 packages work with Apache2 (which is in the repos) ?
Is it possible to include mysql support in the PHP package ? I reaaaaally would be interested ! Sqlite isn't enough for me, and i have enaugh space (no games) on my n810 |
Re: Web server with PHP support or a way to run Dokuwiki locally
IMO apache and mysql combo is too resource hungry for the IT (both memory and cpu wise). I tried this package with a sqlite-based drupal system on my 770 and it was a kind of slow.
|
Re: Web server with PHP support or a way to run Dokuwiki locally
still hoping for Sqlite3 support. With only sqlite2, I cannot access databases created with sqlite3.
|
Re: Web server with PHP support or a way to run Dokuwiki locally
Sorry I've been caught up with other projects lately and I just flashed my development tablet into Diablo oblivion so I've got to re-install the dev tools on it (hopefully in the next few days?).
What exactly is required to compile PHP with sqlLite3 instead of sqlLite2? I don't remember seeing any compile directives for that, but I could be wrong... Thanks, -Rob |
Re: Web server with PHP support or a way to run Dokuwiki locally
Anyone had any luck with getting lighthttpd to run as the user nobody insted of root like it does out the box.
Since I have been useing the N800 for a webserver now an then I would much rather not have it running as root, when I tel it to run as nobody I get a error an then it closes down. |
Re: Web server with PHP support or a way to run Dokuwiki locally
@jolouis:
Thanks a lot for the package! It saved my life :) |
Re: Web server with PHP support or a way to run Dokuwiki locally
Ok, i just come in this thread.
I tested php5 + nginx + sqlite in native Maemo environment, but that wasn' sufficient for me. I think php5-cgi package with mysql support would be very nice... But i really needed a lamp server running on my N810, as a webdev. As an alternative, i installed : - easy debian turbo-charged edition - in the chroot environment, i installed package "phpmyadmin" #apt-get install phpmyadmin which installed all needed stuff : apache2+php5+mysql. So i run the servers after chrooting each time i restart (twice a month) my tablet : - /etc/init.d/apache2 start - /etc/init.d/mysql start And, when i'm back in microb, browing http://127.0.0.1/phpmyadmin/ this works !!! could install typo3 for example. I know it's quite "huge" but i don't have big slowness. Having a such environment (php5 mysql support) would be nice, even with lighttpd or nginx, but i couldn't find how to cross-compile php5 on Maemo OS2008... |
Re: Web server with PHP support or a way to run Dokuwiki locally
@benohit: Interesting, I'll have to reinstall qole's debian turbo and try this out.
Do you have the chroot terminal window open for the servers to be functional, or can the windows be closed down after restarting the server daemons? |
Re: Web server with PHP support or a way to run Dokuwiki locally
@EIPI : keeping terminal open isn't necessary ! daemons are running, because it's daemon, you can close chrooted terminal
moreover, i installed "bluefish" in order to edit web html & php & css pages,... i made a script in debian : #nano /usr/local/sbin/lamp_start.sh : _______________ #!/bin/bash /etc/init.d/apache2 start /etc/init.d/mysql start _______________ then #chmod u+x /usr/local/sbin/lamp_start.sh back in Maemo, you can put in /etc/init.d/rcS or something like this, before exit 0 at the very end of the file : ________________ ... sudo debian lamp_start.sh exit 0 ________________ |
Re: Web server with PHP support or a way to run Dokuwiki locally
benohit,
Do I need to install a repository? Here is what I get: [root@Debian: /]apt-get install phpmyadmin Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package phpmyadmin |
Re: Web server with PHP support or a way to run Dokuwiki locally
@bizshop :
as i said earlier in this thread, you have to follow these steps : 1 / Install easy debian turbo-charged edition 2 / Install phpmyadmin in a chrooted debian terminal |
Re: Web server with PHP support or a way to run Dokuwiki locally
Quote:
|
Re: Web server with PHP support or a way to run Dokuwiki locally
Thanks to both qole and benohit, got phpmyadmin installed, but I have no mysql in the /etc/init.d/ directory. Trying to search all directories to see if mysql got installed or not, but no success yet. Tried ap-get install mysql-server and got out of space on device error
|
All times are GMT. The time now is 02:14. |
vBulletin® Version 3.8.8