I am trying to set up my company's m365 tenant's support email connection to osTicket. I was prompted to install the OAuth2 extension in the process, so I scpd the zip file from github onto the Ubuntu VM that we are hosting osTicket on, unzipped the extension to the home directory and tried to run 'php make.php hydrate', but I get this error thrown.
PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /home/osticketAdmin/osTicket-plugins-develop/make.php:538
Stack trace:
#0 /home/osticketAdmin/osTicket-plugins-develop/make.php(669): PluginBuilder->_http_get()
#1 /home/osticketAdmin/osTicket-plugins-develop/make.php(665): PluginBuilder->getComposer()
#2 /home/osticketAdmin/osTicket-plugins-develop/make.php(714): PluginBuilder->ensureComposer()
#3 /home/osticketAdmin/osTicket-plugins-develop/make.php(459): PluginBuilder->resolveDependencies()
#4 /home/osticketAdmin/osTicket-plugins-develop/make.php(340): PluginBuilder->_hydrate()
#5 /home/osticketAdmin/osTicket-plugins-develop/make.php(240): PluginBuilder->run()
#6 /home/osticketAdmin/osTicket-plugins-develop/make.php(732): Module->_run()
#7 {main} thrown in /home/osticketAdmin/osTicket-plugins-develop/make.php on line 538
I did some looking around and this kind of error only seems to be thrown if I'm missing php extensions, but I verified that I have the curl, imap, apcu, intl, cgi, mbstring, gd, mysql, bcmath, and xml extensions all installed.
/var/log/apache2/error.log says this.
[Wed Feb 05 00:00:02.387462 2025] [mpm_prefork:notice] [pid 926] AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal operations
[Wed Feb 05 00:00:02.387486 2025] [core:notice] [pid 926] AH00094: Command line: '/usr/sbin/apache2'
[Wed Feb 05 19:46:49.711548 2025] [mpm_prefork:notice] [pid 926] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Feb 05 19:46:49.850556 2025] [mpm_prefork:notice] [pid 39782] AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal operations
[Wed Feb 05 19:46:49.850625 2025] [core:notice] [pid 39782] AH00094: Command line: '/usr/sbin/apache2'
[Wed Feb 05 19:48:18.827172 2025] [mpm_prefork:notice] [pid 39782] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Feb 05 19:48:19.002082 2025] [mpm_prefork:notice] [pid 41347] AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal operations
[Wed Feb 05 19:48:19.002142 2025] [core:notice] [pid 41347] AH00094: Command line: '/usr/sbin/apache2'
[Wed Feb 05 19:49:55.348165 2025] [mpm_prefork:notice] [pid 41347] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Feb 05 19:49:55.469879 2025] [mpm_prefork:notice] [pid 41711] AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal operations
[Wed Feb 05 19:49:55.469940 2025] [core:notice] [pid 41711] AH00094: Command line: '/usr/sbin/apache2'
Does anyone know why the OAuth2 installation would be giving me this much trouble? I'm almost tempted to remove php and do a fresh install of it, but I don't know how that would impact the rest of the system.
Edit: For context, I just finished a fresh install of osTicket on our VM.