To install the PHP GD library using yum package manager, you can follow these steps:
Connect to your server via SSH.
Run the following command to update the yum repository:
sudo yum update
Install the PHP GD library by running the following command:
sudo yum install php-gd
After the installation is complete, restart the PHP-FPM service to apply the changes:
sudo systemctl restart php-fpm
Verify the installation by creating a PHP file with the following content:
<?php
phpinfo();
Save the file and access it through a web browser. Look for the GD section in the PHP info page to confirm that the GD library is installed.
Note: These instructions assume you are using a CentOS or Red Hat-based Linux distribution. If you are using a different distribution, the package name or commands may vary.
上一篇:PhP调微信扫码
下一篇:php函数返回对消
Laravel PHP 深圳智简公司。版权所有©2023-2043 LaravelPHP 粤ICP备2021048745号-3
Laravel 中文站