Hướng dẫn where is my php ini located? - php ini của tôi nằm ở đâu?
Show Last updated on June 7th, 2022 | 2 replies As there are multiple versions of PHP with different sever configurations, php.ini could be located in several different folders. Method 1One way to find out exactly which 0.info.php
Load this file in your browser, press 1 + 2 (or 3 + 2 on Mac) and search for “Loaded Configuration File”. You should see something like
This will tell you the exact location of the php.ini file you want to edit. Method 2In Linux, run this command to locate the 5 configuration
file.
Or in Windows Command Line:
The result should be something like this:
In the above example, we can see that the PHP install is located in 6. Note that there are three different configuration files you should we aware of:CLI 7 is for the CLI PHP program. Changes to this config file will only affect PHP as it runs in the terminal – it will NOT affect the web server.Apache 8
is for the PHP plugin used by Apache. This is the one you need to edit if you are using the Apache web server.Nginx or Apache with PHP-FPM 9 is a fastcgi-compatible ‘wrapper’ for PHP processing. This is the one you need to edit if you’re using the Nginx web server or Apache with PHP-FPM.Method 3Using the 0 command in Linux,. If it’s not already installed, run 1.You should see a list of php.ini files here. Try editing one of them and restarting you web server to see if makes the required changes. Editing php.ini in LinuxApacheOn Apache, 8. Replace 4 with your own version, e.g, 5, 6, etc.To edit:
However, if you are using PHP FPM, it may be located in 9. Replace 4 with your own
version, e.g, 5, 6, etc.To edit:
To save file and exit, press 1 + 2, press 3 and then press 4You must restart Apache after altering
If you are using PHP-FPM, you must restart that service. Replace 6 with your own version, e.g, 5, 6, etc.
Nginx or Apache with PHP-FPMNginx uses PHP FPM and
Save and exit (press You must restart Nginx after altering
Older VersionsFor versions of Ubuntu lower than 16.04, Let me know if this helped. Follow me on Twitter, Facebook and YouTube, or 🍊 buy me a smoothie. p.s. I increased my AdSense revenue by 200% using AI 🤖. Read my Ezoic review to find out how. Bài Viết Liên QuanQuảng CáoCó thể bạn quan tâmToplist được quan tâm#1
Top 7 sự tích hồ gươm - ngữ văn lớp 6 20235 tháng trước#2
Top 7 gdcd 6 bài 1 kết nối tri thức 20235 tháng trước#3
Top 7 ý nghĩa của xây dựng gia đình văn hóa 20236 tháng trước#4
Top 6 mẫu hợp đồng mượn đất làm nhà xưởng 20236 tháng trước#5
Top 3 tổng tài biến thái tôi yêu anh tập 27 20236 tháng trước#6
Top 6 kết thực phim mỹ nhân vô lệ 20236 tháng trước#7
#8
Top 8 đề tài và chủ de của tác phẩm tắt đèn 20236 tháng trước#9
Top 5 tiểu sử của thầy thích pháp hòa 20236 tháng trướcQuảng cáoXem NhiềuCó xét ngành nghề khi nhập khẩu hàng hóa năm 20243 ngày trướcChủng chuẩn e.coli atcc 25922 là gì năm 20248 giờ trướcPhần mềm khắc phụ lỗi wifi trên an năm 20243 ngày trướcTop hãng mặt nạ nội địa trung quốc năm 20241 tuần trướcHọc hỏi những điểm tốt tiếng anh là gì năm 20243 ngày trướcCường hóa lên thẳng 15 trong nháy mắt năm 20241 tuần trướcPhòng khám trung nguyện ở bình đại bến tre năm 20246 ngày trướcCải lương chi bảo là gì năm 20241 tuần trướcBài tập hỗn hợp kim loại tác dụng với hno3 năm 20244 ngày trướcQuảng cáoChúng tôiTrợ giúpBản quyền © 2021 Học Tốt Inc.
|
2 replies