Failing access to PHP-install Topic is solved

Moderator: leecollings

Post Reply
Toulon7559
Posts: 848
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Failing access to PHP-install

Post 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?
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
Toulon7559
Posts: 848
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Failing access to PHP-install

Post 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?
Last edited by Toulon7559 on Tuesday 25 October 2022 13:47, edited 1 time in total.
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
Toulon7559
Posts: 848
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Failing access to PHP-install

Post 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?
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
User avatar
waltervl
Posts: 5387
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Failing access to PHP-install

Post by waltervl »

See for example an instruction how to upgrade rasbian from buster to bullseye:
https://linuxhint.com/upgrade-raspberry ... %20version.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Toulon7559
Posts: 848
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Failing access to PHP-install

Post 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.
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest