search
HomeBackend DevelopmentPHP ProblemWhat to do if the Raspberry Pi php5 installation fails

Solution to the failed installation of Raspberry Pi php5: 1. Modify wheezy in the software source to jessie; 2. Update and upgrade, and install php5-fpm.

What to do if the Raspberry Pi php5 installation fails

The operating environment of this article: Ubuntu 12.10 system, PHP5 version, Raspberry Pi 2.

What should I do if the installation of php5 on Raspberry Pi fails?

Solution to the error when installing php5-fpm on Raspberry Pi 2:

Raspberry Pi 2 has been purchased for three months. It cost more than 360 yuan in total including the host, box, power supply, camera, wireless network card, etc.

When I first started building the system, I used a raspbian image package written with Win32DiskImager. Later, the system started to fail, and it still persisted after rewriting. After several times, I decisively changed to a 16G TF card.

But I feel that the raspbian system image package seems to be unstable, and the new card uses the Noobs installation package (December 2015 version).

Later, a camera was installed on the Raspberry Pi 2, and automatic timing capture pictures were uploaded to Baidu Cloud (2T space).

Installation method link: http://www.zhengyali.com/?p=126

But since we have made a mini server, why not continue to build the PHP platform and provide some other Data services.

The nginx php5 sqlite solution was selected, but except for php5-fpm, the other installations were all normal.

It prompts that a large number of dependent packages are not installed, but when installing the dependent packages, it appears that they are already installed or there are errors.

Find software sources online and update the software source URLs in each sources.list.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5-fpm

Including using official sources, the error remains.

After struggling for two weeks, there is really no other way. Download the php5-fpm_5.4.45-0 deb7u2.armhf.deb installation package and install it manually.

An error occurred and cannot be continued. It was automatically deleted after using upgrade.

Still looking for problems in the software source, go back to "Raspberry Pi Lab" and find the article "raspbian China Software Source", the link is as follows: http://shumeipai.nxez.com/2013/08 /31/raspbian-chinese-software-source.html

The article adds a sentence at the end:

Now that the version has been upgraded, the version number needs to be changed. Change wheezy to jessie so that most of the sources are In China, otherwise, most of the upgrades like the ones above come from abroad.

Decisively modify the wheezy in the software source to jessie

What to do if the Raspberry Pi php5 installation fails

Update, upgrade, and install php5-fpm successfully!

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of What to do if the Raspberry Pi php5 installation fails. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
php5和php8有什么区别php5和php8有什么区别Sep 25, 2023 pm 01:34 PM

php5和php8的区别在性能、语言结构、类型系统、错误处理、异步编程、标准库函数和安全性等方面。详细介绍:1、性能提升,PHP8相对于PHP5来说在性能方面有了巨大的提升,PHP8引入了JIT编译器,可以对一些高频执行的代码进行编译和优化,从而提高运行速度;2、语言结构改进,PHP8引入了一些新的语言结构和功能,PHP8支持命名参数,允许开发者通过参数名而不是参数顺序等等。

树莓派的五种奇特的用途树莓派的五种奇特的用途Jul 09, 2023 pm 02:10 PM

最近,我在一个电话会议上听到有人说开源社区是好奇心和解决问题的文化的结合。好奇心是我们解决问题的基础。在解决各种规模的问题时,我们使用了大量的开源工具,其中包括在功能极为方便的树莓派上运行的Linux。我们每个人都有各种不同的生活经历,所以我向我们的作者社区询问了他们所遇到的最奇特的树莓派用途。我有一种预感,这些令人惊奇的构建将会为其他人激发灵感。使用树莓派进行实验对我来说,树莓派是在家庭网络中增加额外开发资源的绝佳工具。如果我想要创建一个新的网站或者尝试一个新的软件工具,我不必让我的桌面Lin

在不到 30 分钟内构建一个树莓派监控仪表盘在不到 30 分钟内构建一个树莓派监控仪表盘Jul 16, 2023 pm 08:50 PM

如果你想知道你的树莓派的性能如何,那么你可能需要一个树莓派的仪表盘。在本文中,我将演示如何快速构建一个按需监控仪表盘,以实时查看你的树莓派的CPU性能、内存和磁盘使用情况,并根据需要随时添加更多视图和操作。如果你已经使用Appsmith,你还可以直接导入示例应用程序并开始使用。AppsmithAppsmith是一个开源的低代码应用构建工具,帮助开发人员轻松快速地构建内部应用,如仪表盘和管理面板。它是一个用于仪表盘的很好选择,并减少了传统编码方法所需的时间和复杂性。在此示例的仪表盘中,我显示以下统

php5如何改80端口php5如何改80端口Jul 24, 2023 pm 04:57 PM

php5改80端口的方法:1、编辑Apache服务器的配置文件中的端口号;2、辑PHP的配置文件以确保PHP在新端口上工作;3、重启Apache服务器,PHP应用程序将开始在新的端口上运行。

用 Lua 控制你的树莓派用 Lua 控制你的树莓派Jun 10, 2023 am 09:07 AM

Lua是一种有时会被误解的语言。它与Python等其他语言不同,但它是一种通用的扩展语言,广泛用于游戏引擎、框架等。总的来说,我发现Lua对开发人员来说是一个有价值的工具,可以让他们以一些强大的方式增强和扩展他们的项目。你可以按照SethKenlon的文章《Lua值得学习吗?》的介绍下载并运行常用的Lua,该文章中还包括了简单的Lua代码示例。但是,要充分利用Lua,最好将它与采用该语言的框架一起使用。在本教程中,我演示了如何使用名为MakoServer的框架,该框架旨在使Lua程序员能够轻松地

php5没有监听9000端口如何解决php5没有监听9000端口如何解决Jul 10, 2023 pm 04:01 PM

php5没有监听9000端口解决方法步骤:1、检查PHP-FPM配置文件;2、重启PHP-FPM服务;3、关闭防火墙或配置端口转发;4、检查其他进程是否占用9000端口。

php7和php5语法有什么区别php7和php5语法有什么区别Jul 10, 2023 pm 03:25 PM

php7和php5语法区别有:1、PHP7引入了严格的类型声明,而PHP5变量的类型是隐式的;2、PHP7引入了对标量类型声明的支持,而PHP5并没有;3、PHP7引入了NULL合并运算符,而PHP5检查一个变量是否存在并且不为null,需要使用条件语句;4、PHP7添加了新的比较运算符“<=>”,而PHP5并没有;5、PHP7引入新特性匿名类,而PHP5并没有。

php7的版本和5有哪些不同php7的版本和5有哪些不同Sep 15, 2023 pm 04:11 PM

php7的版本和5的不同有性能提升、标量类型声明、返回值类型声明、异常处理改进、匿名类、语法改进、新的运算符、增强的错误处理和移除了一些旧特性等。详细介绍:1、性能提升,PHP7引入了全新的Zend引擎,名为Zend Engine 3.0,带来了显著的性能提升,PHP7的性能比PHP5提高了大约两倍,这主要是通过改进了内存管理、优化了函数调用和异常处理、增强了垃圾回收等等。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft