maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Web server with PHP support or a way to run Dokuwiki locally (https://talk.maemo.org/showthread.php?t=23840)

jolouis 2008-11-27 13:42

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

Ricky-Lee 2008-11-29 21:03

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.

gklka 2008-12-01 15:56

Re: Web server with PHP support or a way to run Dokuwiki locally
 
@jolouis:

Thanks a lot for the package! It saved my life :)

benohit 2008-12-05 11:54

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...

EIPI 2008-12-05 13:11

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?

benohit 2008-12-05 19:42

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
________________

bizshop 2008-12-08 06:15

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

benohit 2008-12-08 08:32

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

qole 2008-12-08 18:03

Re: Web server with PHP support or a way to run Dokuwiki locally
 
Quote:

Originally Posted by bizshop (Post 247706)
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

Have you done an "apt-get update" first? That's probably your problem.

bizshop 2008-12-10 15:07

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 09:11.

vBulletin® Version 3.8.8