Enable php5-curl on OpenSuse with Nginx

2019-05-25 21:22发布

问题:

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

回答1:

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.



标签: php nginx