• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Installing rar.so extension for PHP 7.4

massimo

New Pleskian
Hi everyone,
I have been struggling trying to install the RAR extension for PHP in Plesk Obsidian 18.
I need it for PHP 7.4.

I have followed this guide (Adding Custom PHP Module in Plesk) and now I see it in the Extensions:
Capture.JPG
But when I try \RarArchive::eek:pen($path) it says Class 'RarArchive' not found. Why?
Also, I don't see RAR in phpinfo. Here you can see my phpinfo https://151.236.37.206/test/addPreviewToArchive

I am trying to install it on my test server, I need the RAR extension on my production server but I am afraid of breaking something.

Anyone got a better guide or can help me out?

Best,
Massimo.
 
Have you tried to install RarArchive as package name on the server if that exists? The error could be related to missing libraries. For example with GeoIP you have to install the Geo-Devel package and I believe for curl you need to install libcurl. I always try to install all *<name>* packages and see what it gets. For example with GeoIP I try to install GeoIP* and see what it tries to install.

edit: restart php, Apache and just in case nginx if you can do that and don’t give websites downtime.
 
Have you tried to install RarArchive as package name on the server if that exists? The error could be related to missing libraries. For example with GeoIP you have to install the Geo-Devel package and I believe for curl you need to install libcurl. I always try to install all *<name>* packages and see what it gets. For example with GeoIP I try to install GeoIP* and see what it tries to install.

edit: restart php, Apache and just in case nginx if you can do that and don’t give websites downtime.
Thanks for your kind answer. I’ll do some more research on the packages you are mentioning. If anyone happens to have a specific guide for the rar extension, I cannot seem to find anything at all about it!

Best,
Massimo.
 
Back
Top