User tests: Successful: Unsuccessful:
Disable the max_execution_time for the installation see: #5193
kudos goes to @sovainfo
Download and extract xampp 5.6.3 (they change the versioning to reflect the PHP Version)
Download and extract joomla 2.5.x / 3.x (staging) (github branche or stable)
try to install
Installation works
Installation hangs by creating the database
Default xampp Konfiguration with:
Apache 2.4.10, MySQL 5.6.21, PHP 5.6.3, phpMyAdmin 4.2.11, OpenSSL 1.0.1, XAMPP Control Panel 3.2.1, Webalizer 2.23-04, Mercury Mail Transport System 4.63, FileZilla FTP Server 0.9.41, Tomcat 7.0.56 (with mod_proxy_ajp as connector), Strawberry Perl 7.0.56 Portable
I think the Joomla Core should work with the default xampp config as it is often used for "testing" and planing joomla if can't be done on the production site not only by experts mostly by end users to pre-test Joomla.
Labels |
Added:
?
|
Travis needs love.
@infograf768 Travis is happy now. Thanks
Does this even work on all hosts? I think some restrict this setting.
I don't like having code with supressed error messages only to cater for specific server misconfigurations or very slow hosts. To my knowledge it's only an issue for XAMPP on slow hosts like laptops.
The real fix is to raise max_execution_time for those xampp instances.
On the other hand it will not stop script execution if there is an error (like a loop) and it would run forerver.
But if people think this is important, I'm not going to argue much because it only affects installs.
To my knowledge it's only an issue for XAMPP on slow hosts like laptops.
The real fix is to raise max_execution_time for those xampp instances.
hmm as @roland-d started we can try to contact the XAMPP Maintainers to raise the default max_execution_time
#5193 (comment)
It is used in other parts of Joomla, as you can see in earlier replies. Some use the max_execution_time, the indexer uses (0) as no time limit. Also it doesn't suppress error messages. It only stops PHP from putting a time limit on it, which is the default for CGI. This should be considered no different.
Can yomeone at least check where exactly it hangs? Is it when it creates the db or when it creates the tables?
If we have to use set_time_limit(0)
then please let us have it at the right spot, and not in a generic location.
Like put it here: https://github.com/joomla/joomla-cms/blob/staging/installation/model/database.php#L901 which looks like it's the place where the tables are created from the SQL file. I would suspect this is the time consuming task and resetting the timer with set_time_limit()
would help here. I wouldn't set it to 0
however. I would give each query the 30 seconds to run and if that isn't sufficient then the server really needs a hand.
You can see on the picture provided by @zero-24 it stops in the middle of creating the tables. It doesn't really matter when the call to set_time_limit(0) occurs as long as you are on time. It needs to be called before interrupted. It cancels the timeout.
Earlier tries have been done to reset te limit per query. It didn't work.
The point is, I don't like it being set_time_limit(0)
. It's bad practice to have a script run without any timeout.
If we can have it reset the max_execution_time right before the step it fails, I would be much in favor of that.
But I still would argue it's a bad server setup and I really doubt we need to fix that on our side.
Like put it here: https://github.com/joomla/joomla-cms/blob/staging/installation/model/database.php#L901 which looks like it's the place where the tables are created from the SQL file. I would suspect this is the time consuming task and resetting the timer with set_time_limit() would help here.
hmm it breaks (any how) the installation. but if i move the @set_time_limit();
into this line https://github.com/joomla/joomla-cms/blob/staging/installation/model/database.php#L890 it run and run and finaly it works for me. I will change the line in the patch now. Thanks.
Category | ⇒ | Installation |
Easy | No | ⇒ | Yes |
sorry i just realise that i have the max_execution_time to 120 by testing :( If i reduce it back to 30 we still need set it to @set_time_limit(0);
Status | Pending | ⇒ | Needs Review |
Movint to Needs Review
so a maintainer can decide what we should do.
@set_time_limit(0);
for the installationThanks
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5256.
Easy | Yes | ⇒ | No |
Status | Needs Review | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-12-31 14:05:36 |
How to test