Answers.Body: <p>Welcome to StackExchange!   There are fewer installations of CiviCRM on Joomla than Drupal or WP, but it does work, and for most of what it does, Civi doesn't care which CMS it sits on.</p>
  <p>You may be hitting problems described <a href="https://civicrm.stackexchange.com/questions/39181/trapped-by-mysql-5-6">here</a> with HostGator. In general, I'd only try to run CiviCRM on a hosting provider that explicitly supports CiviCRM.</p>
  <p>The end of the error message simply says &quot;DB Error: unknown error&quot; - which is not much use to you or us!  Do your log files provide any more information about the error?</p>
  <p>If the logs don't provide further info you could try connecting to the db directly (either command line or phpmyadmin) and copy/paste in the create table statement and see what error it gives.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-14T17:39:54.957Z
Answers.Text: Aidan, Thank you for your reply.  FYI, I created a new db and ran the subject sql statement.  It created the table with no problems.  I assume these tables are created in my Joomla database and not a dedicated database for Civicrm. I am a bit reluctant to run the statement on my Joomla db although I do have backups of it.
Answers.UserDisplayName: Bob F
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-14T17:47:22.107Z
Answers.Text: Aidan.  The failure in my wp installation relates to the same table civicrm_extension. This is the error message:    Error Details
  =============
  An error of type E_ERROR was caused in line 204 of the file /home1/flscv/public_html/wp/wp-content/plugins/civicrm/civicrm/setup/src/Setup/DbUtil.php. 
  
  ) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC: Specified key was too long; max key length is 767 bytes in /home1/flscv/public_html/wp/wp-content/plugins/civicrm/civicrm
Answers.UserDisplayName: Bob F
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-14T18:09:05.303Z
Answers.Text: @BobF - it would be worth editing your question and including this error message there.  There are a couple of other questions with that error that might be relevant - eg https://civicrm.stackexchange.com/questions/38608/problems-with-clean-install-of-civi-5-33-1-on-wordpress and https://civicrm.stackexchange.com/questions/39176/wordpress-install-fails-fatal-error-uncaught .. but I doubt you can change those settings on HostGator.  Probably need to contact their support.
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-14T09:58:29.327Z
Answers.LastActivityDate: 2021-04-14T09:58:29.327Z
Answers.UserDisplayName: Aidan
Body: <p>Have attempted many times to install 5.35.1 or later 5.36.0 on live Joomla site. Find little info anywhere. Must not be many Joomla installations. Followed instructions explicitly and kept getting php error on file not found which was civicrm.settings.php. Not writing that file to the folders. Removed all files and extracted locally, then FTPed into tmp folder.  Install failed, this time the above mentioned file was written, however got a unknown database error failing to create table:</p>
  <pre><code>Cannot execute CREATE TABLE `civicrm_extension` ( `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Local Extension ID', `type` varchar(8) NOT NULL , `full_name` varchar(255) NOT NULL COMMENT 'Fully qualified extension name', `name` varchar(255) COMMENT 'Short name', `label` varchar(255) COMMENT 'Short, printable name', `file` varchar(255) COMMENT 'Primary PHP file', `schema_version` varchar(63) COMMENT 'Revision code of the database schema; the format is module-defined', `is_active` tinyint DEFAULT 1 COMMENT 'Is this extension active?' , PRIMARY KEY (`id`) , UNIQUE INDEX `UI_extension_full_name`( full_name ) , INDEX `UI_extension_name`( name ) ) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC: DB Error: unknown error
  </code></pre>
  <p>Just about given up this.  Anyone suggest what to do?</p>
  <p>Well, I loaded WordPress in a subdirectory and then tried to install Civicrm per the instructions. Everything looked like it was working until it gave a fatal error and stopped with failure to create tables AGAIN. What I get is:
  An error of type E_ERROR was caused in line 204 of the file /home1/flscv/public_html/wp/wp-content/plugins/civicrm/civicrm/setup/src/Setup/DbUtil.php. ) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC: Specified key was too long; max key length is 767 bytes in /home1/flscv/public_html/wp/wp-content/plugins/civicrm/civicrm
  I use HostGator with Mysql 5.6 for this site and think now it is a host issue (what else is new?)  I can create a new db and actually created the subject table with no issue.  The Joomla db was created several years ago and has not presented any problems. The wp db was just created, yet both dbs have the same problem.  My Wamp server is running 5.7.  I am going to contact hostgator support and hopefully learn if I can get this resolved.  May end up going to another host like I have done with other sites due to HostGator issues.</p>
  <p>Considered the input in the answer and comments, I have reached the conclusion that at least part of the problem does indeed lie with the MySql configuration settings in HostGator. The version is 5.6 and one of the Innodb settings is set to off and should be on. Talked with HostGator support and they will not make any change to the configuration nor are they considering upgrading the shared server MySql version to 5.7.  Bottom line, I cannot use CiviCRM on this server.  I use another host and checked that one as well and determined that the MySQL version has the same configuration as HostGator.  I have reached out to them to see if they will either make the change and upgrade the version. I am willing to move to another host if I can find one that can meet the CivCRM requirements while keeping costs reasonable. This is for a small non profit organization that has limited funding so working under other constraints as well.</p>
  
Tags: <installation>
Title: Cannot install on live Joomla site
ThreadText: # Cannot install on live Joomla site
  
  (Asked by: username_0 on 2021-04-13)
  
  Have attempted many times to install 5.35.1 or later 5.36.0 on live Joomla site. Find little info anywhere. Must not be many Joomla installations. Followed instructions explicitly and kept getting php error on file not found which was civicrm.settings.php. Not writing that file to the folders. Removed all files and extracted locally, then FTPed into tmp folder.  Install failed, this time the above mentioned file was written, however got a unknown database error failing to create table:
  Cannot execute CREATE TABLE `civicrm_extension` ( `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Local Extension ID', `type` varchar(8) NOT NULL , `full_name` varchar(255) NOT NULL COMMENT 'Fully qualified extension name', `name` varchar(255) COMMENT 'Short name', `label` varchar(255) COMMENT 'Short, printable name', `file` varchar(255) COMMENT 'Primary PHP file', `schema_version` varchar(63) COMMENT 'Revision code of the database schema; the format is module-defined', `is_active` tinyint DEFAULT 1 COMMENT 'Is this extension active?' , PRIMARY KEY (`id`) , UNIQUE INDEX `UI_extension_full_name`( full_name ) , INDEX `UI_extension_name`( name ) ) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC: DB Error: unknown error
  
  Just about given up this.  Anyone suggest what to do?
  Well, I loaded WordPress in a subdirectory and then tried to install Civicrm per the instructions. Everything looked like it was working until it gave a fatal error and stopped with failure to create tables AGAIN. What I get is:
  An error of type E_ERROR was caused in line 204 of the file /home1/flscv/public_html/wp/wp-content/plugins/civicrm/civicrm/setup/src/Setup/DbUtil.php. ) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC: Specified key was too long; max key length is 767 bytes in /home1/flscv/public_html/wp/wp-content/plugins/civicrm/civicrm
  I use HostGator with Mysql 5.6 for this site and think now it is a host issue (what else is new?)  I can create a new db and actually created the subject table with no issue.  The Joomla db was created several years ago and has not presented any problems. The wp db was just created, yet both dbs have the same problem.  My Wamp server is running 5.7.  I am going to contact hostgator support and hopefully learn if I can get this resolved.  May end up going to another host like I have done with other sites due to HostGator issues.
  Considered the input in the answer and comments, I have reached the conclusion that at least part of the problem does indeed lie with the MySql configuration settings in HostGator. The version is 5.6 and one of the Innodb settings is set to off and should be on. Talked with HostGator support and they will not make any change to the configuration nor are they considering upgrading the shared server MySql version to 5.7.  Bottom line, I cannot use CiviCRM on this server.  I use another host and checked that one as well and determined that the MySQL version has the same configuration as HostGator.  I have reached out to them to see if they will either make the change and upgrade the version. I am willing to move to another host if I can find one that can meet the CivCRM requirements while keeping costs reasonable. This is for a small non profit organization that has limited funding so working under other constraints as well.
  
  **Tags:** installation
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-04-14. Score: 0
  
  Welcome to StackExchange! There are fewer installations of CiviCRM on Joomla than Drupal or WP, but it does work, and for most of what it does, Civi doesn't care which CMS it sits on.
  
  You may be hitting problems described [here](https://civicrm.stackexchange.com/questions/39181/trapped-by-mysql-5-6) with HostGator. In general, I'd only try to run CiviCRM on a hosting provider that explicitly supports CiviCRM.
  
  The end of the error message simply says "DB Error: unknown error" - which is not much use to you or us! Do your log files provide any more information about the error?
  
  If the logs don't provide further info you could try connecting to the db directly (either command line or phpmyadmin) and copy/paste in the create table statement and see what error it gives.
  
  > **Comments:**
  > **username_0**: username_1, Thank you for your reply.  FYI, I created a new db and ran the subject sql statement.  It created the table with no problems.  I assume these tables are created in my Joomla database and not a dedicated database for Civicrm. I am a bit reluctant to run the statement on my Joomla db although I do have backups of it.  
  > **username_0**: username_1.  The failure in my wp installation relates to the same table civicrm_extension. This is the error message:    Error Details ============= An error of type E_ERROR was caused in line 204 of the file /home1/flscv/public_html/wp/wp-content/plugins/civicrm/civicrm/setup/src/Setup/DbUtil.php.   ) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC: Specified key was too long; max key length is 767 bytes in /home1/flscv/public_html/wp/wp-content/plugins/civicrm/civicrm  
  > **username_1**: @BobF - it would be worth editing your question and including this error message there.  There are a couple of other questions with that error that might be relevant - eg https://civicrm.stackexchange.com/questions/38608/problems-with-clean-install-of-civi-5-33-1-on-wordpress and https://civicrm.stackexchange.com/questions/39176/wordpress-install-fails-fatal-error-uncaught .. but I doubt you can change those settings on HostGator.  Probably need to contact their support.  
  
  ---
  
  