Loading...
 
Architecture / Installation

Architecture / Installation


Tiki not upgrading (12.4 > 12.9)

posts: 189 Ukraine

Hi,

I'm using Tiki Admin > General Preferences (button: reset or upgrade your database), but each time I do this, it only offers to update to 12.4, nothing higher. I go through the whole process, but nothing changes, still on 12.4.

Some notes:
- I get a warning that my php_memory_limit is 32MB
Updating Php Memory Limit 32MB

yet when I run Tiki Server Capability Check it tells me the limit is 128MB
ServerCheck PhpScriptingLanguage

- recently upgraded to a virtual private server (from shared hosting), there we have 4GB memory (though it seems it's not set up properly)

- tried to find the php.ini file to change the php memory limit, no such file exists

- no longer have Softaculous as on other sites I just use this to update and works great (in changing from shared server to VPS we los Softaculous, have to sign up separately now).

thanks,
Mike

posts: 731 United States
Mike, you can create the php.ini and that'll be the same outcome. Not sure if this will fix your issue but just a heads up. Just create file, name it php.ini and see here for directives at http://php.net/manual/en/ini.list.php
posts: 189 Ukraine

Thanks, John! I'll give it a try.
Mike

posts: 189 Ukraine

Ok, give it a try, had some problems.

Since I couldn't find the '/usr/local/lib' path (where tiki-phpinfo.php says my non-existant php.ini file is) I put the php.ini file in 'public_html/lib' (that was the only 'lib' folder I could find).

These are the 4 parameters I assigned to the php.ini file:

  • memory_limit = 1024M
  • upload_max_filesize = 32M
  • max_execution_time = 45 seconds
  • max_input_time = 60


I did another Tiki Server Compatibility Check but didn't show any increase in php_memory_limit or file upload size.

I moved the php.ini file to just 'public_html' (since that is where Softaculous installed Tiki) and it finally showed the changes (to 1024MB and 32MB file uploading) so this was great! Only downside is the site basically stopped working -

1) most pages could not be found by Tiki (i.e. page missing)
2) major language problems - all pages, menu items, tracker items that were in Ukrainian language displayed with question marks (I cleared the cache after moving the file)

Moved the file back to 'public_html/lib', cleared the cache, site worked again, but the server settings went back to the old readings.

So I guess the problem is where I am putting the php.ini file is incorrect.

Mike

posts: 189 Ukraine

Ok, managed to get my php memory limit bumped up ( to 2GB, and Tiki recognizes this now, no warnings), but the Tiki Installer still does not want to work, it only offers to upgrade to the same version (12.4). Gone through this whole process, entered Tiki, cleared the cache, tried again, same thing.

Does any one know if Tiki Installer actually works?

I've never been able to get it to work (multiple sites), always use Softaculous, just don't have it right now. Has anyone ever managed to upgrade via the Installer? The directions and steps are pretty straight forward, doesn't seem like I'm doing anything incorrect.

Any ideas?

Thanks,
Mike

posts: 3625 United States

The Tiki 12.9 Installer worked perfectly for me (I've updated several sites manually using the installer).:

  1. Download the 12.9 ZIP.
  2. Upload and unpack on my server.
  3. Run tiki-install.php


I have seen no reports of the installer failing.

HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.
posts: 189 Ukraine

Hi Rick,

Looks like the first thing I was doing incorrectly, was not uploading the Tiki zip file to the server where my installation was. I assumed the button 'Reset or Upgrade your Database' (in Admin > General > General Preferences) was a fully automated process (i.e. it would find the latest upgrade, download, install).

So on a test site, I uploaded 15.2 (currently 12.9) via cPanel File Manager to the sub-domain site (public_html/pig2), and unpacked ('extract'), but than it created a new folder (called 'tiki-15.2) and unpacked to that folder (public_html/pig2/tiki-15.2) I didn't ask for a new folder to be created, I wanted it to be unpacked to '/pig2' but this is not an option.
This is the option I get:
CPanel File Location

So I run the installer again (via button mentioned above) but again, it offers to only upgrade to 12.9. So the path does not seem to be correct - I do not want to eliminate the '/pig2' part of the path as than it could be unpacked to 'public_html', and I have my main Tiki site there which I can't risk screwing up.

Sounds so simple, but somehow I'm missing something.

br,
Mike

posts: 3625 United States

Sorry you're having problems Mike. :-( You may want to review the Upgrade Docs for details, but I'll try to help...

Mike Finko wrote:
I assumed the button 'Reset or Upgrade your Database' (in Admin General General Preferences) was a fully automated process (i.e. it would find the latest upgrade, download, install).

No, it only runs the installer/updater on your current database. It does not actually upgrade the files on your site (though, that is a future wish!).

Mike Finko wrote:
...but than it created a new folder (called 'tiki-15.2) and unpacked to that folder (public_html/pig2/tiki-15.2) I didn't ask for a new folder to be created, I wanted it to be unpacked to '/pig2' but this is not an option.

Yes, that is the way that archive files work — they honor/respect/retain the original folder structure. Since you expanded the archive into a pig2 directory, your new Tiki path is: ../pig2/tiki-15.2/

mikeusa wrote:
So I run the installer again (via button mentioned above) but again, it offers to only upgrade to 12.9. So the path does not seem to be correct...

This is because you unarchived the installer into a completely different directory (../pig2/tiki-15.2). Essentially you're creating a new install of Tiki in the ../pig2/tiki-15.2/ folder. You should run the installer directly from that directory: ../pig2/tiki-15.2/tiki-install.php

You may find my primer useful (it is out-of-date, but many of the key principles are identical).

A few words of caution:

  • Moving from Tiki 12 to 15 is a big jump. There are lots of structural changes. If you've made any customizations, you'll need to re-work them for 15.
  • I highly recommend backing up your database before testing any upgrades.
  • Don't forget about the files and/or img/wiki_up/ etc directories!



HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.
posts: 189 Ukraine

huge thanks, Rick, for taking so much time on this!

I think I almost have it, just the problem is with the URL path I am entering for running tiki-install.php.

The one that starts the installer is:

  • http://pig2.tmukraine.com.ua/tiki-install.php

but this only installs 12.9

I have also tried:

  • http://pig2.tmukraine.com.ua/public_html/pig2/tiki-15.2/tiki-install.php

but get this message: No route found. Please see http://dev.tiki.org/url+Rewriting+Revamp
(also tried all variations of this URL)

The URL path via cPanel shows me this:

  • https://s3.uahosting.com.ua:2083/cpsess8284089405/frontend/paper_lantern/filemanager/index.html

So I tried adding the line you mentioned to the end

  • https://s3.uahosting.com.ua:2083/cpsess8284089405/frontend/paper_lantern/filemanager/index/public_html/pig2/tiki-15.2/tiki-install.php

this just gave me a 404 error

In the /tiki-15.2 folder there is a file called 'INSTALL', I click on it, it just downloads the file, if I right click, there is no install option.

In /tiki-15.2 there is a folder called 'Installer', and in it is tiki-install.php, but, again, clicking on it just downloads the file (right click offers no install options)

Somehow I am not entering the correct URL path.
thanks,
Mike

posts: 3625 United States

Let's start over.... For a Tiki upgrade, you essentially install the new (15.2) version on top of your existing site.

If you unarchived the ZIP into a directory that is different than your current Tiki installation, you're not going to upgrade anything — you'll be installing an entirely new Tiki in a different subdirectory.

See the Upgrade Docs, especially 6 Update Your Files — Install over existing.

Be sure to backup everything (your current database and all directories/files) before upgrading. And be sure review the Tiki 15 Release Notes, as there are many big changes moving from 12x to 15x.

FWIW, here's how I upgrade my Tiki sites:
1. Make a copy of my current database.
2. Unarchive the ZIP into a new folder.
3. Copy all of my customizations, file gallery uploads, etc., into the the correct location in the new folder (from step 2).
4. In the new folder (from step 2) run the tiki-install.php. In the installer, specify the database copy (from step 1).
5. Test the new Tiki. If everything is fine:
6. Archive my current Tiki.
7. Move/copy everything from the new folder (from step 2) to my web root.

HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.
posts: 189 Ukraine

Hi Rick,

I finally had success in updating! Only I did it though Softaculous 'one-click' install / upgrade.

The detailed instructions you provided are well above my abilities for now, but later will definitely return to this thread to give it a try again.

Thanks again very much for all your help,
Mike


posts: 3625 United States

Not sure why the Installer and Tiki-Check are reporting different values... But, in addition to what John said, if you run tiki-phpinfo.php, you'll be able to see where the PHP values are loaded from.

HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.
posts: 189 Ukraine

Hi Rick,
I'm aware of this php info page, and that it shows a path, though I'm still not finding any php.ini file on our server (and I have it set to show hidden files). I'll try adding a php.ini file per John's advice.
Mike