linux - Do I have to manually install extensions after installing php7?
滿天的星座
滿天的星座 2017-06-15 09:22:07
0
4
948

php7 Why are there no basic extensions such as mysqli pdo? Did you install it manually after installing php7? I used to use the integrated environment and now I want to install it separately. But after installing php7, I found that there are no extensions and it is difficult to install an extension. If it's so troublesome, I would like to ask those who install php7 alone how do you install extensions? Under linux

滿天的星座
滿天的星座

reply all(4)
左手右手慢动作

This machine is Debian, with the source of Dotdeb added (Tsinghua tuna has a mirror)

If it’s Ubuntu. You also need to add the source:
Ubuntu uses this: add-apt-repository ppa:ondrej/php (if you don’t understand, just paste it and search to find a bunch of tutorials)

In short, the default sources of the system are relatively old. If you want to use the new version, you have to add the apt source yourself.
In addition, swoole needs to be installed with pecl, which perfectly supports php7

Peter_Zhu

This is the difference between an integrated environment and a non-integrated environment. It has nothing to do with PHP7, right?

Official expansion, you can use package management such as apt to install, it is very convenient and hassle-free

If you cannot use package management, you can also compile and install the PHP7 expansion package yourself

曾经蜡笔没有小新

Did you install it with one click using yum? It is best to compile and install. Just bring all the extensions when configuring. You can refer to:
LNMP compilation and installation

大家讲道理

Run php -m and you will know how many extensions have been installed.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!