Hot answers tagged

20 votes

PHP 7.4 on raspbian

First method: You can install it manually by: wget http://ftp.us.debian.org/debian/pool/main/p/php7.4/php7.4_7.4.1-1_all.deb And then: dpkg -i php7.4_7.4.1-1_all.deb It gives you a lot of ...
M. Rostami's user avatar
  • 4,283
9 votes
Accepted

Where is syslog being written?

/var/log/messages or maybe nowhere. Two things to try $ ls -lrt /var/log # find the most recently written logfile $ cat /etc/syslog.conf # view the syslog configuration
Christopher Biggs's user avatar
9 votes
Accepted

How to install PHP 7.1

The package php7.1 isn't in the stretch repo, but it is in the buster and sid repositories (for Debian 10 and unstable, respectively). You should be able to just change stretch to buster, and then run:...
Aurora0001's user avatar
  • 6,288
7 votes
Accepted

Can I make a WiFi hotspot out of my Raspberry without it having an internet access?

In terms of networking, this is certainly possible. Any WIFI access point can provide WIFI access to other devices. A WIFI accesspoint typically also acts as a DHCP server giving out IP addresses and ...
janos's user avatar
  • 561
6 votes
Accepted

Use of Raspberry Pi 3 as a web server - is it a good choice?

when raspberry pi 3 handles 10 Thousand connection Very, very unlikely. If each connection were generating 1 KB/s of traffic, that's 10 MB/s, which is just within the 12 MB/s theoretical upper limit ...
goldilocks's user avatar
  • 58.5k
5 votes

How can I install PHP 5.6 (instead of 5.4)?

At the time of this writing (november 2015), raspbian is built on Debian Jessie. The installable PHP version is in the 5.6 branch. However, for Laravel projects you will need a number of PHP ...
derjoachim's user avatar
4 votes

Where is syslog being written?

On a RPi3 in early 2018 with Raspian I'm seeing system log entries at /var/log/syslog as user1032531 suggested. Here's a handy way to look through the recent (latest 500 lines of the) syslog: sudo ...
Scott Veirs's user avatar
4 votes
Accepted

Getting Information from one Raspberry to another

As a beginner it may seem a bit taunting on how to actually transfer data, or how to ask the correct question on how to do it. The reason is because there are so many ways to do. A popular way to be ...
Piotr Kula's user avatar
  • 17.3k
4 votes

How to build a raspberry devices monitoring center

If you need fast implementation, try to use some ready to use monitoring tools like zabbix, cacti, munin, nagios, but be careful with server requirements. If you have time and want some DIY solution, ...
Łukasz Jakubek's user avatar
4 votes
Accepted

Python file called by PHP script in apache server unable to get RPi.GPIO

It's possible that this might mirror something I was doing a couple of years ago and I preface this with the observation that I don't believe that it was good practice, but I didn't find a way around ...
d3noob's user avatar
  • 1,876
3 votes

E: Package has no installation candidate

Looking at your sources.list file your problem may be that you are only using "Wheezy" {Debian/Raspian Version 7.x "OldStable"} sources but also have "jessie" {Debian/Raspian Version 8.x "Stable"} ...
SlySven's user avatar
  • 3,621
3 votes

How to Compile and Install PHP7 on raspberry pi?

Title suggests compilation, but your last question just concerns a successful installation. If you're using Raspbian - which is generally a Debian distribution you can just search for existing .deb ...
bla's user avatar
  • 41
3 votes

How to use a DSLR as a webcam on raspberrypi

You have an HDMI output from the camera that supplies clean HDMI, so you need to convert that to an input format for the Rpi. I don't have a good way to do this, but I think you'll discover that you ...
Randy Steck's user avatar
3 votes

Unable to install PHP

i used sudo apt-get install php5 libapache2-mod-php5 -y it works ok for me
Luis Aguilar's user avatar
3 votes

How can I update from PHP 7.0 to PHP 7.1?

Unfortunately PHP 7.1 and greater does not exist in the official repositories of (Raspbian/Debian) Stretch. Therefore, you have to add further repositories to your sources list that contains packages ...
flokoe's user avatar
  • 321
3 votes

Python file called by PHP script in apache server unable to get RPi.GPIO

A little poking with Google suggests this is a permissions problem. I don't have an instance of Apache running on a Pi, but it runs as user www-data on Debian. If that's the case, try sudo adduser ...
Bob Brown's user avatar
  • 1,037
2 votes

Raspberry PI, PHP, MPG123 playing music via 3.5mm jack - No sound via PHP?

The Problem can be solved by adding /usr/bin/mpg123 into /etc/sudoers like: sudo nano /etc/sudoers and add the line ALL ALL = NOPASSWD: /usr/bin/mpg123 than you can use in php shell_exec("...
stevE's user avatar
  • 21
2 votes

Making shell_exec work the way sh does with omxplayer

OK, I had the same problems, so here were the things which helped me: Go to /etc/apache2, and in the file envvars, change login, and user group to pi, or the user you are using. (P.S. This thing is ...
Max's user avatar
  • 103
2 votes
Accepted

PHP doesn't work on Apache on RPi

Based on the above you have two problems file and directory ownership and odd file permissions. to correct this do the following: sudo chown -R pi /var/www this will make all of the files and sub-...
Steve Robillard's user avatar
2 votes
Accepted

PHP-version on Raspberry Pi different in phpinfo()

You don't specify what version of Raspbian you are running, however, Raspbian Jessie shows PHP 5.6.14 available via apt-get. I used the following command to determine this: sudo apt-cache policy ...
Steve Robillard's user avatar
2 votes
Accepted

How do I install Apache2 and PHP without the internet connection?

Well, assuming that you've downloaded them onto your machine, and then have put them on your pi's SD card, you can install from local versions of packages, by following the answer here. This can be ...
Withnail's user avatar
  • 161
2 votes

Use PHP to get callback from GPIO in

Take a look at phpi, it allows event binding to GPIO and is written in pure PHP. There's also an example to interface realtime via WebSockets which should solve the problem nicely. Disclosure: I am ...
calcinai's user avatar
  • 179
2 votes
Accepted

How to set a permission to call a Python script from PHP?

Turns out the the answer is to give the correct privilege to device itself. I set total permissions for any group/user throug the command: sudo chmod 777 /dev/ttyUSB0 To left no doubt, I set the ...
Diego Dyan's user avatar
2 votes

Raspbian PHP Error

Make sure of the following things: Your server (WAMP/APACHE) is running on the laptop. Your file (let's call it index.php) is inside the server folder.(htdocs / www -> your server's root directory.) ...
Shakti Phartiyal's user avatar
2 votes
Accepted

Cannot install pecl/pear packages

Since php7.0 is not available in the official repository, you can use some other trusted private repositories. This is what you should do in order to install phpp7.0 form mati75's private repository(...
H G Sur's user avatar
  • 216
2 votes

Unable to install mysql

I solved this problem replace php5-mysql by the php version installed. The php version is show with: $sudo php --version PHP 7.0.19-1 (cli) (built: May 11 2017 14:04:47) ( NTS ) Copyright (c) 1997-...
Jaime Andrés Hurtado Giraldo's user avatar
2 votes

Apache on Pi won't display images

There are a few errors here. $files = glob("/var/www/html/Images"); This line doesn't make a lot of sense as written. glob returns an array matching the glob pattern (the sort of pattern you use in ...
Aurora0001's user avatar
  • 6,288
2 votes

Win 10 IoT + apache + php + mysql + ssl?

Everything you assume from traditional Windows systems is irrelevant in IoT Core. Wintel binaries like apache.exe , php.exe and mysql.exe are positively unwelcome and simply won't work. Windows 10 ...
flakeshake's user avatar
  • 6,215
2 votes
Accepted

Unable to run PHP on Raspbian Jessie

Switch from http to https in the /etc/apt/sources.list: deb https://repozytorium.mati75.eu/raspbian jessie-backports main contrib non-free
Marti Markov's user avatar
2 votes

How do I create a cron job to execute PHP?

Open up a terminal window and type the following command to create a cron job crontab -e Skip the following if already have a editor selected: You should be prompted to choose an editor. Press ...
User98764431's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible