Scj With Php 7

tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Scj With Php 7

Post by tubeman »

Hi,
Is Smartcj v 2.1 compatible with php 7 ?

Regards,
admin
Site Admin
Posts: 37197
Joined: Wed Sep 10, 2008 11:43 am

Re: Scj With Php 7

Post by admin »

Yes
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Scj With Php 7

Post by tubeman »

Thanks, While upgrading php on server is there anything to keep in mind so that script dosen't break?
admin
Site Admin
Posts: 37197
Joined: Wed Sep 10, 2008 11:43 am

Re: Scj With Php 7

Post by admin »

Well, basically files for php 5 and files for php 7 are different
So what you need is to

1. backup DB
2. rename folder to scj_backup
3. upgrade php
4. install scj (it'll download files for php7)
5. restore DB
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Scj With Php 7

Post by tubeman »

Which folder do I have to rename to scj_backup?
admin
Site Admin
Posts: 37197
Joined: Wed Sep 10, 2008 11:43 am

Re: Scj With Php 7

Post by admin »

scj

or install version 7 into another folder
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Scj With Php 7

Post by tubeman »

I have over 30 sites, what would be easiest way to do this?
admin
Site Admin
Posts: 37197
Joined: Wed Sep 10, 2008 11:43 am

Re: Scj With Php 7

Post by admin »

0. create a backup of your smartcj folders

1. upgrade php
2. install a new copy of smartcj on any domain just to get files
3. copy new files into scj folder EXCEPT (!!!) config.php, common.php , .htaccess
these files contain domain specific data (DB name, path and so on)
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Scj With Php 7

Post by tubeman »

Thanks, I'm using Nginx/Apache, so nothing to change in the nginx config files right?
admin
Site Admin
Posts: 37197
Joined: Wed Sep 10, 2008 11:43 am

Re: Scj With Php 7

Post by admin »

Don't forget to run script update
Post Reply