# PHP Startup: Unable to load dynamic library

**URL:** <https://forum.getkirby.com/t/php-startup-unable-to-load-dynamic-library/6572>\
**Category:** Questions\
**Tags:** v2\
**Created:** [February 8, 2017, 6:55pm UTC](https://forum.getkirby.com/t/php-startup-unable-to-load-dynamic-library/6572 "2017-02-08T18:55:35Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![waltercolindres](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/waltercolindres/32/973_2.png) [@waltercolindres](https://forum.getkirby.com/u/waltercolindres)\
**Post date:** [February 8, 2017, 6:55pm UTC](https://forum.getkirby.com/t/php-startup-unable-to-load-dynamic-library/6572/1 "2017-02-08T18:55:35Z")

</div>

PHP Startup: Unable to load dynamic library ‘/usr/local/php-7.0.6/lib/php/20151012/zip.so’ - /usr/local/php-7.0.6/lib/php/20151012/zip.so: cannot open shared object file: No such file or directory

[http://experiments.waltercolindres.com/panel/login](http://experiments.waltercolindres.com/panel/login)

Runs great on local machine. Errors out when I push to server for testing. My guess is that the server is misconfigured. Any thoughts?

Local MAMP: 5.6.10  
I think we are running 7 on the server.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 8, 2017, 7:26pm UTC](https://forum.getkirby.com/t/php-startup-unable-to-load-dynamic-library/6572/2 "2017-02-08T19:26:39Z")

</div>

There seems to be this `zip.so` file missing on your server. Since this is a PHP startup error, it has nothing to do with Kirby.

You could check your php.ini file and either comment out the line that tries to load the module, or add the correct path to the module.

---

<div class="post-metadata">

**Author:** ![waltercolindres](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/waltercolindres/32/973_2.png) [@waltercolindres](https://forum.getkirby.com/u/waltercolindres)\
**Post date:** [February 8, 2017, 8:37pm UTC](https://forum.getkirby.com/t/php-startup-unable-to-load-dynamic-library/6572/3 "2017-02-08T20:37:27Z")

</div>

Could this be a plugin issue?

I am using uniform form plugin.

We went down to PHP 5.6 and this error came back:  
PHP Startup: Unable to load dynamic library ‘/usr/local/php-5.6.21/lib/php/20131226/zip.so’ - /usr/local/php-5.6.21/lib/php/20131226/zip.so: cannot open shared object file: No such file or directory

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 8, 2017, 8:46pm UTC](https://forum.getkirby.com/t/php-startup-unable-to-load-dynamic-library/6572/4 "2017-02-08T20:46:35Z")

</div>

This is a php error, so no, it shouldn’t go away. Does the error go away if you remove the plugin?

Edit: Interestingly, the error only appears when trying to load the panel, not when loading the frontend 🤔

---

<div class="post-metadata">

**Author:** ![waltercolindres](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/waltercolindres/32/973_2.png) [@waltercolindres](https://forum.getkirby.com/u/waltercolindres)\
**Post date:** [February 9, 2017, 1:04am UTC](https://forum.getkirby.com/t/php-startup-unable-to-load-dynamic-library/6572/5 "2017-02-09T01:04:26Z")

</div>

Exactly. Quite baffling. I did remove the plugins and it still failed. My guess is the installs my server does may not be adding some basic folders for PHP.

---

<div class="post-metadata">

**Author:** ![waltercolindres](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/waltercolindres/32/973_2.png) [@waltercolindres](https://forum.getkirby.com/u/waltercolindres)\
**Post date:** [February 9, 2017, 1:57am UTC](https://forum.getkirby.com/t/php-startup-unable-to-load-dynamic-library/6572/6 "2017-02-09T01:57:39Z")

</div>

Quick update: Installed a clean kirby instance and it still fails. Has to be a server config. Will dig in!

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 9, 2017, 9:27am UTC](https://forum.getkirby.com/t/php-startup-unable-to-load-dynamic-library/6572/7 "2017-02-09T09:27:49Z")

</div>

Have you checked if the [zip.so](http://zip.so) file exists where it is expected and commented out the line in the php.ini that tries to load it?

---

<div class="post-metadata">

**Author:** ![waltercolindres](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/waltercolindres/32/973_2.png) [@waltercolindres](https://forum.getkirby.com/u/waltercolindres)\
**Post date:** [February 9, 2017, 1:45pm UTC](https://forum.getkirby.com/t/php-startup-unable-to-load-dynamic-library/6572/8 "2017-02-09T13:45:46Z")

</div>

The folder is missing. However for fun I pushed the site to a clean Heroku repo and experienced a lot of issues.

I am running a test on a Heroku stack:  
remote: -----\> Bootstrapping…  
remote: -----\> Installing platform packages…  
remote: - php (5.6.28)  
remote: - ext-mbstring (bundled with php)  
remote: - apache (2.4.20)  
remote: - nginx (1.8.1)  
remote: -----\> Installing dependencies…  
remote: Composer version 1.2.4 2016-12-06 22:00:51

Issue is very similar to this: [Panel keeps logging me out](https://forum.getkirby.com/t/panel-keeps-logging-me-out/2747/7)

And the console shows the unexpected error for \<

Additionally, If I do not explicitly tell it composer to install ext-mbstring I can not reach the panel.

To login in I must click the login button twice.

I am running Kirby 2.4.1.

Site can be found here:

[https://gentle-peak-44833.herokuapp.com](https://gentle-peak-44833.herokuapp.com)

Gist:

> <https://gist.github.com/waltercolindres/2ec354b1902380bb09d691af67a8b094>

I did go back to my testing server and drop in a version running off of Kirby 2.3.1 and it works perfectly.

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [February 9, 2017, 8:30pm UTC](https://forum.getkirby.com/t/php-startup-unable-to-load-dynamic-library/6572/9 "2017-02-09T20:30:59Z")

</div>

Interestingly there is another issue that [is just the other way around](https://github.com/getkirby/panel/issues/977). To be honest I have no idea why either of those issues happen, Kirby doesn’t try to load any PHP modules on its own as far as I know.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 9, 2017, 8:37pm UTC](https://forum.getkirby.com/t/php-startup-unable-to-load-dynamic-library/6572/10 "2017-02-09T20:37:37Z")

</div>

> [@lukasbestle](#):
>
> Interestingly there is another issue that is just the other way around

Yes, that’s what I also wondered if these two issues might be related in any way. Unfortunately my research did not uncover any hint to what might be causing these startup errors.

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 4:52pm UTC](https://forum.getkirby.com/t/php-startup-unable-to-load-dynamic-library/6572/11 "2025-02-06T16:52:48Z")

</div>

Archived on February 6, 2025, 4:52pm UTC


