• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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