Skip to main content
Share Your Experience: Take the 2024 Developer Survey
21 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,333
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,328
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
  • 59.1k
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

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

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

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
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

E: Package has no installation candidate

Today I ran into this problem because the power supply I was trying to use failed half way through a package update. This resulted in a corrupted package file in /var/lib/apt/lists that was half ...
deltaray's user avatar
  • 131
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
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,328
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
2 votes
Accepted

How do I create a cron job to execute PHP?

I have now solved it myself by using this Cron Job Task: 30 12 * * * php /home/pi/ScheduledTasks/dateCheck.php I checked the error log and it didn't like Scheduled Tasks being two seperate words ...
Ross's user avatar
  • 59
2 votes

PHP5, MySQL & MySQLAdmin issues on latest raspbian stretch release

You can downgrade your raspberry from Stretch to Jessie. sudo nano /etc/apt/preferences and add following lines: Package: * Pin: release a=oldstable Pin-Priority: 1001 And update upgrade apt-...
2CoB9's user avatar
  • 78
2 votes

I need php5, what version of NOOBS shall i download

If you really need php5, add the jessie to your /etc/apt/sources.list $ sudo -s # echo "deb http://mirrordirector.raspbian.org/raspbian/ jessie main" >> /etc/apt/sources.list and then # apt-...
RubberStamp's user avatar
  • 1,399
2 votes

I need php5, what version of NOOBS shall i download

NOOBS will only install the latest Raspbian, if you need an obsolete version you will need to install Raspbian, which you can find on https://downloads.raspberrypi.org/raspbian/images/ You might get ...
Milliways's user avatar
  • 60.3k
2 votes
Accepted

How can I install php5-pgsql on a Raspberry Pi 2?

PHP5 packages are not available in Stretch (see the package lists for php5-pgsql, and note that there are packages for Wheezy, Jessie and Sid, but not Stretch). You can either: Use PHP7 and install ...
Aurora0001's user avatar
  • 6,328
2 votes

How can I display sensor data on webserver by php?

Since you are aware of LAMP, the short answer would be go ahead to install LAMP and learn how to use it. But there is a simpler solution for beginners and for python programmers. Since you are using ...
hcheung's user avatar
  • 845

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