Home Backend Development PHP Problem What to do if the Raspberry Pi php5 installation fails

What to do if the Raspberry Pi php5 installation fails

Dec 10, 2021 am 09:24 AM
php5 raspberry pie

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
Copy after login

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 of this Website
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

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What is the difference between php5 and php8 What is the difference between php5 and php8 Sep 25, 2023 pm 01:34 PM

The differences between php5 and php8 are in terms of performance, language structure, type system, error handling, asynchronous programming, standard library functions and security. Detailed introduction: 1. Performance improvement. Compared with PHP5, PHP8 has a huge improvement in performance. PHP8 introduces a JIT compiler, which can compile and optimize some high-frequency execution codes, thereby improving the running speed; 2. Improved language structure, PHP8 introduces some new language structures and functions. PHP8 supports named parameters, allowing developers to pass parameter names instead of parameter order, etc.

Five unique uses for the Raspberry Pi Five unique uses for the Raspberry Pi Jul 09, 2023 pm 02:10 PM

Recently, I heard someone on a conference call say that the open source community is a combination of curiosity and a culture of problem-solving. Curiosity is the basis of our problem solving. When solving problems of all sizes, we use a wide range of open source tools, including Linux running on the incredibly convenient Raspberry Pi. We all have different life experiences, so I asked our community of authors for the weirdest uses for a Raspberry Pi they've come across. I have a feeling these amazing builds will inspire others. Experimenting with a Raspberry Pi For me, the Raspberry Pi is a great tool for adding extra development resources to my home network. If I want to create a new website or try a new software tool, I don't have to let my desktop Lin

Build a Raspberry Pi monitoring dashboard in less than 30 minutes Build a Raspberry Pi monitoring dashboard in less than 30 minutes Jul 16, 2023 pm 08:50 PM

If you want to know how your Raspberry Pi is performing, then you probably need a Raspberry Pi dashboard. In this article, I'll demonstrate how to quickly build an on-demand monitoring dashboard to view your Raspberry Pi's CPU performance, memory, and disk usage in real time, and add more views and actions at any time as needed. If you already use Appsmith, you can also import the sample application directly and get started. Appsmith Appsmith is an open source low-code application building tool that helps developers easily and quickly build internal applications such as dashboards and admin panels. It is a great option for dashboards and reduces the time and complexity required by traditional coding methods. In this example dashboard, I display the following statistics

How to change port 80 in php5 How to change port 80 in php5 Jul 24, 2023 pm 04:57 PM

How to change port 80 in php5: 1. Edit the port number in the Apache server configuration file; 2. Edit the PHP configuration file to ensure that PHP works on the new port; 3. Restart the Apache server, and the PHP application will start running on the new port. run on the port.

Control your Raspberry Pi with Lua Control your Raspberry Pi with Lua Jun 10, 2023 am 09:07 AM

Lua is a language that is sometimes misunderstood. It is different from other languages ​​such as Python, but it is a general extension language that is widely used in game engines, frameworks, etc. Overall, I find Lua to be a valuable tool for developers, allowing them to enhance and extend their projects in some powerful ways. You can follow Seth Kenlon's article "Is Lua worth learning?" 》Introducing downloading and running commonly used Lua, the article also includes simple Lua code examples. However, to get the most out of Lua, it's best to use it with a framework that adopts the language. In this tutorial, I demonstrate how to use a framework called MakoServer, which is designed to enable Lua programmers to easily

What is the difference between php7 and php5 syntax What is the difference between php7 and php5 syntax Jul 10, 2023 pm 03:25 PM

The syntax differences between php7 and php5 are: 1. PHP7 introduces strict type declarations, while the type of PHP5 variables is implicit; 2. PHP7 introduces support for scalar type declarations, but PHP5 does not; 3. PHP7 introduces NULL Merge operator, while PHP5 checks whether a variable exists and is not null, you need to use a conditional statement; 4. PHP7 adds a new comparison operator "<=>", but PHP5 does not; 5. PHP7 introduces a new feature anonymous class , while PHP5 does not.

How to solve the problem that php5 is not listening on port 9000 How to solve the problem that php5 is not listening on port 9000 Jul 10, 2023 pm 04:01 PM

Solution steps for php5 not listening to port 9000: 1. Check the PHP-FPM configuration file; 2. Restart the PHP-FPM service; 3. Turn off the firewall or configure port forwarding; 4. Check whether other processes occupy port 9000.

How to change port 80 in php5 How to change port 80 in php5 Mar 21, 2023 pm 04:32 PM

​If you are a website administrator, you may encounter a situation where you need to change the PHP5 port from the default port 80. This process may be a little hurried, but as long as you follow the steps below, it will be easily completed.

See all articles