Beginner PHP, installation found the need to install several dependencies (like Php-a, Php-b, php-c), very irritable.
Excuse me:
- Why does PHP install so many dependent programs?
- What are the classic must-wear (such as PHP-FPM)?
- What are the differences between these dependencies?
Reply content:
Beginner PHP, installation found the need to install several dependencies (like Php-a, Php-b, php-c), very irritable.
Excuse me:
- Why does PHP install so many dependent programs?
- What are the classic must-wear (such as PHP-FPM)?
- What are the differences between these dependencies?
Strictly speaking, those are not dependencies, that's the function module.
Libcurl this is dependence.
PHP itself is divided into three things, php-cgi,php-cli and php-fpm,cgi and FPM general two select one to install, recommended fpm. CLI is the shell to execute PHP tools, generally as required to install, such as writing a PHP file into the crontab, the need for the CLI, but also a more practical function.
In addition, the Classic function module has Php-mysql,php-curl and so on. Mysql,mysqli,pdo,curl,gd,pear,xmlrpc,imagemagick typeface is the classic package, the prefix is different depending on the environment, may be php-, may be php5-. PDO is used to replace MySQL and mysqli connection databases, and curl is used for POST,GD to generate verification codes, pear and pecl for installing extensions, XMLRPC for communication, and imagemagic for image processing. Specific features, Apt-cache search php or Yum search PHP can appear a word of the function of the introduction.
Divided into so much more than just want to install the time to install only the functions needed to streamline.
If the conditions permit, then the full installation is understandable.