What should I do if there is no php.ini in Linux?

藏色散人
Release: 2023-03-14 06:44:01
Original
2454 people have browsed it

The solution to the problem that Linux does not have php.ini: 1. Enter the php source package directory; 2. Copy php.ini-development or php.ini-production to the lib folder; 3. Rename it to php.ini is enough.

What should I do if there is no php.ini in Linux?

The operating environment of this article: linux5.9.8 system, php-5.6.15, Dell G3.

linux What should I do if there is no php.ini?

Linux cannot find php.ini after installing php

1. Enter the php source code package directory , that is, the directory where you download and decompress the php source code package. Generally, we usually download the source code package to the /usr/src/ directory. My decompression directory is: /usr/src/php-5.6. 15/View all files in this directory, you will find two files in it:

php.ini-development

and php.ini-production

2. Copy php.ini-development or php.ini-production to the lib folder in the PHP installation directory

/usr/local/php/lib and rename it For php.ini,

commands such as:

cp php.ini-production /usr/local/php/lib php.ini
Copy after login

Recommended learning: "

PHP Video Tutorial

"

The above is the detailed content of What should I do if there is no php.ini in Linux?. 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
Popular Tutorials
More>
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!