使用Nginx在OpenSuse上启用php5-curl [英] Enable php5-curl on OpenSuse with Nginx
问题描述
我有带有用于Web服务器的nginx的OpenSuse Server 10.3.
I have OpenSuse Server 10.3 with nginx for web server.
我需要启用php5-curl.已成功安装.然后重新启动Web服务器,但没有任何变化.
I need to enable php5-curl. Installed it successfully. Then restarted web server, but nothing changed.
有什么想法吗?
谢谢
推荐答案
您可能实际上尚未加载该扩展.查看您的phpinfo(),找出PHP在哪里寻找.ini文件.如果您有一个标有扫描此目录以查找其他.ini文件"之类的部分,请在该目录中创建一个新文件("curl.ini"),并使用以下一行:
You probably didn't actually load the extension yet. Look at your phpinfo() to find out where PHP is looking for .ini files. If you have a section labelled something like "Scan this dir for additional .ini files", then make a new file in that directory ('curl.ini') with the single line:
extension=curl.so
如果没有扫描"目录,请查找已加载的配置文件",并将同一行附加到该文件的末尾.
If you don't have a 'Scan' dir, look for 'Loaded Configuration File' and append the same line to the end of that file.
这篇关于使用Nginx在OpenSuse上启用php5-curl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!