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 ...
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
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:...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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"} ...
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 ...
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 ...
3
votes
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 ...
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 ...
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("...
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 ...
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-...
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 ...
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 ...
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 ...
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 ...
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.)
...
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(...
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-...
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 ...
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 ...
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
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
php × 209raspbian × 52
python × 43
apache-httpd × 33
web-server × 28
gpio × 20
pi-3 × 15
mysql × 14
pi-2 × 11
networking × 9
html5 × 9
wifi × 7
linux × 7
apt × 7
lighttpd × 7
audio × 6
raspbian-stretch × 6
server × 6
web-interface × 6
usb × 5
camera × 5
rpi.gpio × 5
serial × 5
bash × 5
wiringpi × 4