WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: picore System Upgrade  (Read 339 times)

Offline eSPee

  • Newbie
  • *
  • Posts: 23
picore System Upgrade
« on: September 16, 2024, 11:19:49 AM »
Hi all,

For over a year now my system is running great on the piCore9.x. Although i am a linux newbie i got everything up and running with help from this forum. Thanks everybody ;) My raspberry Pi Zero W run wireless & headless with Samba4 / Apache2.4 / PHP 7 / WiringPi / Python 2.4 & Python RPi GPIO.

For some time now I am trying to upgrade the system to piCore14.x. I have tried different methods but can’t get it working:

1. Replacing the tinycore.gz and bzImage in the boot folder didn’t work. (System didn't boot)
2. Replacing the complete boot folder (but keeping config.txt & cmdline.txt) didn’t work. (System didn't boot)
3. Starting with piCore14.x from scratch worked until I tried to get apache & php working.

The corebook doesn’t mention how to upgrade the system (as far as I can tell). Unfortunately in this case, the forum couldn’t help me either. I am running out of options.

Can anybody please enlighten me if it is possible to do a system upgrade on raspberry and (if possible) what the basic approach is to do this? Thanks for helping!
« Last Edit: September 16, 2024, 11:28:57 AM by eSPee »

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1242
Re: picore System Upgrade
« Reply #1 on: September 17, 2024, 06:42:48 AM »
For the average user, starting from a fresh image is the best way to go about it.   Lots have changed in 5 versions.

What problems with Apache and php?

Offline eSPee

  • Newbie
  • *
  • Posts: 23
Re: picore System Upgrade
« Reply #2 on: September 17, 2024, 10:10:20 AM »
Hi Paul,

Thanks for the info. Regarding the issues with apache & php on piCore 14.x:

- Installed apache2.4:
  • tce-load -wi apache2.4.tcz
  • updated/.filetools.sh with related dirs
  • sudo apachectl -k start >> Apache runs fine, "It works!"

- Installed php7
  • tce-load -wi php7.tcz
  • uncommented “LoadModule php7_module modules/libphp7.so” in /usr/local/etc/httpd/httpd.conf
  • php -v >> "error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or directory"
  • sudo apachectl -k start >> "httpd: Syntax error on line 151 of /usr/local/etc/httpd/httpd.conf: Cannot load modules/libphp7.so into server: libsqlite3.so.0: cannot open shared object file: No such file or directory"

It seems that "libsqlite3.so.0" is missing somehow. anybody knows how to fix this? Many thanx!


« Last Edit: September 17, 2024, 10:15:38 AM by eSPee »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11581
Re: picore System Upgrade
« Reply #3 on: September 17, 2024, 10:19:47 AM »
Hi eSPee
Try:
Code: [Select]
tce-load -wi sqlite3.tcz

Offline eSPee

  • Newbie
  • *
  • Posts: 23
Re: picore System Upgrade
« Reply #4 on: September 17, 2024, 10:34:51 AM »
Hi Rich!

That solved the errors. I guess it was missing in the .dep file of php7.tcz ;)
After updating "httpd.conf" with code below apache & php now work!
Code: [Select]
<IfModule dir_module>
    DirectoryIndex index.html index.php
</IfModule>

Thnx Rich & Paul!