Hướng dẫn what should be in my php ini file? - những gì nên có trong tệp php ini của tôi?
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#2
#3
#4
Top 6 thử thách thần chết thuyết minh phần 2 20235 tháng trước#5
#6
Top 5 áo khoác nam quảng châu cao cấp 20235 tháng trước#7
#8
Top 9 mẫu đồng phục công sở đẹp 2022 20235 tháng trước#9
Top 5 ốp lưng iphone 13 pro bảo vệ camera 20235 tháng trướcQuảng cáoXem NhiềuQuảng cáoChúng tôiTrợ giúpBản quyền © 2021 boxhoidap.com Inc.
|
2 replies