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.
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
Recommended learning: "
PHP Video TutorialThe 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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SublimeText3 Linux new version
SublimeText3 Linux latest version

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
