PDA

View Full Version : Enabling Curl getting Error



Gravis
12-27-2011, 07:46 PM
Well, I have been on with support with really no answer to the problem. I have installed a separate tracker which uses php_curl or curl to work correctly. I didn't see curl in a php info script so I went to my control panel and enabled the only curl that was in the list Net_curl. When I run the info script again it does have it enabled and everthing looks good. The stats site and scripts work good and bring forth the info needed to display. But I just happened to look in my error page for this module and it come with this error.

[27-Dec-2011 20:25:39] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_/home2/xxtremet/php/Net/Curl.php' - /usr/lib64/php/modules/php_/home2/<USER>/php/Net/Curl.php: cannot open shared object file: No such file or directory in Unknown on line 0

for that error I have in my php.ini file this extension cause that is the only place I can see any curl.so file at.
extension=php_/home2/<USER>/php/Net/Curl.php

When I had it just set to extension=curl.so it came back with this error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_curl.so' - /usr/lib64/php/modules/php_curl.so: cannot open shared object file: No such file or directory in Unknown on line 0

When I took a look in that directory there is no curl.so or even a php_curl.so file. After getting off the phone with support they had said I have to get the .so files and put them somewhere on my host server and have the extension point to it. First off have no idea where to get these folders and files. where in my server to put them and how to enable them cause we can't restart Apache. I am at a lost and I don't want this person to have to go to his error logs and have to delete this everyday. I am a bit new to this extensions so if it would be easier to hope on my teamspeak 3 server and chat away please e-mail me and I can send the IP and port. I hope someone knows what is going on thanks for the help.

Gravis
12-27-2011, 07:55 PM
[UPDATE]Sorry, Have to add this the folder that is /home2/<USER>/php/Net/ the curl file is not a .so but a .php file and if I maybe have to exec it not sure what I would type to run the file. As you can see I am really lost. I have tried to extension-/home2/<USER>/php/Net/Curl.php as well with nothing.

Gravis
12-28-2011, 06:07 PM
Seem to for the moment and I am crossing my fingers got the error fixed for cURL. All I did after reading forum after forum is instead of this command in my php.ini file

Old command: extension=php_curl.so

I just added ? to the front and end of the command like this.

New command: ?extension=php_curl.so?
Hope it stays working.