cURL only works if apache isnt running as System

Problems with the Windows version of XAMPP, questions, comments, and anything related.

cURL only works if apache isnt running as System

Postby dr_snapid » 11. February 2021 01:54

Hello friends

When I start apache, the log says:
PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: c:\\xampp\\php7\\ext\\curl (The specified module could not be found.), c:\\xampp\\php7\\ext\\php_curl.dll (The specified module could not be found.)) in Unknown on line 0

If i change the apache windows service to run as my user instead of System, it works fine.

I cannot see any difference in the permissions of php_curl.dll and the other DLLs, system user seems to have full control, same as administrators.

Does anyone have any ideas why curl fails to load when the apache service is running as the local system account?

Hope y'all are awesome
dr_snapid
 
Posts: 1
Joined: 11. February 2021 01:46
XAMPP version: 3.2.1
Operating System: Win10 x86

Re: cURL only works if apache isnt running as System

Postby Nobbie » 11. February 2021 10:27

Different environment variables, especially the crucial value of PATH variable.
Nobbie
 
Posts: 11916
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 73 guests