Page 1 of 1

server move

Posted: Thu Mar 28, 2019 5:45 pm
by xrated
Hello
it would be very kind if somebody could help me.
Currently there are 2 homepages running CMSMS v1.2 (yes, this old!) and the old webserver doesnt support SSL but php 5.x or 7.1 so i am forced to move the page to different server.

The new server only supports php 7.1/7.2. I've seen a lot posts about this and do i really need to upgrade it multiple times to achieve this?
This page suggests to do 11 upgrades in total:
https://docs1.cmsmadesimple.org/upgrading/old-versions

I also tried different way, installed CMSMS on new server in 2.x version, transferred upload folder and imported SQL DB from old server, but i dont see anything in cms after import. Or is this working when 1.12 is installed?

At least there are no custom plugins used.

Whats the easiest upgrade path?

Tom

Re: server move

Posted: Fri Mar 29, 2019 1:01 am
by DIGI3
You need to do the upgrades as listed. There could possibly be shortcuts, but it seriously doesn't take that long. If there's no third party modules and no custom UDTs, you can probably be at 2.2.10 within 30 minutes - an hour tops if you're making backups at each stage.

Re: server move

Posted: Fri Mar 29, 2019 11:42 am
by xrated
so for starters i need to extract cmsmadesimple-1.2.5.zip to the server and run anything? i guess there are db changes involved if i have to install multiple updates

Re: server move

Posted: Fri Mar 29, 2019 1:41 pm
by DIGI3
For anything not a diff in 1.x, you need to run the installer for that version (/install/upgrade.php).

When complete, delete the install directory, unzip the next version, and repeat - following any special instructions on the documentation page.

For 2.x you don't need to do interim versions - there may be some exceptions to this in future major point releases, but currently there are none.

Re: server move

Posted: Fri Mar 29, 2019 5:24 pm
by xrated
I could update everthing up to 1.12.2. Then i followed:
https://docs.cmsmadesimple.org/upgrading/to-cmsms-2.x

I had no idea about that Smarty thing so i skipped that steps.

After update the page wont load, i only see title and meta tags. php5 or 7 doesnt make a difference.

When i went to admin page and layout/design it did me log out and present login windows again.

There were few warnings during upgrade:

open_basedir restrictions
open_basedir is enabled in your php configuration. Although you may continue, CMSMS will not support installs with open_basedir restrictions.
open_basedir is in enabled. Cannot test session save path.
open_basedir is enabled in your PHP configuration. We could not properly test session capabilities. However, getting to this point in the installation process probably indicates that sessions are working okay.

Checking disabled functions
Note: one or more PHP core functions are disabled. This can have negative impact on your CMSMS installation, particularly with third party extensions. Please keep an eye on your error log. Your disabled functions are:

disk_free_space, show_source, php_uname, getrusage, get_current_user, getmypid, dl, leak, link, symlink, apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg, escapeshellcmd, exec, fp, fput, ftp_exec, ftp_get, ftp_nb_fput, ftp_put, ftp_raw, highlight_file, ini_alter, ini_get_all, ini_restore, inject_code, openlog, passthru, php_uname, phpAds_remoteInfo, phpAds_XmlRpc, phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, posix_setuid, posix_uname, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode

Re: server move

Posted: Fri Mar 29, 2019 8:53 pm
by DIGI3
That's a lot of disabled functions. Your php error log may help to determine if any of them are related. I can't think of anything else without digging into it myself.

Re: server move

Posted: Sat Mar 30, 2019 12:44 am
by xrated
I dont have access to server.
About that smarty, anything i missed?

Tried inofficial patch for 1.12.2 in order to get php 7.2 working, now i have:

Forbidden
You don't have permission to access /index.html.bak
on this server.

Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.

But permission is ok, even 777 has this error. I cannot even run phpinfo on the server.

Re: server move

Posted: Sat Mar 30, 2019 12:53 am
by xrated
So the revised phpinfo script revealed that php 7.2 which was set in gui actually is 7.1.27

Re: server move

Posted: Mon Apr 01, 2019 10:51 am
by xrated
thanks to .htaccess i see error message:

Fatal error: Attempt to connect to database 22714_1 on 22714_1.usr1@localhost failed in /webspace/05/22714/xxx.de/lib/adodb.functions.php on line 61

i dont know where this comes from because i didnt change anything db related.

the difference in patch is this line:
$adodb_light = cms_join_path(dirname(__FILE__),'adodb_lite','adodb.inc.php');

$adodb_light = cms_join_path(__DIR__,'adodb_lite','adodb.inc.php');

i reverted line, but still no success

with php 5.6 i get:
Fatal error: Call to undefined method CMSModule::CMSModule() in /webspace/05/22714/xxx.de/modules/TinyMCE/TinyMCE.module.php on line 36

Re: server move

Posted: Mon Apr 01, 2019 11:19 am
by xrated
found another post to fix error above, but then i had problem like here:
viewtopic.php?f=3&t=71513

i dont know what he means by: At this point you should be able to access and edit your templates and find the occurrences of {stylesheet} and replace them by {cms_stylesheet}.

edit templates where? i never used cmsms before.
i feel like this will be a neverending story and i dont think the old page is worth all the hassle

Re: server move

Posted: Mon Apr 01, 2019 2:15 pm
by DIGI3
In 2.x, templates are in Layout > Design Manager
In 1.x, they're in Layout > Templates

Of course it's going to be a hassle, you've ignored upgrades on a site for 12 years and now it's catching up to you.

Re: server move

Posted: Mon Apr 01, 2019 5:43 pm
by xrated
ooohhkay, i dont have that option in admin ui

this is what i see:
CMS
Subitems: Home, View Site, Logout
contentContent
This is where we add and edit content.
Subitems: Pages, Image Manager, Global Content Blocks, File Manager, News
extensionsExtensions
Modules, tags, and other assorted fun.
Subitems: User Defined Tags
myprefsMy Preferences
This is where you can customize the site admin area to work the way you want.
Subitems: My Account, Manage Shortcuts

Re: server move

Posted: Mon Apr 01, 2019 5:51 pm
by DIGI3
You'll need to get the credentials for a full admin account then, it looks like you're just using an editor account.

If you can't get them, you'll need to reset the admin password in the database (https://cmscanbesimple.org/blog/cms-mad ... d-recovery), or use the 'forgot password' functionality if you know the admin username and have access to the email.

Re: server move

Posted: Tue Apr 02, 2019 10:23 am
by xrated
i successfully updated 1st page to 2.2 now :)
now need to transfer it to other webserver, should i copy it manually or use plugin for that? Also page url is changing to https and of course internal mnt path is changing.

Re: server move

Posted: Tue Apr 02, 2019 1:13 pm
by DIGI3