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
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
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-freeDid 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.