Ask / Submit
3

Php for mobile web server

asked 2015-06-17 00:51:07 +0300

s.Sh gravatar image

Hi there.

How to install php? Maybe someone needs it too.

edit retag flag offensive close delete

3 Answers

Sort by » oldest newest most voted
3

answered 2015-06-17 10:27:20 +0300

juiceme gravatar image

Do you want just the PHP interpreter or whole shebang Apache installation wit it?

The second case is of course lot easier to do, building with all default dependencies turned off seems to succeed nicely;

[nemo@Jolla php-5.6.10]$ 
[nemo@Jolla php-5.6.10]$ ./configure --disable-all
[nemo@Jolla php-5.6.10]$ make
[nemo@Jolla php-5.6.10]$ make test
[nemo@Jolla php-5.6.10]$ devel-su
Password: 
[root@Jolla php-5.6.10]# 
[root@Jolla php-5.6.10]# make install
[root@Jolla php-5.6.10]# exit
exit
[nemo@Jolla php-5.6.10]$ 
[nemo@Jolla php-5.6.10]$ php -v
PHP 5.6.10 (cli) (built: Jun 17 2015 09:56:54) 
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
[nemo@Jolla php-5.6.10]$ 
[nemo@Jolla php-5.6.10]$ php hello.php 
Hello, World! 
[nemo@Jolla php-5.6.10]$
edit flag offensive delete publish link more
0

answered 2015-06-17 14:21:33 +0300

s.Sh gravatar image

Thank you for answer.

Yes, I need JAP = Jolla Apache Php Now I have JA but it's not enough.

edit flag offensive delete publish link more

Comments

you can also have JNP (Jolla NGINX PHP) which might work better given the limited ram situation.

r0kk3rz ( 2015-06-17 14:34:32 +0300 )edit

Well, as you can see I just built the basic PHP 5.6.10 from source tarball in about 20 minutes. Have not tried Apache but it should not be much harder really.

juiceme ( 2015-06-17 14:34:43 +0300 )edit

PHP 5.5 is available on MerOBS here thanks to @Nieldk

r0kk3rz ( 2015-06-17 14:39:43 +0300 )edit

@r0kk3rz, I always compile applications from source. What's the point of installing binaries?

juiceme ( 2015-06-17 14:43:18 +0300 )edit

as is your right @juiceme, however binaries are available from a reputable source should anyone prefer this method.

r0kk3rz ( 2015-06-17 14:58:35 +0300 )edit
1

answered 2015-06-17 14:47:57 +0300

BirdZhang gravatar image

Just compile what you want,it's linux :)

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2015-06-17 00:51:07 +0300

Seen: 348 times

Last updated: Jun 17 '15