Enable php5-curl on OpenSuse with Nginx

2019-05-25 21:39发布

I have OpenSuse Server 10.3 with nginx for web server.

I need to enable php5-curl. Installed it successfully. Then restarted web server, but nothing changed.

Any ideas?

Thank you

标签: php nginx
1条回答
再贱就再见
2楼-- · 2019-05-25 22:15

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.

查看更多
登录 后发表回答