Tiny Core Base > Raspberry Pi
picore System Upgrade
(1/1)
eSPee:
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!
Paul_123:
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?
eSPee:
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!
Rich:
Hi eSPee
Try:
--- Code: ---tce-load -wi sqlite3.tcz
--- End code ---
eSPee:
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: ---<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
--- End code ---
Thnx Rich & Paul!
Navigation
[0] Message Index
Go to full version