网站是使用ecshop架设的,在后台配置邮箱信息时提示“服务器没有开起fsockopen”,查看了相关文档,并结合php的环境lnmp,发现lnmp对php的某些函数进行了限制使用,解决办法就是从禁止使用函数列表里面去除该函数名。 具体操作方法: 编辑/usr/local/php/etc/
网站是使用ecshop架设的,在后台配置邮箱信息时提示“服务器没有开起fsockopen”,查看了相关文档,并结合php的环境lnmp,发现lnmp对php的某些函数进行了限制使用,解决办法就是从禁止使用函数列表里面去除该函数名。
具体操作方法:
编辑/usr/local/php/etc/php.ini 查找disable_functions 将里面的fsockopen 去掉执行: /etc/init.d/php-fpm restart
重启完后直接可以使用fsockopen,其他的函数也可以参考此方法,先检查一下有没有被配置文件给禁用了
原文地址:lnmp开启fsockopen()函数, 感谢原作者分享。

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

WebStorm Mac version
Useful JavaScript development tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Zend Studio 13.0.1
Powerful PHP integrated development environment

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function
