If you're worried about breaking something, you might set yourself up with a virtual machine to do your development work on (using the simulator station) and then transfer what works over to your real machine.
On Sun, Sep 6, 2020 at 8:22 AM <[email protected]> wrote: > No you need to install it. Have a look here > http://weewx.com/docs/usersguide.htm#integrating_with_webserver > > > > This is a distillation of the instructions to install Apache and PHP and > associated libraries: - > > > > sudo apt update > > > > sudo apt install apache2 > > > > sudo apt-get install php > > > > sudo apt-get install php-cli php-fpm php-json php-sqlite3 php-zip php-gd > php-mbstring php-curl php-xml php-pear php-bcmath > > > > sudo apt-get install libapache2-mod-php > > > > sudo a2enmod php7.3 > > > > sudo systemctl restart apache2 > > > > IM. > > > > > > > > > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *ExprmntAl <[email protected]> > *Sent: *06 September 2020 15:42 > *To: *weewx-user <[email protected]> > *Subject: *Re: [weewx-user] weewx-Weather34 installation questions > > > > I was under the impression that Apache2 was installed as part of the weewx > installation already. I am concerned that I will break something if I just > start installing things without understanding them fully if they are > already installed. So if I install Apache2, PHP7.x and the PHP > libraries as you suggest, is there a chance I will break what is already > working (in the case of Apache2 if it is already installed)? > > > > Is there a good tutorial somewhere for these installations? There seem to > be a number of versions of PHP which is also confusing. > > On Sunday, September 6, 2020 at 9:03:54 AM UTC-5 [email protected] wrote: > > OK, > > > > I also have the Seasons and Belchertown skin installed as well as my own > Weather34. > > > > I would go ahead and install Apache2, PHP7.x and the PHP libraries. When > you install the libraries you should pick up things like curl along the way. > > > > Then install Weather34 following the instructions carefully. > > > > Belchertown is also very well documented and is straightforward to > install. Some people have a problem setting up MQTT but again I found it > straight forward to setup my own server on my own Pi. There is excellent > support from Pat and Belchertown users if you get into trouble. > > > > IM > > > > On Sun, 6 Sep 2020 at 14:44, ExprmntAl <[email protected]> wrote: > > Ian, I should have noted that I'm running on a Raspberry Pi 4 with the > full version of the Raspberry Pi OS. Weewx has been running fine for over > a month using the weatherflow extension (Tempest). At this point I haven't > installed anything else and have been using the seasons skin. I wanted to > start playing around with Belchertown and Weather34 now that I have gotten > my feet wet. > > > > I had tried the "php -v" command already but it did not work and returned > "command not found". Here is what I get when I run the two commands: > > > > *pi@raspberrypi:~ $ apachectl -v* > > *bash: apachectl: command not found* > > *pi@raspberrypi:~ $ sudo apachectl -v* > > *sudo: apachectl: command not found* > > *pi@raspberrypi:~ $ php -v* > > *bash: php: command not found* > > *pi@raspberrypi:~ $ sudo php -v* > > *sudo: php: command not found* > > *pi@raspberrypi:~ $ * > > > > Also, what about curl? > > > > > > On Sunday, September 6, 2020 at 1:26:30 AM UTC-5 [email protected] wrote: > > To determine the versions of Apache and PHP installed: - > > > > From the command line run: - > > > > apachectl -v > > php -v > > > > > > IM > > > > > > > > On Sun, 6 Sep 2020 at 07:07, steeple ian <[email protected]> wrote: > > Hi, > > I assume you are running a Debian based OS, Raspberry Pi OS or Ubuntu > perhaps? > > IM > > > > On Sun, 6 Sep 2020 at 05:14, ExprmntAl <[email protected]> wrote: > > In the installation instructions for weewx-Weather34 it says: > > > > *"This installation guide assumes that you are already reasonably familiar > with WeeWX and that it is already installed on your computer along with a > webserver, php and curl."* > > > > The Apache2 webserver is installed as part of the weewx installation, but > how do I know if php and curl are installed? Is there an easy way to check > this? If I don't have these what is the best way to install them? > > > > Also, later in the instation instructions it says: > > > > *"IMPORTANT. After installing PHP please make sure you install all the PHP > modules appropriate for your version of PHP. Failure to due so may mean > that forecasts and current conditions fail to update. This is an example > for PHP7.3 modules on a Debian based distribution: -* > > > > > > > > *sudo apt-get install php-cli php-fpm php-json php-sqlite3 php-zip php-gd > php-mbstring php-curl php-xml php-pear php-bcmathsudo apt-get install > libapache2-mod-phpsudo a2enmod php7.3sudo systemctl restart apache2"* > > > > How do I determine what version of PHP I have and once I know that, how do > I ensure that I have installed the right modules for that version? I did > the "Debian based distribution" when I installed weewx. > > > > > > > > > -- > > > You received this message because you are subscribed to the Google Groups > "weewx-user" group. > > > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > > > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/45e32d75-b870-4ab3-9c2c-4bec28a611b7n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/45e32d75-b870-4ab3-9c2c-4bec28a611b7n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > > > > > > > > > > > -- > > > You received this message because you are subscribed to the Google Groups > "weewx-user" group. > > > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/ba11cac0-a789-41ac-b017-c56065b03986n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/ba11cac0-a789-41ac-b017-c56065b03986n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- > You received this message because you are subscribed to the Google Groups > "weewx-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/41e0ad23-6eef-4505-a48e-ac7aa8efd7c3n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/41e0ad23-6eef-4505-a48e-ac7aa8efd7c3n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > > -- > You received this message because you are subscribed to the Google Groups > "weewx-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/82F29735-2E38-4EF7-8C56-60C7CE915DDC%40hxcore.ol > <https://groups.google.com/d/msgid/weewx-user/82F29735-2E38-4EF7-8C56-60C7CE915DDC%40hxcore.ol?utm_medium=email&utm_source=footer> > . > -- Peter Quinn (415)794-2264 -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAA1SM22hMkFLFhgYrWJVGkLyxLkj-ftjyik0%2BNWPwEJ5Te1Y2A%40mail.gmail.com.
