Portable Uwamp / Apache PHP.ini and Curl

From: Date: Sun, 30 Apr 2017 10:26:26 +0000
Subject: Portable Uwamp / Apache PHP.ini and Curl
Groups: php.windows 
Request: Send a blank email to php-windows+get-31446@lists.php.net to get a copy of this message
Hi all Wonder if someone can explain how to get curl working when using a php.ini in the apache directory Using Uwamp also tried with MAMP I am trying to create a constant connection for a CLI (command line interface) with GRAV CMS Part of getting GRAV is to use a php file which require curl. The systax would be php ./bin/gpm <install/download/upgrade> <name of file/template/plugin> Using uwamp (portable) it create a PHP.INI in the apache directory from a custom PHP file named php_uwamp.ini when starting and running the server. Added the windows verable to path=c:\C:\Users\Nick\Desktop\Uwamp\bin\php \php-5.6.18 so it can find the php exectuable C:\Users\Nick\Desktop\Uwamp\www\skeleton>php -c C:\Users\Nick\Desktop \Uwamp\bin\apache ./bin/gpm --help if I run php ./bin/skeleton/gpm then I will recieve the error message FATAL: GPM requires PHP Curl module to be installed I have made sure in the php directory the php_unwamp.ini that the curl extentsion is loading {extension=C:/Users/Nick/Desktop/Uwamp/bin/php/php-5.6.18/ext \php_curl.dll} Thing that I have noticed is when I run http://localhost/uwamp/phpinfo.php configuration File (php.ini) Path C:\Windows Loaded Configuration File C:\Users\Nick\Desktop\Uwamp\bin\apache \php.ini just to confirm that if I use phpinfo, curl is listed and enabled. Which will be using the PHP.INI in the php\bin directory there is actually no PHP.INI but there is PHP_inital.ini (not sure if it get the values from there due to having the windows path pointing at the PHP directory (I dont know) So how can I correctly get this to work !! (lol) without thinking about using the php -c command everytime or am I overthinking this! is it just altering line in the php ini file so the configuration directory value is pointing at the apache directory ? Or is it the cscript of php or apache ?

« previous php.windows (#31446) next »