Re: [PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-02 Thread Tamara Temple
Csanyi Pal csanyi...@gmail.com wrote:
 Tamara Temple tamouse.li...@gmail.com writes:
  Csanyi Pal csanyi...@gmail.com wrote:
  It is interesting.. that when I switch to English language for
  Moodle installation ( on the web interface ), then I get not this
  error, but if I switch back to Hungarian language for installation, I
  get it again. 
 
  I am completely unfamiliar with Moodle, have no idea what it is or how
  it works with I18n stuff. But, if it works in one language and not the
  other, the problem probably isn't with curl, or necessarily with the
  php configuration, either.
 
 It doesn't work in Englis language either, just at this step of Moodle
 installation on the web interface, it doesn't complain for the missing
 cURL extension. But, when I proceed with the installation in English
 language, I come to the step where it shows up again the missing cURL
 extension. 

Ah, I'm sorry, my misundertanding.

  When you switch to Hungarian, what are the actual errors you are
  seeing? 
  Stick the log in a gist or pastebin so it doesn't get mangled by
  email. 
 
 I get no error message at this step of Moodle installation, when I use
 Hungarian language.
 
  The info.php file with the content of:
  ?
   phpinfo();
  ?
  
  should show the enabled cURL extension?
 
  I missed this one, somehow.
 
  Yes, exactly, the cURL module should show up on phpinfo() output.
 
 Well, the phpinfo() output doesn't show up the cURL module yet.
 
 I have the following directories and files in the 
 
 /etc/php5/ directory:
 
  /apache2 directory with the content:
php.ini file
/conf.d subdirectory with the content:
  gd.ini
  ..
  xcache.ini
 
  But here I don't have
  curl.ini
  xmlrpc.ini
 
  and I think that that it should be here curl.ini, xmlrpc.ini
 
  Why is not here curl.ini?

My ../apache2/conf.d directory is a symlink to the ../conf.d
directory. This might indeed be the problem.

Not to make *your* ../apache2/conf.d a symlink, but to put symlinks
inside it to the .ini files you need in ../conf.d. Give that go, and
see? I'm sorry I'm not much better help -- this all came out of the box
the way I needed it and I didn't think about it much.

 
  /conf.d directory with the content:
@10-pdo.ini
@20-curl.ini
..
@20-xmlrpc.ini
ldap.ini
 
  /mods-available subdirectory with the files:
curl.ini
..
xmlrpc.ini
 
  /cgi directory
  /cli directory
 
 
 -- 
 Regards from Pal
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-02 Thread Csanyi Pal
Tamara Temple tamouse.li...@gmail.com writes:

 Csanyi Pal csanyi...@gmail.com wrote:
 Tamara Temple tamouse.li...@gmail.com writes:
  Csanyi Pal csanyi...@gmail.com wrote:
  It is interesting.. that when I switch to English language for
  Moodle installation ( on the web interface ), then I get not this
  error, but if I switch back to Hungarian language for installation, I
  get it again. 
 
  I am completely unfamiliar with Moodle, have no idea what it is or how
  it works with I18n stuff. But, if it works in one language and not the
  other, the problem probably isn't with curl, or necessarily with the
  php configuration, either.
 
 It doesn't work in Englis language either, just at this step of Moodle
 installation on the web interface, it doesn't complain for the missing
 cURL extension. But, when I proceed with the installation in English
 language, I come to the step where it shows up again the missing cURL
 extension. 

 Ah, I'm sorry, my misundertanding.

OK

  When you switch to Hungarian, what are the actual errors you are
  seeing? 
  Stick the log in a gist or pastebin so it doesn't get mangled by
  email. 
 
 I get no error message at this step of Moodle installation, when I use
 Hungarian language.
 
  The info.php file with the content of:
  ?
   phpinfo();
  ?
  
  should show the enabled cURL extension?
 
  I missed this one, somehow.
 
  Yes, exactly, the cURL module should show up on phpinfo() output.
 
 Well, the phpinfo() output doesn't show up the cURL module yet.
 
 I have the following directories and files in the 
 
 /etc/php5/ directory:
 
  /apache2 directory with the content:
php.ini file
/conf.d subdirectory with the content:
  gd.ini
  ..
  xcache.ini
 
  But here I don't have
  curl.ini
  xmlrpc.ini
 
  and I think that that it should be here curl.ini, xmlrpc.ini
 
  Why is not here curl.ini?

 My ../apache2/conf.d directory is a symlink to the ../conf.d
 directory. This might indeed be the problem.

Yes.
My system was Debian Squeeze and I just upgraded it to Debian
Wheezy. Some configuration files and directories remains from Squeeze
and probably cause this problem.

 Not to make *your* ../apache2/conf.d a symlink, but to put symlinks
 inside it to the .ini files you need in ../conf.d. Give that go, and
 see? I'm sorry I'm not much better help -- this all came out of the box
 the way I needed it and I didn't think about it much.

Yes, that help me out. Now the phpinfo() funktion gives the cURL module
enabled. 
 
  /conf.d directory with the content:
@10-pdo.ini
@20-curl.ini
..
@20-xmlrpc.ini
ldap.ini
 
  /mods-available subdirectory with the files:
curl.ini
..
xmlrpc.ini
 
  /cgi directory
  /cli directory

-- 
Regards from Pal


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-02 Thread Tamara Temple
Csanyi Pal csanyi...@gmail.com wrote:
 Tamara Temple tamouse.li...@gmail.com writes:
  My ../apache2/conf.d directory is a symlink to the ../conf.d
  directory. This might indeed be the problem.
 
 Yes.
 My system was Debian Squeeze and I just upgraded it to Debian
 Wheezy. Some configuration files and directories remains from Squeeze
 and probably cause this problem.

Okay, I've not made that particular upgrade; perhaps there something
that doesn't quite go along smoothly there.

  Not to make *your* ../apache2/conf.d a symlink, but to put symlinks
  inside it to the .ini files you need in ../conf.d. Give that go, and
  see? I'm sorry I'm not much better help -- this all came out of the box
  the way I needed it and I didn't think about it much.
 
 Yes, that help me out. Now the phpinfo() funktion gives the cURL module
 enabled. 

Excellent! 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Csanyi Pal
Adam Szewczyk adam...@gmail.com writes:

 On Sat, Jun 01, 2013 at 09:41:33PM +0200, Csanyi Pal wrote:
 Hi,
 
 I just upgraded Squeeze to Wheezy, and have difficulties with cURL PHP
 extension: I can't enable it.
 
 I have installed following packages related to this issue:
 curl, libcurl3, libcurl3-gnutls, php5-curl.
 
 I have in
 /etc/php5/mods-available/curl.ini
 ; configuration for php CURL module
 ; priority=20
 extension=curl.so
 
 I know that cURL extension is not enabled because I want to install
 Moodle and it complains about cURL extension.
 
 How can I solve this problem?

 Hi,

 what error message do you get?

 Also, have you restarted apache after installing the extension?

Yes, I have restarted apache after installing the extension.

It is interesting.. that when I switch to English language for
Moodle installation ( on the web interface ), then I get not this error,
but if I switch back to Hungarian language for installation, I get it
again. 

The info.php file with the content of:
?
 phpinfo();
?

should show the enabled cURL extension?

-- 
Regards from Pal


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Csanyi Pal
Tamara Temple tamouse.li...@gmail.com writes:

 Csanyi Pal csanyi...@gmail.com wrote:
 I have installed following packages related to this issue:
 curl, libcurl3, libcurl3-gnutls, php5-curl.

 All good.

 I have in
 /etc/php5/mods-available/curl.ini
 ; configuration for php CURL module
 ; priority=20
 extension=curl.so

 Have you enabled the extension as well? That looks like the standard
 set-up, which means that curl.ini is available, but you still have to
 enable it. Check in /etc/php5/conf.d to see if there's a symlink in
 there, otherwise look through the various bits to see if it's included
 somewhere in one of the stock php.ini files.

Yes, it's enabled, because I have in 
/etc/php5/conf.d/ directory the symbolic link
@20-curl.ini

that is pointing to
- ../mods-available/curl.ini

 If you make changes here, ensure you restart your sever.

I already restarted apache2 after I made changes there.

Still get error message when want to proceed with Moodle installation:
must be installed and enabled

The cURL PHP extension is now required by Moodle, in order to
communicate with Moodle repositories.

and it is not OK, the Moodle installation procedure can't find the cURL
extension. Why?

-- 
Regards from Pal


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Tamara Temple
Csanyi Pal csanyi...@gmail.com wrote:
 It is interesting.. that when I switch to English language for
 Moodle installation ( on the web interface ), then I get not this error,
 but if I switch back to Hungarian language for installation, I get it
 again. 

I am completely unfamiliar with Moodle, have no idea what it is or how
it works with I18n stuff. But, if it works in one language and not the
other, the problem probably isn't with curl, or necessarily with the php
configuration, either.

When you switch to Hungarian, what are the actual errors you are seeing?
Stick the log in a gist or pastebin so it doesn't get mangled by email.

 The info.php file with the content of:
 ?
  phpinfo();
 ?
 
 should show the enabled cURL extension?

I missed this one, somehow.

Yes, exactly, the cURL module should show up on phpinfo() output.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Csanyi Pal
Tamara Temple tamouse.li...@gmail.com writes:

 Csanyi Pal csanyi...@gmail.com wrote:
 It is interesting.. that when I switch to English language for
 Moodle installation ( on the web interface ), then I get not this
 error, but if I switch back to Hungarian language for installation, I
 get it again. 

 I am completely unfamiliar with Moodle, have no idea what it is or how
 it works with I18n stuff. But, if it works in one language and not the
 other, the problem probably isn't with curl, or necessarily with the
 php configuration, either.

It doesn't work in Englis language either, just at this step of Moodle
installation on the web interface, it doesn't complain for the missing
cURL extension. But, when I proceed with the installation in English
language, I come to the step where it shows up again the missing cURL
extension. 

 When you switch to Hungarian, what are the actual errors you are
 seeing? 
 Stick the log in a gist or pastebin so it doesn't get mangled by
 email. 

I get no error message at this step of Moodle installation, when I use
Hungarian language.

 The info.php file with the content of:
 ?
  phpinfo();
 ?
 
 should show the enabled cURL extension?

 I missed this one, somehow.

 Yes, exactly, the cURL module should show up on phpinfo() output.

Well, the phpinfo() output doesn't show up the cURL module yet.

I have the following directories and files in the 

/etc/php5/ directory:

 /apache2 directory with the content:
   php.ini file
   /conf.d subdirectory with the content:
 gd.ini
 ..
 xcache.ini

 But here I don't have
 curl.ini
 xmlrpc.ini

 and I think that that it should be here curl.ini, xmlrpc.ini

 Why is not here curl.ini?


 /conf.d directory with the content:
   @10-pdo.ini
   @20-curl.ini
   ..
   @20-xmlrpc.ini
   ldap.ini

 /mods-available subdirectory with the files:
   curl.ini
   ..
   xmlrpc.ini

 /cgi directory
 /cli directory


-- 
Regards from Pal


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php