WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Picore 13.x - Apache  (Read 1480 times)

Offline eSPee

  • Newbie
  • *
  • Posts: 23
Picore 13.x - Apache
« on: April 27, 2022, 10:56:21 AM »
Dear all,

I am a newbie to piCore and linux, but i already like it alot (due to the tiny footprint and running from RAM) and with support of this great forum i managed to get the following working on a ZeroW (ArmV6):

- Picore 13.x
- Internal WiFi
- OpenSSH
- Samba4
- busybox-httpd

I would like to run a PHP website from the ZeroWPi interacting with GPIO pins through python.
Busybox is running, but i need apache-mod-php to run php scripts (i think).
Apache is not yet available on the repo for 13.x/armv6, however it is for 9.x.
So i downloaded and installed apache2.4.tcz and apache2.4-mod-php5.tcz from there and added them to onboot.1st.
Now when i start apache (sudo apachectl -k start) i get the following error:

" /usr/local/sbin/httpd: error while loading shared libaries: libaprutil-1.so.0: cannot open shared file: No such file or directory"

Can someone point me in te right direction to solve this issue? If not, is there an alternative way to run php scripts with picore 13.x?

Thanx for helping!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14798
Re: Picore 13.x - Apache
« Reply #1 on: April 27, 2022, 12:36:53 PM »
As well as downloading extension.tcz, you need to download extension.tcz.dep and extension.tcz.md5.txt.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Picore 13.x - Apache
« Reply #2 on: April 28, 2022, 02:23:34 AM »
You might also consider not using PHP, since it's pretty heavy for that purpose, but using CGI instead. Busybox httpd supports CGI.
The only barriers that can stop you are the ones you create yourself.

Offline eSPee

  • Newbie
  • *
  • Posts: 23
Re: Picore 13.x - Apache
« Reply #3 on: April 28, 2022, 10:07:45 AM »
Thanx Juanito & Curaga!

Little bit noob of me to forget the dependencies and the md5 files, silly me :o
You help brought me forward, however i ended up installing piCore 9.x instead of 13.x and now apache is working great ;)
I used the app (store) to install everything (this way i don't miss any dependencies)
piCore 9.x now runs smooth like satin!

Thnx!