Re: [Tiki-users] Installation problems - tiki-check.php fails
Volker Wysk <post-hhF2Jplw28UoZk/[email protected]> Sun, 03 Nov 2024 18:49:39 +0100
| Newsgroups | gmane.comp.cms.tiki.user |
|---|---|
| Message-ID | <[email protected]> |
Am Sonntag, dem 03.11.2024 um 16:21 +0100 schrieb Bernard Sfez via TikiWiki-
users:
> Hello Volker,
>
> My understanding is that if you use a release package (tarball) you should
> run setup.sh. to f directory permission only and you should not run it as
> root but as the web user.
I've unpacked it again and changed the ownership of all the files and
direcotries to www-data:www-data. Then I called setup.sh as the www-data
user:
sudo -u www-data sh setup.sh
Then the following comes (when you are not root). It looks like it SHOULD be
run as root. I'm typing enter twice ("f" and then "x"):
-----snip-----
Your choice [f]?
You are not root or you are on a shared hosting account. You can now:
1- ctrl-c to break now.
or
2- If you press enter to continue, you will probably get some error messages
but it (the script) will still fix what it can according to the permissions
of your user. This script will now ask you some questions. If you don't know
what to answer, just press enter to each question (to use default value)
> Press enter to continue:
> Group [www-data]:
> Multi []:
Checking non-bundled composer :
Creating composer.json... created composer.lock... done.
Checking dirs :
db ... ok.
(...)
-----snip-----
It finishes without any error messages.
> But your error smell something I have seen while using a wrong PHP version
> for Tiki27 (CLI or HTML).
I'm using PHP 8.2.8 (it's the same for all users):
-----snip-----
desktop /var/www/html/tiki % sudo -u www-data php --version
PHP 8.2.8 (cli) (built: Jul 8 2023 07:10:21) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.8, Copyright (c) Zend Technologies
with Zend OPcache v8.2.8, Copyright (c), by Zend Technologies
-----snip-----
My Apache uses 8.2 too. This is in my /etc/apache2/sites-enabled/tiki.conf:
-----snip-----
<FilesMatch ".+\.ph(ar|p|tml)$">
SetHandler "proxy:unix:/run/php/php8.2-fpm.sock|fcgi://localhost"
</FilesMatch>
-----snip-----
I'm waiting for Tiki 27.1 now.
Cheers,
Volker
>
> > On 2 Nov 2024, at 19:49, Volker Wysk <post-hhF2Jplw28UoZk/[email protected]> wrote:
> >
> > Hi.
> >
> > I'm installing a new Tiki 27.0 from the tarball. The previous version is
> > 26,
> > with an already existing database. (I've done so via Git before, which
> > worked.) I've installed PHP 8.2 and set it as the version to be used by
> > tiki.
> >
> > When calling "sh setup.sh" (as root), I chose "f" (fix file & directory
> > permissions (classic default)), "and then "x". That's the default.
> >
> > When I call tiki-check.php, I get this error in the browser:
> >
> > Fatal error: Uncaught Error: Call to undefined function
> > smarty_function_ticket() in /var/www/html/tiki/tiki-check.php:2990 Stack
> > trace: #0 {main} thrown in /var/www/html/tiki/tiki-check.php on line
> > 2990
> >
> > It's the same as with "b" first.
> >
> > However, the tiki-install.php page sort of works. Except for these
> > warnings:
> >
> > Warning :20231008_fix_primary_key_issues_on_several_tables_tiki,
> > Incorrect
> > table definition; there can be only one auto column and it must be
> > defined
> > as a key on tiki_actionlog_conf table
> > Warning :20231008_fix_primary_key_issues_on_several_tables_tiki, Can't
> > DROP
> > 'id'; check that column/key exists on tiki_actionlog_conf table
> > Warning :20231008_fix_primary_key_issues_on_several_tables_tiki,
> > Duplicate
> > key name 'uk_action_obj' on tiki_actionlog_conf table
> > Warning :20231008_fix_primary_key_issues_on_several_tables_tiki, Can't
> > DROP
> > 'traId'; check that column/key exists on tiki_translated_objects table
> > Warning :20231008_fix_primary_key_issues_on_several_tables_tiki,
> > Duplicate
> > column name 'id' on tiki_translated_objects table
> > Warning :20231008_fix_primary_key_issues_on_several_tables_tiki,
> > Duplicate
> > key name 'uk_type_objId' on tiki_translated_objects table
> > Warning :20231008_fix_primary_key_issues_on_several_tables_tiki,
> > Incorrect
> > table definition; there can be only one auto column and it must be
> > defined
> > as a key on tiki_history table
> > Warning :20231008_fix_primary_key_issues_on_several_tables_tiki, Can't
> > DROP
> > 'user'; check that column/key exists on tiki_history table
> > Warning :20231008_fix_primary_key_issues_on_several_tables_tiki,
> > Duplicate
> > key name 'uk_version_pageName' on tiki_history table
> > Warning :20231008_fix_primary_key_issues_on_several_tables_tiki,
> > Incorrect
> > table definition; there can be only one auto column and it must be
> > defined
> > as a key on tiki_untranslated table
> > Warning :20231008_fix_primary_key_issues_on_several_tables_tiki, Can't
> > DROP
> > 'id_2'; check that column/key exists on tiki_untranslated table
> > Warning :20231008_fix_primary_key_issues_on_several_tables_tiki,
> > Duplicate
> > key name 'uk_source_lang' on tiki_untranslated table
> >
> > In the last step of the installer, there's this at the bottom:
> >
> > "Oops. You need to make sure client charset and database encoding are
> > forced
> > to UTF-8. Reset the database connection to continue."
> >
> > And I get an ugly blue bubble with the text "Skip to main content" on
> > every
> > page, to the top left.
> >
> > There must be something broken...