PHP5 pre-installed

55 views
Skip to first unread message

Virendra

unread,
Mar 11, 2016, 11:14:21 PM3/11/16
to BeagleBoard

Hi All,

I have a doubt on how to package the php5 within the SD card image created to load in Beagle Bone Black.

I have been following the instruction on https://eewiki.net/display/linuxonarm/BeagleBone+Black to get the micro SD card image. I use the default Debian 8 for the Root File System. Debian 8 doesn't come with PHP pre-installed. Could I get some instructions how to bundle the php so that when I load the SD card image I should see the php5 installed.

Thanks

Veera

William Hermans

unread,
Mar 11, 2016, 11:39:28 PM3/11/16
to beagl...@googlegroups.com
$ dpkg -l | grep <package_name> /* check if <package_name> is installed */
$ apt-cache search <package_name> /* check if <package_name> exists in the package repo */
$ sudo apt-get install <package_name> /* install existing package <package_name> */

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Virendra Anthony

unread,
Mar 12, 2016, 2:11:05 AM3/12/16
to Beagle Board
Williams,

I wanted to get an SD card image pre installed with php before I insert the card into BBB. The command you have provided is to get the php after loading the SD into BBB.

I am able to install the php package after I load the sd card in the BBB and then do the command 'sudo apt-get install php5'. What I wanted is the RFS should be bundled with PHP package.

Thanks,
Veera


You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/8926jv-2MTo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

William Hermans

unread,
Mar 12, 2016, 4:56:27 AM3/12/16
to beagl...@googlegroups.com
Ok so try this . . .

$ sudo apt-get install php5
$ sudo halt

Remove sdcard *BAM* php5 pre-installed.

You're otherwise not making your goal very clear.

William Hermans

unread,
Mar 12, 2016, 4:59:16 AM3/12/16
to beagl...@googlegroups.com
Sorry, I forgot the magic hand waving part, but you get the picture.

William Hermans

unread,
Mar 12, 2016, 5:12:28 AM3/12/16
to beagl...@googlegroups.com
Virendra,

Now if you mean you want a base rootfs like Robert minimal or bare rootfs's, you can do that with debootstrap, but trust me you'll not be able to easily get them as small as Robert does, and knowing how to use debootstrap and related tools is not exactly a trivial matter. So, seriously . . .

$ sudo apt-get install php5
$ sudo halt

remove sdcard and place into a Linux development machine ( i386 / i386-64 )

$ lsblk /* to find the sdcard path*/
then either use dd to make a whole disk backup including the bootloaders. Or use tar to just backup the rootfs.

Remove scard from PC development system *magic hand waving back and forth over top of sdcard* Ala kazam!

Virendra Anthony

unread,
Mar 12, 2016, 12:46:28 PM3/12/16
to Beagle Board
Hi Williams,

Thanks for the feedback. I wanted a base rootfs (which has php installed )like Robert  but I understand it takes lot of effort.

Can you confirm what I understand is correct from your mail:

1. Install the PHP5 in BBB
2. Remove the sdcard and insert into PC and backup the rootfs which will have php installed and use that rootfs for creating image further.

Is this correct. This should work for me.


Thanks,
Veera

Reply all
Reply to author
Forward
0 new messages