• Resolved deanrguenther

    (@deanrguenther)


    I was trying to install Really Simple SSL and it looks like curl is not installed. However, an “apt list” shows it is installed and matches the php installed version:

    php/focal,now 2:7.4+75 all [installed]
    php7.4-curl/focal-updates,focal-security 7.4.3-4ubuntu2.24 amd64

    Here is a portion of the WP “site info” page (if needed I can post the whole thing)

    version: 6.7.1
    multisite: true
    server_architecture: Linux 6.5.13-1-pve x86_64
    httpd_software: Apache/2.4.41 (Ubuntu)
    php_version: 7.4.3-4ubuntu2.19 64bit
    curl_version: not available

    There are 2 php.ini file on the system
    cli/php.ini
    apache2/php.ini

    I didn’t know which one was supposed to have the comment removed from “extension=curl” so I just removed the comment from both files and rebooted.

    Still it says perl is not available. What am I missing? thanks

    Dean Guenther

Viewing 2 replies - 1 through 2 (of 2 total)
    • After modifying the php.ini file, you must restart the web server to apply the changes. For Apache, execute the following command: sudo systemctl restart apache2 For Nginx and PHP-FPM, execute: sudo systemctl restart php7.4-fpm Ensure the relevant services have been restarted correctly.
    • Check the server error logs: Review the server error logs, which may provide more insights into the issue. For Apache, the error log is typically located at /var/log/apache2/error.log. Check for any error messages related to cURL or PHP.
    Thread Starter deanrguenther

    (@deanrguenther)

    Thanks Hank, I had remembered to reboot after modifying the php.ini. But I had NOT thought of checking the apache logs. They said the curl shared object was missing. And sure enough it wasn’t there. So I did

    apt update
    apt reinstall php7.4-curl

    And now curl is available. thanks Hank

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.