Can't get Curl working in Linux
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I can't get curl working in Arch Linux with php7
, i'm getting the following message:
Fatal error: Uncaught Error: Call to undefined function curl_init()
I have the curl
package installed and php
package updated, the curl.so
is present at /usr/lib/php/modules
.
In my php.ini
:
...
extension=curl.so
...
output of php -m
:
Core
ctype
date
dom
fileinfo
filter
hash
json
libxml
mbstring
mysqlnd
openssl
pcntl
pcre
PDO
Phar
posix
readline
Reflection
session
SimpleXML
SPL
standard
tokenizer
xml
xmlreader
xmlwriter
zlib
php curl
add a comment |Â
up vote
1
down vote
favorite
I can't get curl working in Arch Linux with php7
, i'm getting the following message:
Fatal error: Uncaught Error: Call to undefined function curl_init()
I have the curl
package installed and php
package updated, the curl.so
is present at /usr/lib/php/modules
.
In my php.ini
:
...
extension=curl.so
...
output of php -m
:
Core
ctype
date
dom
fileinfo
filter
hash
json
libxml
mbstring
mysqlnd
openssl
pcntl
pcre
PDO
Phar
posix
readline
Reflection
session
SimpleXML
SPL
standard
tokenizer
xml
xmlreader
xmlwriter
zlib
php curl
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I can't get curl working in Arch Linux with php7
, i'm getting the following message:
Fatal error: Uncaught Error: Call to undefined function curl_init()
I have the curl
package installed and php
package updated, the curl.so
is present at /usr/lib/php/modules
.
In my php.ini
:
...
extension=curl.so
...
output of php -m
:
Core
ctype
date
dom
fileinfo
filter
hash
json
libxml
mbstring
mysqlnd
openssl
pcntl
pcre
PDO
Phar
posix
readline
Reflection
session
SimpleXML
SPL
standard
tokenizer
xml
xmlreader
xmlwriter
zlib
php curl
I can't get curl working in Arch Linux with php7
, i'm getting the following message:
Fatal error: Uncaught Error: Call to undefined function curl_init()
I have the curl
package installed and php
package updated, the curl.so
is present at /usr/lib/php/modules
.
In my php.ini
:
...
extension=curl.so
...
output of php -m
:
Core
ctype
date
dom
fileinfo
filter
hash
json
libxml
mbstring
mysqlnd
openssl
pcntl
pcre
PDO
Phar
posix
readline
Reflection
session
SimpleXML
SPL
standard
tokenizer
xml
xmlreader
xmlwriter
zlib
php curl
edited Mar 24 at 17:07
jasonwryan
46.6k14127175
46.6k14127175
asked Mar 24 at 16:49
vaati
162
162
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
You need to check extensions path:
# php -r "phpinfo();"|grep extension
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules
Maybe curl.so
must be located in another path (i.e. /usr/lib64/php/modules
).
Also you need to check if curl
library libcurl
exists.
php-config --extension-dir
shows me/usr/lib/php/modules
â vaati
Mar 24 at 17:25
Have you installedphp
from packages or build it from source?
â Yurij Goncharuk
Mar 24 at 17:29
installed from official repository, withpacman -S php
â vaati
Mar 24 at 17:38
I've just updated answer aboutlibcurl
.
â Yurij Goncharuk
Mar 24 at 17:39
Sorry If my suggestions is not worked in Arch. I try to help you from Centos 7. After removinglibcurl
package, myphp -m
doesn't show mecurl
module. So, I assume that you not havelibcurl
.
â Yurij Goncharuk
Mar 24 at 17:44
 |Â
show 2 more comments
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You need to check extensions path:
# php -r "phpinfo();"|grep extension
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules
Maybe curl.so
must be located in another path (i.e. /usr/lib64/php/modules
).
Also you need to check if curl
library libcurl
exists.
php-config --extension-dir
shows me/usr/lib/php/modules
â vaati
Mar 24 at 17:25
Have you installedphp
from packages or build it from source?
â Yurij Goncharuk
Mar 24 at 17:29
installed from official repository, withpacman -S php
â vaati
Mar 24 at 17:38
I've just updated answer aboutlibcurl
.
â Yurij Goncharuk
Mar 24 at 17:39
Sorry If my suggestions is not worked in Arch. I try to help you from Centos 7. After removinglibcurl
package, myphp -m
doesn't show mecurl
module. So, I assume that you not havelibcurl
.
â Yurij Goncharuk
Mar 24 at 17:44
 |Â
show 2 more comments
up vote
0
down vote
You need to check extensions path:
# php -r "phpinfo();"|grep extension
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules
Maybe curl.so
must be located in another path (i.e. /usr/lib64/php/modules
).
Also you need to check if curl
library libcurl
exists.
php-config --extension-dir
shows me/usr/lib/php/modules
â vaati
Mar 24 at 17:25
Have you installedphp
from packages or build it from source?
â Yurij Goncharuk
Mar 24 at 17:29
installed from official repository, withpacman -S php
â vaati
Mar 24 at 17:38
I've just updated answer aboutlibcurl
.
â Yurij Goncharuk
Mar 24 at 17:39
Sorry If my suggestions is not worked in Arch. I try to help you from Centos 7. After removinglibcurl
package, myphp -m
doesn't show mecurl
module. So, I assume that you not havelibcurl
.
â Yurij Goncharuk
Mar 24 at 17:44
 |Â
show 2 more comments
up vote
0
down vote
up vote
0
down vote
You need to check extensions path:
# php -r "phpinfo();"|grep extension
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules
Maybe curl.so
must be located in another path (i.e. /usr/lib64/php/modules
).
Also you need to check if curl
library libcurl
exists.
You need to check extensions path:
# php -r "phpinfo();"|grep extension
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules
Maybe curl.so
must be located in another path (i.e. /usr/lib64/php/modules
).
Also you need to check if curl
library libcurl
exists.
edited Mar 24 at 17:37
answered Mar 24 at 17:13
Yurij Goncharuk
2,2582521
2,2582521
php-config --extension-dir
shows me/usr/lib/php/modules
â vaati
Mar 24 at 17:25
Have you installedphp
from packages or build it from source?
â Yurij Goncharuk
Mar 24 at 17:29
installed from official repository, withpacman -S php
â vaati
Mar 24 at 17:38
I've just updated answer aboutlibcurl
.
â Yurij Goncharuk
Mar 24 at 17:39
Sorry If my suggestions is not worked in Arch. I try to help you from Centos 7. After removinglibcurl
package, myphp -m
doesn't show mecurl
module. So, I assume that you not havelibcurl
.
â Yurij Goncharuk
Mar 24 at 17:44
 |Â
show 2 more comments
php-config --extension-dir
shows me/usr/lib/php/modules
â vaati
Mar 24 at 17:25
Have you installedphp
from packages or build it from source?
â Yurij Goncharuk
Mar 24 at 17:29
installed from official repository, withpacman -S php
â vaati
Mar 24 at 17:38
I've just updated answer aboutlibcurl
.
â Yurij Goncharuk
Mar 24 at 17:39
Sorry If my suggestions is not worked in Arch. I try to help you from Centos 7. After removinglibcurl
package, myphp -m
doesn't show mecurl
module. So, I assume that you not havelibcurl
.
â Yurij Goncharuk
Mar 24 at 17:44
php-config --extension-dir
shows me /usr/lib/php/modules
â vaati
Mar 24 at 17:25
php-config --extension-dir
shows me /usr/lib/php/modules
â vaati
Mar 24 at 17:25
Have you installed
php
from packages or build it from source?â Yurij Goncharuk
Mar 24 at 17:29
Have you installed
php
from packages or build it from source?â Yurij Goncharuk
Mar 24 at 17:29
installed from official repository, with
pacman -S php
â vaati
Mar 24 at 17:38
installed from official repository, with
pacman -S php
â vaati
Mar 24 at 17:38
I've just updated answer about
libcurl
.â Yurij Goncharuk
Mar 24 at 17:39
I've just updated answer about
libcurl
.â Yurij Goncharuk
Mar 24 at 17:39
Sorry If my suggestions is not worked in Arch. I try to help you from Centos 7. After removing
libcurl
package, my php -m
doesn't show me curl
module. So, I assume that you not have libcurl
.â Yurij Goncharuk
Mar 24 at 17:44
Sorry If my suggestions is not worked in Arch. I try to help you from Centos 7. After removing
libcurl
package, my php -m
doesn't show me curl
module. So, I assume that you not have libcurl
.â Yurij Goncharuk
Mar 24 at 17:44
 |Â
show 2 more comments
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f433285%2fcant-get-curl-working-in-linux%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password