note 128153 added to install.pecl.windows
| From: | bk at kaelberer-aio dot de | Date: | Thu, 26 Jan 2023 18:28:25 +0000 |
| Subject: | note 128153 added to install.pecl.windows | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220109@lists.php.net to get a copy of this message | ||
In addition to the helpful comments of ferdnyc and dario: A few weeks ago I've set up a new W11
using PHP 8.1. (as a module) with Apache. It was working fine.
Today i wanted to install the PECL-extension php-amqp. This extension comes with two additional
files that are said to be placed in PHPs main directory. It worked fine running from the command
prompt but with Apache the extension failed with "Unable to load dynamic library
'amqp'".
I tried 100 ways to notate paths in php.ini and http.conf: c:, C:, \, \\, /, ". I also
installed a new PHP in the root to get rid of the space in the path. It did not help.
When reading dario's comment i stumbeled across him mentioning "path environment
variable". I checked that in Window's settings and I realized, that i had added PHP's
path to the USER'S path-settings, but not to the SYSTEM'S path. That is why it worked in
the command prompt but not when starting Apache as a service. After adding it there it worked fine.
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.158.213 (proxied: 2001:9e8:24a7:9c00:f850:8f4f:57ec:68c5)
----
Manual Page -- https://php.net/manual/en/install.pecl.windows.php
Edit -- https://main.php.net/note/edit/128153
Del: integrated -- https://main.php.net/note/delete/128153/integrated
Del: useless -- https://main.php.net/note/delete/128153/useless
Del: bad code -- https://main.php.net/note/delete/128153/bad+code
Del: spam -- https://main.php.net/note/delete/128153/spam
Del: non-english -- https://main.php.net/note/delete/128153/non-english
Del: in docs -- https://main.php.net/note/delete/128153/in+docs
Del: other reasons-- https://main.php.net/note/delete/128153
Reject -- https://main.php.net/note/reject/128153
Search -- https://main.php.net/manage/user-notes.php