Search module will not install
-
- Power Poster
- Posts: 322
- Joined: Sat Feb 04, 2006 1:24 am
- Location: London, England
Search module will not install
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
it can be here a timeout, if you can set timeout to 500 .Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
-
- Power Poster
- Posts: 322
- Joined: Sat Feb 04, 2006 1:24 am
- Location: London, England
Re: Search module will not install
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
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.
After Install no problems until you make a reindex.
With mysqli, mysqli and postgresql i have never seen this.
-
- Power Poster
- Posts: 322
- Joined: Sat Feb 04, 2006 1:24 am
- Location: London, England
Re: Search module will not install
Where can I find the max_execution value to test?
Re: Search module will not install
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.
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.
-
- Power Poster
- Posts: 322
- Joined: Sat Feb 04, 2006 1:24 am
- Location: London, England
Re: Search module will not install
I'm pretty sure I don't have access to php.ini. Oh well. Thanks for the replies.
Re: Search module will not install
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
at the beginning of include.php, just before
or
create (or edit if it exists) a file called .htaccess in your web root directory and add this line:
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).
Try putting
Code: Select all
ini_set('max_execution_time', '120');
Code: Select all
define('ADODB_OUTP', 'debug_sql');
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
Re: Search module will not install
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:
and open it in your browser.
http://wiki.cmsmadesimple.org/index.php ... mmended.29
or create a file called info.php containing:
Code: Select all
<?php
phpinfo();
?>
Re: Search module will not install
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.Just make sure PHP never runs out of execution time
The biggest german providers does not allow
and many free webhoster too.ini_set('max_execution_time', '120');
Last edited by Piratos on Sun Oct 15, 2006 7:46 am, edited 1 time in total.