Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

PHP Startup error

Started by Muut Archive 12 years ago · 6 replies · 475 views
12 years ago

I get randomly this error:
PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/rar.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/rar.so: cannot open shared object file: No such file or directory
The problem is in the Hosting service server or in the CMS?

Thank you

12 years ago

That's definitely a server configuration issue. rar.so is loading rar extracting support in to PHP. This is not something needed or used by Grav.

12 years ago

The hosting service provider deny any server error. Their solution is to change the CMS because is unsupported and there isn't any issue wth their server using Joomla or Wordpress... How this can be possible?

12 years ago

Can the composer.phar be involved? I've found RarArchive references into it

12 years ago

<?php
system('php bin/composer.phar --working-dir="path" --no-interaction --no-dev --prefer-dist -o install');

?>

With "path" the grav install dir triggers the error

12 years ago

If composer.phar is using RAR internally, that still means your hosting provider has it defined in the system's php.ini which is advertising that its available to use, when in fact its missing.

The fact that it runs joomla/wordpress without issue, only means that those are not making use of any rar-based command.

The error clearly states it's a missing file issue, and that can only come from the php.ini, which means its a server issue.

Basically it's still a misconfiguration of your hosting provider, and if they are saying otherwise, they don't know what they are talking about and you really should look for a more knowledgable provider.

12 years ago

As suggested by Gert, you can also try to run php -v from the shell prompt and see if that reports any errors

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 672 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5336 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago