• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • 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.

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