Portable Uwamp / Apache PHP.ini and Curl
devo <[email protected]> Sun, 30 Apr 2017 11:26:26 +0100
| Newsgroups | gmane.comp.php.windows |
|---|---|
| Message-ID | <[email protected]> |
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 ?
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php