Page 1 of 1

Failing access to PHP-install

Posted: Friday 14 October 2022 23:40
by Toulon7559
Tried install of Web+PHP with setup-instructions like this and this, but without success, generally with report that packages cannot be found.
Assuming it to be a 'simple problem' related to linking to contents of the Domoticz-configuration, put a question on PHP in section Bug&Problems.
But develops in different direction and therefore shifted/continued in this thread:
is issue related to Installation of Webserver+PHP on Raspian_Buster by means of CLI-inputs through Putty_SSH.

Question/problem differently phrased:
instead of CLI-inputs through Putty, are other, alternative ways available to install Webserver+PHP on Raspian_Buster?

Re: Failing access to PHP-install

Posted: Sunday 16 October 2022 21:54
by Toulon7559
Considering the question in the previous message, is this a feasible, pragmatic approach to circumvent the problems related to 100% install_by_CLI?
- Domoticz includes a webserver and a database
- a PHP-package can be installed by extracting the required tar-type file for this website and running setup
- basic linking is described in the wiki of Domoticz

This method seems well aimed for fitting PHP on a Raspian_Buster_platform, but not yet successful.

Then the question changes into:
- is webserver+database of Domoticz compatible with a PHP-package installed according, either to the StackExchange's 1st method mentiond here, or as descibed in this weblink or (easier) ...... ?
- if yes, how to realise & check correct linking of the installed PHP-package to the webserver+database of Domoticz?

Re: Failing access to PHP-install

Posted: Tuesday 25 October 2022 13:45
by Toulon7559
No progress, and then jumping to ruder methods.
;) Whether wise & appropriate, that is to be discussed, but results count .......
Hints for safer plans of attack most welcome!


Had 2 Raspberries0W laying ready-for-use, and experimented to get a working configuration running Apache2 & PHP.

Raspberry1, almost naked with only Raspian_Buster installed, not Domoticz
Started with

Code: Select all

sudo apt-get update
, without result.
Next

Code: Select all

sudo apt-get dist-upgrade
, and that resulted in Raspian_Bulleye installed!
Next went to the Apache website, and performed the steps required to install Apache2 & PHP7.4 with success
=> Raspberry1 now running PHP-software!

Raspberry2 = Raspian_Buster installed in combination with latest Domoticz, incl. some devices for testing.
Started with

Code: Select all

sudo apt-get update
, without result.
Next

Code: Select all

sudo apt-get dist-upgrade
, and got some reaction, but not changing the configuration beyond Raspian_Buster!
Subsequent install of PHP8.1 is realised as can be seen in /etc/PHP, but the testscript fails, nor a result on

Code: Select all

php -v
Next went to the StackExchange website's 2nd method, and performed the steps required to install Apache2 & PHP7.4 with some success
=> in folder /etc/PHP/ I now see 7.4 installed (adjacent to 8.1), incl. apache2, but CLI-input

Code: Select all

php -v
also here reports

Code: Select all

invalid instruction
=> not described, but is further setup required, either like for Raspberry1, or like this webpage?

Re: Failing access to PHP-install

Posted: Tuesday 25 October 2022 15:00
by waltervl
See for example an instruction how to upgrade rasbian from buster to bullseye:
https://linuxhint.com/upgrade-raspberry ... %20version.

Re: Failing access to PHP-install

Posted: Tuesday 25 October 2022 16:15
by Toulon7559
Off-topic tried your suggestion for OS-upgrade on the Raspberry2, initially looked good,
but some of the instructions were 'negatively reacting',
related to missing files, missing rights for access, and sudo not having enough overruling power.
:( Endresult was a 'bricked' Raspberry:
not a big deal, because this Raspberry2 not yet 'in service' and still rather 'empty',
but with this experience certainly this procedure not yet to be applied for my 'production' Raspberries ........
Makes me have 2nd thoughts about your earlier message related to Bullseye: still valid?

:) Considering this an opportunity in the learning curve:
refresh image on the SD-card with Raspian_Bullseye and then all options should be open for this Raspberry.
;) try another rerun for testing&derisking methods for O.S.-upgrade starting with configuration having Raspian_Buster & Domoticz,
before touching the 'serious candidates' ....

Addition/Conclusion October 26, 2022:
Related to PHP-install on configuration with Raspian_Buster&Domoticz apparently not yet a working solution,
but with PHP installed on 'fresh' Raspberry with Raspian_Bullseye, then systemwise a pragmatic way out for local running of PHP-scripts.