Search code examples
phpazurepearpecllibsodium

Installation of Libsodium on a Azure Web App


I've been trying to install Libsodium on my PHP Web App in Azure, but there's a few permission issues that I've encounted.
I've been following this link here to try and install it: https://paragonie.com/book/pecl-libsodium/read/00-intro.md#installing-libsodium but it requires me to place the libsodium.dll file into the same directory as the php.exe file - where I obviously don't have the correct permissions to write into, which is probably the cause of this error in the command line:

ERROR: The DSP libsodium.dsp does not exist.

Any ideas?

Thanks in advance


Solution

  • I suspect you tried to install the extension with pecl install libsodium, which is hard to get working on Windows.

    This is the reason that you're advised to download the .dll and use that. Even if you would get pecl install libsodium to work, it would also only have created a .dll file that you need to activate in PHP.

    So you're lost until you get write access to that php.exe directory.