In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to solve the problem of uploading the photo newspaper 500 error after installing the LNMP integration package. Xiaobian thinks it is quite practical, so share it with you as a reference. I hope you can gain something after reading this article.
View currently installed extensions
Enter the following command on the server:
/usr/local/php/bin/php -m
Check the installed modules, as shown below:
Installed modules
As can be seen from the above figure, the exif extension is not installed, because the display is sorted according to the first letter.
Enter the installation package directory for LNMP
1. cd lnmp1.3-full/2. cd src/3. php -v #Check the installed PHP version, and then extract the corresponding file 4. tar zxf php-7.0.7.tar.gz5. cd php-7.0.76. cd ext
The display is as follows:
Go to src directory
The interface after step 6 is displayed below, as shown in the figure:
Show extensions that need to be installed
Go to extended file directory
7. cd exif8. /usr/local/php/bin/phpize
The execution results are shown as follows:
Perform Step 8
compile and install
9. ./ configure --with-php-config=/usr/local/php/bin/php-config10. make && make install
See the text shown below to indicate successful installation.
installation is successful
introduction extension
The above extension has been successfully installed. Next, we need to introduce the extension into the php.ini file and execute the following command:
11. vim /usr/local/php/etc/php.ini12. #Find the last extension and add extension=exif.so13. #After saving, execute the command to restart the operation. /etc/init.d/php-fpm restart
Let's check if the exif extension has been successfully installed, or if you can use the command above to start checking installed modules, as shown in the figure:
Successfully installed exif extension
Now when we upload images again, there will be no 500 error.
About "How to solve the problem of uploading a photo newspaper 500 error after installing the LNMP integration package" This article is shared here. I hope the above content can be of some help to everyone so that you can learn more knowledge. If you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.