Jump to content


Photo

Apahe and Php On Openpli 4.0

apache php mysql

  • Please log in to reply
60 replies to this topic

#1 idealsat

  • Senior Member
  • 232 posts

0
Neutral

Posted 14 August 2014 - 19:17

Hi

 

I want to run webserver on xp1000 .I want to put webpage in box which i want to access outside.

 

Anybody tell me how i can install apache and php in openpli 4.0.?

 

or where to download install .?

 

Thanks

soon reply



Re: Apahe and Php On Openpli 4.0 #2 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 14 August 2014 - 19:37

Built-in webserver?

 

(Did you actually ever try http://xp1000 ?)


Edited by MiLo, 14 August 2014 - 19:38.

Real musicians never die - they just decompose

Re: Apahe and Php On Openpli 4.0 #3 idealsat

  • Senior Member
  • 232 posts

0
Neutral

Posted 14 August 2014 - 19:48

Hi

 

Yes its not there.

 

I want to run php page.

 

Thanks for your reply



Re: Apahe and Php On Openpli 4.0 #4 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 14 August 2014 - 19:51

You'll have to compile it yourself, I'm afraid.

 

Isn't hard, just takes time and a Linux PC. Just follow the instructions to build an image, then add apache to the packagelist and build.


Real musicians never die - they just decompose

Re: Apahe and Php On Openpli 4.0 #5 WanWizard

  • PLi® Core member
  • 68,544 posts

+1,737
Excellent

Posted 14 August 2014 - 20:13

I wonder if the box has enough power for that. The Apache/PHP combo is quite memory and CPU hungry (better use lighttpd or nginx instead of apache).

 

But isn't it better to use python and the existing webserver?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Apahe and Php On Openpli 4.0 #6 idealsat

  • Senior Member
  • 232 posts

0
Neutral

Posted 15 August 2014 - 11:28

Hi

 

Thank for your reply

 

where to download mipsel base lighttpd or nginx .?

 

Thanks



Re: Apahe and Php On Openpli 4.0 #7 WanWizard

  • PLi® Core member
  • 68,544 posts

+1,737
Excellent

Posted 15 August 2014 - 11:56

I think the same answer applies, you will probably have to compile it yourself.

 

But, as I already said before, the box already runs a webserver, so why add a second one?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Apahe and Php On Openpli 4.0 #8 idealsat

  • Senior Member
  • 232 posts

0
Neutral

Posted 15 August 2014 - 12:05

which webserver is run.

 

how i can run php page with webserver which already running in box.?

 

thanks



Re: Apahe and Php On Openpli 4.0 #9 Sjaaky

  • Senior Member
  • 7,443 posts

+41
Good

Posted 15 August 2014 - 12:18

You'll need our develop environment for that.

 

Instead of php you can use python and twisted, which is a python web framework. Twisted is available from the feed (opkg install python-twisted).

You'll find some twisted examples over here: http://twistedmatrix...n-60/index.html

 

I've just tested the second example which generates an html page with the current time. This works without any trouble.

 

If python and twisted are useful for you depends on what you want. Do you want to put some homemade webpages online? Or do you expect to be able install the latest and greatest php cms?


Edited by Sjaaky, 15 August 2014 - 12:20.


Re: Apahe and Php On Openpli 4.0 #10 idealsat

  • Senior Member
  • 232 posts

0
Neutral

Posted 27 August 2014 - 19:56

Hi

 

I found php and compile instruction. ( http://www.web-tech-...ing_php_apache/ )

 

But i dont know how compile for Openpli 4.0

 

Can Someone tell me step by step how i can compile php and apahe with all modules.

 

Thanks



Re: Apahe and Php On Openpli 4.0 #11 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 28 August 2014 - 06:20

Start by compiling the OpenPLi image. See the wiki or this forum for details.

After that, it's just a matter of adding apache to a package list and you're done.
Real musicians never die - they just decompose

Re: Apahe and Php On Openpli 4.0 #12 idealsat

  • Senior Member
  • 232 posts

0
Neutral

Posted 19 September 2014 - 19:01

Hi Milo

 

Thanks for your reply i compile image can you tell me more how i put in package list here is link for php source. ( http://fr2.php.net/downloads.php )

 

 I want to download latest php source and compile for openpli.

 

Thanks



Re: Apahe and Php On Openpli 4.0 #13 idealsat

  • Senior Member
  • 232 posts

0
Neutral

Posted 20 September 2014 - 12:34

Hi

 

I doing like this

 

MACHINE=xp1000 bitbake openpli-enigma2-feed

 

where i put php source files .?

in build directory.?

 

i followng this instructions (http://users.telenet...npliubuntu.html ) but i not found package list location.

 

Thanks


Edited by bable, 20 September 2014 - 12:38.


Re: Apahe and Php On Openpli 4.0 #14 idealsat

  • Senior Member
  • 232 posts

0
Neutral

Posted 22 September 2014 - 11:09

Any body know about this ...?



Re: Apahe and Php On Openpli 4.0 #15 blzr

  • PLi® Core member
  • 2,269 posts

+118
Excellent

Posted 22 September 2014 - 11:27

and did you (correctly) set the build environment already?
did you succeed in compiling a regular openpli image?

to just build requested packages:
cd ~/openpli-oe-core/build
source env.source
MACHINE=xp1000 bitbake php
MACHINE=xp1000 bitbake lighttpd
or
MACHINE=xp1000 bitbake nginx
(*for nginx, you need to add meta-webbrowser layer to the Makefile first)

and if you'd like to add any package to your custom image (or a local feed), the easiest option is to take a look into meta-local/recipes-local/images/my-image.bb
recipe and adjust it according to your needs... (and then: MACHINE=xp1000 bitbake my-image)


True sarcasm doesn't need green font...

Re: Apahe and Php On Openpli 4.0 #16 idealsat

  • Senior Member
  • 232 posts

0
Neutral

Posted 22 September 2014 - 12:18

Hi

 

Yes i successfully make normal package.

 

i download php from this site ( http://fr2.php.net/g...z/from/a/mirror )

 

I extract files in folder and call to like this 

 

cd ~/openpli-oe-core/build
source env.source
MACHINE=xp1000 bitbake php-5.6.0

 

?

 

If i want to enable any options in php configure file first i enable then compile as you say.?

 

Thanks for your reply..



Re: Apahe and Php On Openpli 4.0 #17 Sjaaky

  • Senior Member
  • 7,443 posts

+41
Good

Posted 22 September 2014 - 12:39

Our build system works with recipes . A recipe contains all the ingredients and steps to build a package automatically. A recipe is specified in a .bb file.

Our current build system contains recipes for php 5.4.14, modphp 5.5.15 and apache 2.4.10. No need to download the source yourself.

 

These recipes are in the meta-openembedded/meta-webserver directory. This directory needs to be added to build/conf/bblayers.conf (through the Makefile, like blzr mentions) so bitbake will find those recipes.

 

If you want to use a newer version of php or apache, copy the recipe, change the version number and change SRC_URI[md5sum] and SRC_URI[sha256sum].

 

If you want to change the configuration, check the EXTRA_OECONF in the recipe files.


Edited by Sjaaky, 22 September 2014 - 12:39.


Re: Apahe and Php On Openpli 4.0 #18 idealsat

  • Senior Member
  • 232 posts

0
Neutral

Posted 22 September 2014 - 12:45

Hi

 

i following this 

 

cd ~/openpli-oe-core/build
source env.source
MACHINE=xp1000 bitbake php

 

-----------

 

I getting error 

 php_5.4.14.bb, do_fetch ( failded with exit code 1 )

 

-----------

Thanks for your reply



Re: Apahe and Php On Openpli 4.0 #19 Sjaaky

  • Senior Member
  • 7,443 posts

+41
Good

Posted 22 September 2014 - 13:19

You're right. modphp works for me though. Or do you really need php instead of modphp?



Re: Apahe and Php On Openpli 4.0 #20 idealsat

  • Senior Member
  • 232 posts

0
Neutral

Posted 22 September 2014 - 13:33

Hi

 

Your php version ( php_5.4.14.bb ) ok for me.

 

But i following your instructions i getting this error.

------------------------------------------

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Failed to fetch URL http://museum.php.ne...-5.4.14.tar.bz2, attempting MIRR
ORS if available
ERROR: Fetcher failure: Fetch command failed with exit code 4, output:
Read error (Connection timed out) in headers.
Read error (Connection timed out) in headers.
 
ERROR: Function failed: Fetcher failure for URL: 'http://museum.php.ne.../php-5.4.14.tar
.bz2'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/ubuntu/work/openpli-oe-core/build/tmp/work/mips3
2el-oe-linux/php/5.4.14-r5.0/temp/log.do_fetch.13701
ERROR: Task 4 (/home/ubuntu/work/openpli-oe-core/meta-openembedded/meta-oe/recipes-devtools
/php/php_5.4.14.bb, do_fetch) failed with exit code '1'
Currently 2 running tasks (1182 of 1210):
0: php-native-5.4.14-r5.0 do_fetch (pid 13700)
1: mariadb-5.5.38-r0 do_package (pid 22191)

 

-------------------------------------------

 

can you send me your php .bb file which working for you.

 

Thanks 

soon reply





Also tagged with one or more of these keywords: apache, php, mysql

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users