What to do if the Raspberry Pi php5 installation fails

藏色散人
Release: 2023-03-14 11:54:01
Original
2279 people have browsed it

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!

Related labels:
source:php.cn
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!