Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

PHP Startup error

Started by Muut Archive 11 years ago · 6 replies · 267 views
11 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

11 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.

11 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?

11 years ago

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

11 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

11 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.

11 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 Deleted User, 9 years ago
0 1329 9 years ago
Archive · by Muut Archive, 9 years ago
2 922 9 years ago
Archive · by Muut Archive, 9 years ago
2 4051 9 years ago
Archive · by Muut Archive, 9 years ago
1 2930 9 years ago
Archive · by Muut Archive, 9 years ago
3 1108 9 years ago