Another day, another dedicated server. This time, one running Uniserver Zero XIII. Client wanted to stop using the standard Unicontroller as logging in after a reboot to start the webserver was a pain and wanted use the UniService plugin instead.
Downloading and installing the service plugin was fine, however when attempting to browse certain Wordpress sites we were receiving the following error:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:/UniServerZ/core/php56/extensions/php_curl.dll' - The specified module could not be found.\r\n in Unknown on line 0
For some reason, the UniServer plugin is unable to load the php_curl.dll file - it appears to be related to other assemblies that this file uses.
The fix was to add the PHP folder to the system path variable. To do this,
1. Bring up the system properties
2. Go to "Advanced System Settings"
3. click on the option that says "Environmental Variables"
4. Scroll down the "System Variables" list and find Path
5. Click "edit" and at the end of the variable, add ; c:\uniserverz\core\php56
Depending on your path and PHP version, you may need to alter it (for example d:\uniserver\core\php71 if you are running PHP 7.1 with an extraction on the D: in Uniserver)
Once done, click OK and close the window - restart the Apache service and it should be working
Downloading and installing the service plugin was fine, however when attempting to browse certain Wordpress sites we were receiving the following error:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:/UniServerZ/core/php56/extensions/php_curl.dll' - The specified module could not be found.\r\n in Unknown on line 0
For some reason, the UniServer plugin is unable to load the php_curl.dll file - it appears to be related to other assemblies that this file uses.
The fix was to add the PHP folder to the system path variable. To do this,
1. Bring up the system properties
2. Go to "Advanced System Settings"
3. click on the option that says "Environmental Variables"
4. Scroll down the "System Variables" list and find Path
5. Click "edit" and at the end of the variable, add ; c:\uniserverz\core\php56
Depending on your path and PHP version, you may need to alter it (for example d:\uniserver\core\php71 if you are running PHP 7.1 with an extraction on the D: in Uniserver)
Once done, click OK and close the window - restart the Apache service and it should be working