Page 1 of 1

Search module will not install

Posted: Sat Oct 14, 2006 5:08 pm
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.

Re: Search module will not install

Posted: Sat Oct 14, 2006 5:18 pm
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 .

Re: Search module will not install

Posted: Sat Oct 14, 2006 5:30 pm
by stopsatgreen
But it hangs for about 5 minutes or more before giving this error, and it's the only module to do so.

Re: Search module will not install

Posted: Sat Oct 14, 2006 5:37 pm
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.

Re: Search module will not install

Posted: Sat Oct 14, 2006 5:42 pm
by stopsatgreen
Where can I find the max_execution value to test?

Re: Search module will not install

Posted: Sat Oct 14, 2006 5:56 pm
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.

Re: Search module will not install

Posted: Sat Oct 14, 2006 6:10 pm
by stopsatgreen
I'm pretty sure I don't have access to php.ini. Oh well. Thanks for the replies.

Re: Search module will not install

Posted: Sat Oct 14, 2006 7:42 pm
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).

Re: Search module will not install

Posted: Sat Oct 14, 2006 7:58 pm
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.

Re: Search module will not install

Posted: Sun Oct 15, 2006 7:44 am
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.