In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Viewing Issue Simple Details Jump to Notes ] Wiki ]  Related Changesets ] View Advanced ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0000413 [In-Portal CMS] Install / Upgrages feature request always 2009-10-28 02:02 2012-07-25 05:32
Reporter Dmitry View Status public Project Name In-Portal CMS
Assigned To alex Developer
Priority normal Resolution fixed Fixed in Version 5.2.0-B1
Status closed Product Version 5.1.0 Target Version 5.2.0
Time EstimateNo estimate
Summary 0000413: System Requirements Check before In-Portal Installation
Description We need to introduce new "System Requirements Check" step in In-Portal installation wizard.

Below are to scenarios:


1. Clean/New Installation

This step will be located before "Filesystem Check" step and will NOT allow to continue if ANY of required settings has not passed.

We need to show FAILED or PASSED to the right from the setting (see Security check step for example).

NOTES:

MySQL version: 5.0+ (required) - checked as part "Database Configuration" step
MySQL Packet Size: 1MB min (required) - checked as part "Database Configuration" step

Don't allow moving forward if any of thee 2 MySQL settings are incorrect/lower than minimum.



2. Installation Maintenance

This step will be checking for System Requirements (see attached image).

After user selects that wants to check the System Requirement he will see a page with list of them and FAILED or PASSED to the right from it (see Security check step)


Below is list of checks that will consist of "Server-side" and "Client-side" requirements subsections:


Server-side requirements
------------------------
PHP version: 5.2+ (required)

MySQL version: 5.0+ (required) - NOTE: ONLY on Installation Maintenance step
MySQL Packet Size: 1MB min (required for large website, optional for small website) NOTE: ONLY on Installation Maintenance step

URL Rewriting Support: yes/no (optional)
PHP extensions:
- Memcache (optional); Memcache class
- Curl (required); curl_init function
- Freetype (required); imagettfbbox function
- GD 1.8+ (required)
- jpeg (required)
- MySQL; mysql_connect function (required)
- JSON (optional); json_encode function
- Java (optional); run "java args" (need to determine args that cause error on incorrectly installed java)

PHP settings:
- ini_set('memory_limit', ...) - works/don't work (optional)
- ini_get('date.timezone') - timezone set/not set (required)
- ini_get('gpc_order') - contains "GPC" string
- ini_get('output_buffering') > 0 - buffering works (required)

Client-side requirements:
------------------------
Cookies enabled
JavaScript enabled
Additional Information I suppose we can place all server-side checks in prerequisites.php file of CORE module installation folder.

Later (NOT NOW):

Same checks for other modules will be performed once on module selection step. Other modules can't be installed until required requirements are met.
Tags No tags attached.
Reference https://groups.google.com/d/topic/in-portal-bugs/N2bk4jc7y6M/discussion https://groups.google.com/d/topic/in-portal-dev/E1MceYE_TDg/discussion
Change Log Message Created "System Requirements Check" step for installation
Estimate Points 2
Attached Files png file icon CheckSystem_Requirements.png [^] (58,029 bytes) 2011-12-06 13:09


patch file icon system_requirements_413.patch [^] (20,058 bytes) 2011-12-09 10:18 [Show Content]
patch file icon system_requirements_v2.patch [^] (16,006 bytes) 2011-12-12 05:33 [Show Content]
patch file icon system_requirements_java.patch [^] (1,189 bytes) 2011-12-12 09:20 [Show Content]
patch file icon updated_java_check_during_installation_v2.patch [^] (1,854 bytes) 2011-12-13 03:58 [Show Content]
patch file icon upgrade_to_520_fails_on_prerequisit_check.patch [^] (2,870 bytes) 2012-01-06 07:40 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
parent of 0001225closed (5.2.0)alex Additional checks to perform on "System Requirements" step before installation/upgrade 
parent of 0001409resolved (5.2.1)alex Incorrect output buffering check on system requirements installation step 
parent of 0001419resolved (5.2.1)alex Incorrect check for "variables_order" setting during installation 
related to 0000969closed (5.2.0)alex New "System Configuration" installation step 

-  Notes
User avatar (0004208)
Dmitry (manager)
2011-12-05 21:14

Erik, please consult with Alex before doing this task.
User avatar (0004235)
erik (manager)
2011-12-08 11:03

1. Make System Requirements Check for Clean/New Installation with minimal checks count (PHP version, javascript, cookies only)
1.1. PHP version check - 0.5h
1.2. Javascript check - 1h
1.3. Cookies check - 2h
1.4. Solve the problem of passing the first step (first step now is skipped when there is no error, and on a new step, "System Requirements Check" is not known in advance would be a mistake or not, because the javascript and cookies are checked on client side only, whwn step is displaying. - 2h
2. Join System Requirements Check as separate option on Installation Maintenance - 1h
3. Append to System Requirements Check all other checks.
- Memcache (optional); Memcache class - 0.5h
- Curl (required); curl_init function - 0.5h
- Freetype (required); imagettfbbox function 0.5h
- GD 1.8+ (required) - 0.5h
- jpeg (required) - 0.5h
- MySQL; mysql_connect function (required) - 0.5h
- JSON (optional); json_encode function - 0.5h
- Java (optional); run "java args" (need to determine args that cause error on incorrectly installed java) - 0.0h (in accordance with DM Dmitry no need of this check in the current task)
4. Add two new checks to Database Configuration step - 1h
5. Time spent to write this plan/quote - 1h

Total quote - 12h
User avatar (0004238)
erik (manager)
2011-12-09 10:18

Patch attached - needs testing
User avatar (0004240)
Dmitry (manager)
2011-12-11 20:00

After doing some research, we probably can't precisely determine if Java SDK that installed on the server will work in 100% of times, but it's sufficient enough to check the Version using this way:

[root@www system]# java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.10) (rhel-1.23.1.9.10.el5_7-i386)
OpenJDK Client VM (build 19.0-b09, mixed mode)
User avatar (0004243)
alex (manager)
2011-12-12 05:36

1. Was fatal error on db check, when no db settings were entered (just before showing db configuration screen) - fixed.

2. Because of cookie check "System Requirements" step redirected back to "Installation Maintenance" step, when it was initially selected there - fixed.

3. Database version & packet size were not checked where advised (in CheckDatabase method) - fixed.

4. Minimal version checks were made using custom code, while there is a special "version_compare" function in PHP, that does that.

Patch with fixes attached.
User avatar (0004244)
alex (manager)
2011-12-12 05:36

Fix committed to 5.2.x branch. Commit Message:

Fixes 0000413: System Requirements Check before In-Portal Installation
User avatar (0004247)
Dmitry (manager)
2011-12-12 18:07

Please add Java version patch and commit if works.
User avatar (0004253)
alex (manager)
2011-12-13 04:00

Patch "updated_java_check_during_installation_v2.patch" is modification of "system_requirements_java.patch" (that was originally provided by Erik), that has several fixes:

1. Java was listed under "PHP extensions" subsection, but it's not PHP extension (moved into general section)

2. still was outdated check in "System Configuration" step (related task) - update d check there too
User avatar (0004254)
alex (manager)
2011-12-13 04:00

Will test all together later.
User avatar (0004255)
alex (manager)
2011-12-13 04:01

Fix committed to 5.2.x branch. Commit Message:

Fixes 0000413: System Requirements Check before In-Portal Installation
1. updated Java check (also in System Configuration step)
User avatar (0004393)
alex (manager)
2012-01-06 07:43

Patch "upgrade_to_520_fails_on_prerequisit_check.patch" fixes inability to perform upgrade from 5.1.3 to 5.2.0 because of incorrect prerequisite check script.
User avatar (0004999)
alex (manager)
2012-07-25 05:32

Since 5.2.0 version was released.

- Related Changesets
In-Portal CMS: 5.2.x r14999
Timestamp: 2012-01-06 07:45:06
Author: alex
Details ] Diff ]
Bug 0000413: System Requirements Check before In-Portal Installation
1. fixes inability to perform upgrade from 5.1.3 to 5.2.0 because of incorrect prerequisite check script
mod - /in-portal/branches/5.2.x/core/install/install_toolkit.php Diff ] File ]
In-Portal CMS: 5.2.x r14863
Timestamp: 2011-12-13 04:01:17
Author: alex
Details ] Diff ]
Fixes 0000413: System Requirements Check before In-Portal Installation
1. updated Java check (also in System Configuration step)
mod - /in-portal/branches/5.2.x/core/install/install_toolkit.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/install/prerequisites.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/install/step_templates/sys_requirements.tpl Diff ] File ]
In-Portal CMS: 5.2.x r14860
Timestamp: 2011-12-12 05:36:50
Author: alex
Details ] Diff ]
Fixes 0000413: System Requirements Check before In-Portal Installation
mod - /in-portal/branches/5.2.x/core/install/install_toolkit.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/install/prerequisites.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/install/step_templates/install_setup.tpl Diff ] File ]
add - /in-portal/branches/5.2.x/core/install/step_templates/sys_requirements.tpl File ]
mod - /in-portal/branches/5.2.x/core/install/steps_db.xml Diff ] File ]
mod - /in-portal/branches/5.2.x/core/install.php Diff ] File ]

- Issue History
Date Modified Username Field Change
2012-10-22 11:14 alex Relationship added parent of 0001419
2012-10-22 11:13 alex Relationship added parent of 0001409
2012-07-25 05:32 alex Note Added: 0004999
2012-07-25 05:32 alex Status resolved => closed
2012-03-14 12:27 alex Relationship added parent of 0001225
2012-01-06 07:45 alex Changeset attached 5.2.x r14999
2012-01-06 07:43 alex Note Added: 0004393
2012-01-06 07:40 alex File Added: upgrade_to_520_fails_on_prerequisit_check.patch
2011-12-13 04:01 alex Changeset attached 5.2.x r14863
2011-12-13 04:01 alex Note Added: 0004255
2011-12-13 04:01 alex Status reviewed and tested => resolved
2011-12-13 04:01 alex Resolution reopened => fixed
2011-12-13 04:01 alex Assigned To !COMMUNITY => alex
2011-12-13 04:00 alex Note Added: 0004254
2011-12-13 04:00 alex Assigned To alex => !COMMUNITY
2011-12-13 04:00 alex Status needs feedback => reviewed and tested
2011-12-13 04:00 alex Note Added: 0004253
2011-12-13 03:58 alex File Added: updated_java_check_during_installation_v2.patch
2011-12-12 18:07 Dmitry Note Added: 0004247
2011-12-12 18:07 Dmitry Status resolved => needs feedback
2011-12-12 18:07 Dmitry Resolution fixed => reopened
2011-12-12 09:20 alex File Added: system_requirements_java.patch
2011-12-12 05:36 alex Note Added: 0004244
2011-12-12 05:36 alex Status reviewed and tested => resolved
2011-12-12 05:36 alex Fixed in Version => 5.2.0-B1
2011-12-12 05:36 alex Resolution open => fixed
2011-12-12 05:36 alex Assigned To !COMMUNITY => alex
2011-12-12 05:36 alex Changeset attached 5.2.x r14860
2011-12-12 05:36 alex Note Added: 0004243
2011-12-12 05:36 alex Assigned To alex => !COMMUNITY
2011-12-12 05:36 alex Status needs testing => reviewed and tested
2011-12-12 05:33 alex File Added: system_requirements_v2.patch
2011-12-11 20:00 Dmitry Note Added: 0004240
2011-12-09 10:18 erik Time Estimate Removed 4 =>
2011-12-09 10:18 erik Note Added: 0004238
2011-12-09 10:18 erik Assigned To erik => alex
2011-12-09 10:18 erik Developer => erik
2011-12-09 10:18 erik Status needs work => needs testing
2011-12-09 10:18 erik File Added: system_requirements_413.patch
2011-12-08 11:03 erik Note Added: 0004235
2011-12-06 13:09 Dmitry File Added: CheckSystem_Requirements.png
2011-12-06 13:05 Dmitry Description Updated View Revisions
2011-12-06 13:05 Dmitry Additional Information Updated View Revisions
2011-12-05 21:14 Dmitry Note Added: 0004208
2011-12-05 21:14 Dmitry Assigned To => erik
2011-12-05 21:14 Dmitry Status active => needs work
2011-10-22 05:39 alex Estimate Points => 2
2011-09-26 04:59 alex Time Estimate Added 4
2011-09-26 04:59 alex Additional Information Updated View Revisions
2011-09-23 07:24 alex Description Updated View Revisions
2011-09-23 06:45 alex Description Updated View Revisions
2011-09-23 06:44 alex Target Version Icebox => 5.2.0
2011-09-03 09:56 alex Description Updated View Revisions
2011-09-03 09:54 alex Description Updated View Revisions
2011-09-03 09:51 alex Relationship added related to 0000969
2011-07-05 07:24 alex Reference http://groups.google.com/group/in-portal-bugs/browse_frm/thread/3766e4e2373bcba3 https://groups.google.com/d/topic/in-portal-dev/E1MceYE_TDg/discussion http://groups.google.com/group/in-portal-bugs/browse_frm/thread/3766e4e2373 => [url]https://groups.google.com/d/topic/in-portal-bugs/N2bk4jc7y6M/discussion https://groups.google.com/d/topic/in-portal-dev/E1MceYE_TDg/discussion
2011-07-05 07:22 alex Description Updated View Revisions
2011-07-05 07:22 alex Additional Information Updated View Revisions
2011-07-05 07:22 alex Reference http://groups.google.com/group/in-portal-bugs/browse_frm/thread/3766e4e2373bcba3 https://groups.google.com/d/topic/in-portal-dev/E1MceYE_TDg/discussion => http://groups.google.com/group/in-portal-bugs/browse_frm/thread/3766e4e2373bcba3 https://groups.google.com/d/topic/in-portal-dev/E1MceYE_TDg/discussion [url]http://groups.google.com/group/in-portal-bugs/browse_frm/thread/3766e4e2373
2011-01-16 22:10 Dmitry Reference http://groups.google.com/group/in-portal-bugs/browse_frm/thread/3766e4e2373bcba3 => http://groups.google.com/group/in-portal-bugs/browse_frm/thread/3766e4e2373bcba3 https://groups.google.com/d/topic/in-portal-dev/E1MceYE_TDg/discussion
2011-01-16 22:10 Dmitry Change Log Message => Created "System Requirements Check" step for installation
2009-10-28 04:42 alex Reference http://groups.google.com/group/in-portal-bugs/browse_frm/thread/3766e4e2373bcba3 => http://groups.google.com/group/in-portal-bugs/browse_frm/thread/3766e4e2373bcba3
2009-10-28 04:42 alex Description Updated View Revisions
2009-10-28 02:03 Dmitry Status needs work => active
2009-10-28 02:03 Dmitry Assigned To !COMMUNITY =>
2009-10-28 02:02 Dmitry New Issue
2009-10-28 02:02 Dmitry Status active => needs work
2009-10-28 02:02 Dmitry Assigned To => !COMMUNITY
2009-10-28 02:02 Dmitry Reference => http://groups.google.com/group/in-portal-bugs/browse_frm/thread/3766e4e2373bcba3



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker