Search module will not install

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am
Location: London, England

Search module will not install

Post by stopsatgreen »

I can't get the supplied Search module to install. I click the 'Install' link and it just hangs my browser for ages, then gives a 500 error. I've tried removing the module and uploading it again, have updated to the latest version, everything I can think of. It's the only module that behaves like this.
Piratos

Re: Search module will not install

Post by Piratos »

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
it can be here a timeout, if you can set timeout to 500 .
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am
Location: London, England

Re: Search module will not install

Post by stopsatgreen »

But it hangs for about 5 minutes or more before giving this error, and it's the only module to do so.
Piratos

Re: Search module will not install

Post by Piratos »

i know this issue with module search and sqlite driver - i have set max_execution time to 600 and than it works with install.

After Install no problems until you make a reindex.

With mysqli, mysqli and postgresql i have never seen this.
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am
Location: London, England

Re: Search module will not install

Post by stopsatgreen »

Where can I find the max_execution value to test?
Piratos

Re: Search module will not install

Post by Piratos »

That is a value in the php.ini - you must have access to this and after changing restart the webserver.

This is my normal value  because the biggest provider in germany has this value:

max_execution_time = 10    ; Maximum execution time of each script, in seconds

You can try ini_set but it is seldom allowed - here what the php manual says.

Description
string ini_set ( string varname, string newvalue )


Sets the value of the given configuration option. Returns the old value on success, FALSE on failure. The configuration option will keep this new value during the script's execution, and will be restored at the script's ending.
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am
Location: London, England

Re: Search module will not install

Post by stopsatgreen »

I'm pretty sure I don't have access to php.ini. Oh well. Thanks for the replies.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: Search module will not install

Post by Dee »

Depending on server settings it may also be possible to change configuration settings using the PHP function ini_set or apache directives in a .htaccess file.
Try putting

Code: Select all

ini_set('max_execution_time', '120');
at the beginning of include.php, just before

Code: Select all

define('ADODB_OUTP', 'debug_sql');
or

create (or edit if it exists) a file called .htaccess in your web root directory and add this line:

Code: Select all

php_value max_execution_time 120
I used 120 seconds as an example, but you may want to set it to an even higher value, depending on the server speed. Just make sure PHP never runs out of execution time - it can lead to really nasty results (corrupted CMSMS content data/orphaned pages for example).
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: Search module will not install

Post by Dee »

Check the value used by PHP with the phpinfo function - create a my_phpinfo UDT as described here:
http://wiki.cmsmadesimple.org/index.php ... mmended.29
or create a file called info.php containing:

Code: Select all

<?php
phpinfo();
?>
and open it in your browser.
Piratos

Re: Search module will not install

Post by Piratos »

Just make sure PHP never runs out of execution time
On windows server apache can hang and die (php 5.1.6 and Apache 2.2.3), happens with 1.02 and module search and sqlite driver.

The biggest german providers does not allow
ini_set('max_execution_time', '120');
  and many free webhoster too.
Last edited by Piratos on Sun Oct 15, 2006 7:46 am, edited 1 time in total.
Post Reply

Return to “Modules/Add-Ons”