缺少 openssl 扩展(Composer 安装 openSUSE)

openssl extension is missing (Composer installation openSUSE)

从composer网站下载composer安装文件后 我尝试使用命令安装它:

 ~> php installer

输出:

Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:

The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl

我修改了php.ini文件,删除了extension=php_openssl.dll前面的; 然后我重新启动了我的 apache2 服务器,但它仍然是相同的错误消息。

问题已解决。

尝试输入命令

$ zypper install php5-openssl