maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   is PHP available (https://talk.maemo.org/showthread.php?t=39430)

leke 2010-01-06 14:03

is PHP available
 
Is it possible to install PHP on n810 OS2008?
...or maybe even LAMP?

Thanks.

roose 2010-01-16 01:22

Re: is PHP available
 
For n900 You can compile php at your scratchbox without problems:

# download php
# unpack archive
[armel] cd php-5.x.x
[armel] ./configure --prefix=/home/user/php
# if you have compiled and installed mysql on scratchbox and device
# you can add --with-mysql=..., --with-mysqli=... for mysql support
# if you need support for special extensions - give it a try
[armel] make
[armel] make install
[armel] cd /home/user
[armel] tar cvf php.tar php
# copy it to /home/user on your device
[device] cd /home/user
[device] tar xvf php.tar
# symlink (if you like) - rootsh required
[device] ln -s /home/user/php/bin/pecl /usr/bin/pecl
[device] ln -s /home/user/php/bin/phar.phar /usr/bin/phar
[device] ln -s /home/user/php/bin/phar.phar /usr/bin/phar.phar
[device] ln -s /home/user/php/bin/php /usr/bin/php
[device] ln -s /home/user/php/bin/php-cgi /usr/bin/php-cgi
[device] ln -s /home/user/php/bin/php-config /usr/bin/php-config
[device] ln -s /home/user/php/bin/phpize /usr/bin/phpize

Hope it works for you on OS2008

Have Phun ...

acidjazz 2010-01-28 02:40

Re: is PHP available
 
anyone want to make a usable package of this w/ gtk and sqlite?

Quote:

Originally Posted by roose (Post 475496)
For n900 You can compile php at your scratchbox without problems:

# download php
# unpack archive
[armel] cd php-5.x.x
[armel] ./configure --prefix=/home/user/php
# if you have compiled and installed mysql on scratchbox and device
# you can add --with-mysql=..., --with-mysqli=... for mysql support
# if you need support for special extensions - give it a try
[armel] make
[armel] make install
[armel] cd /home/user
[armel] tar cvf php.tar php
# copy it to /home/user on your device
[device] cd /home/user
[device] tar xvf php.tar
# symlink (if you like) - rootsh required
[device] ln -s /home/user/php/bin/pecl /usr/bin/pecl
[device] ln -s /home/user/php/bin/phar.phar /usr/bin/phar
[device] ln -s /home/user/php/bin/phar.phar /usr/bin/phar.phar
[device] ln -s /home/user/php/bin/php /usr/bin/php
[device] ln -s /home/user/php/bin/php-cgi /usr/bin/php-cgi
[device] ln -s /home/user/php/bin/php-config /usr/bin/php-config
[device] ln -s /home/user/php/bin/phpize /usr/bin/phpize

Hope it works for you on OS2008

Have Phun ...


Apesector 2010-02-12 10:16

Re: is PHP available
 
hi there.

i have compiled with sqlite and gd if u interested.

cheers

techdork 2010-02-12 10:18

Re: is PHP available
 
Quote:

Originally Posted by leke (Post 455538)
Is it possible to install PHP on n810 OS2008?
...or maybe even LAMP?

Thanks.

Yes, best option is to run Debian in a chroot.


All times are GMT. The time now is 21:17.

vBulletin® Version 3.8.8