Ask / Submit

Php for mobile web server

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

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

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

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
[root@Jolla php-5.6.10]# 
[root@Jolla php-5.6.10]# make install
[root@Jolla php-5.6.10]# 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

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

BirdZhang gravatar image

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

edit flag offensive delete publish link more

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

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


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

r0kk3rz ( 2015-06-17 14:34:32 +0200 )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 +0200 )edit

PHP 5.5 is available on MerOBS here thanks to @Nieldk

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

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

juiceme ( 2015-06-17 14:43:18 +0200 )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 +0200 )edit
Login/Signup to Answer

Question tools



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

Seen: 354 times

Last updated: Jun 17 '15