Connection to `ssl://pear.php.net:443' failed:

KenHorse

Member
As the title says. I'm trying to install the dio-0.2.0 package (Raspian Buster) and first did a pecl list-all and the above was returned

Help?
 
If you are trying to install the dio package in Raspbian Buster, you can follow these steps:

  1. Install the necessary dependencies:
sudo apt-get install php7.3-dev

  1. Install the dio package using PECL:

sudo pecl install dio-0.2.0

  1. Once the installation is complete, you need to enable the extension by adding it to your PHP configuration. Create a new file called dio.ini in the /etc/php/7.3/mods-available/ directory:
sudo nano /etc/php/7.3/mods-available/dio.ini

  1. Add the following line to the dio.ini file to enable the extension:
extension=dio.so

  1. Save and exit the file.
  2. Create a symbolic link to enable the dio extension:
sudo ln -s /etc/php/7.3/mods-available/dio.ini /etc/php/7.3/cli/conf.d/20-dio.ini
sudo ln -s /etc/php/7.3/mods-available/dio.ini /etc/php/7.3/apache2/conf.d/20-dio.ini

  1. Restart the PHP and Apache services:



sudo service php7.3-fpm restart
sudo service apache2 restart

After following these steps, the dio extension should be installed and enabled in your PHP configuration.
Please note that the version numbers mentioned in the commands (7.3) may need to be adjusted based on the PHP version you have installed on your system.
 
Back
Top