Maybe I'm blind, but I can't find an option to set the number of links that should be checked per cron run. In some issues people refer to that setting, but I just can't find it. I am having trouble with my cron runs and I'd like to lower the number of links checked.

Comments

hass’s picture

Status: Active » Fixed

This setting has gone away. You cannot configure it.

The value is calculated based on PHPs max execution time, live check run time and cannot be changed. Set your max execution time to 240s or allow cron to set it. This may be a problem on cheap hosting plans...

yan’s picture

Hm, it is set to 240s (and was set to 500s before) but I still have problems with cron if link checker is enabled (I get the "Attempting to re-run cron while it is already running" message). Is there anything else I can do? I'd really like to use the module, but this is the second attempt and I never got it to work correctly. The absence of a documentation is a problem, too.

hass’s picture

There is nothing to document than what you see in the UI.

Verify that you have enabled openssl or any other SSL library. Otherwise if an SSL link is checked the http request runs into an silent error and hurts your cron. Not a fault of link checker, but a fault in the server config. I'm aware about the SSL issue, but I do not have a solution yet. You can debug this if you debug the results of the core drupal_http_request() API function. There are several issues open in the core queue, see #739524: timeout url if no response to prevent cron hanging and the linked cases in these issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

yan’s picture

Hm, the status report says

Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.2.13

But anyways I get the following message for https links:

Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?

Any hints on what could be wrong? Or how I have to configure PHP? I thought SSL was enabled properly.

hass’s picture

Maybe phpinfo() could shed some light... please report back the solution you may find for others that have the same issue.

yan’s picture

Here are some values from phpinfo(), basically parts where SSL appears:

Configure Command:

'./configure' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-sockets' '--enable-zend-multibyte' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-bz2' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mm=/opt/mm/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-png-dir=/usr' '--with-sqlite=shared' '--with-ttf' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr' 

Apache Version:

Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.2.13

Loaded Modules:

core mod_authn_file mod_authn_default mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_default mod_auth_basic mod_include mod_filter mod_log_config mod_logio mod_env mod_expires mod_headers mod_unique_id mod_setenvif mod_version mod_proxy mod_proxy_connect mod_proxy_ftp mod_proxy_http mod_proxy_scgi mod_proxy_ajp mod_proxy_balancer mod_ssl prefork http_core mod_mime mod_status mod_autoindex mod_asis mod_info mod_suexec mod_cgi mod_negotiation mod_dir mod_actions mod_userdir mod_alias mod_rewrite mod_so mod_bwlimited mod_bw mod_php5 mod_security2 

cURL Information:

libcurl/7.19.7 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
yan’s picture

Any more ideas?

helmo’s picture