Delete existing code from RHEL 7 (we are starting fresh, similar to starting fresh with the database above) & then, transfer code from RHEL6 to RHEL7 using rsync:
rsync -av eop rjb03001admin@phptst1.its.uconn.edu:/apps/
After it completes, check RHEL7:
Update settings file:
vim /apps/eop/sites/default/settings.php
- Change the database info
- Change $update_free_access from FALSE to TRUE
- Finally, Add the following lines at the end of the file:
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
$conf['error_level'] = 2;
This will help us troubleshoot/debug as PHP errors will be shown, if any!
Let's run the Drupal's update file and how it goes...
Right off-bat, we see couple modules that needs to be updated...
So before we continue with the update process, let's update these two modules and then refresh this page...
[root@phptst1 modules]# rm -rf cas
[root@phptst1 modules]# rm -rf cas_attributes/
[root@phptst1 modules]# rm -rf ldap
[root@phptst1 modules]# rm -rf search_api/
[root@phptst1 modules]# rm -rf search_api_attachments/
[root@phptst1 modules]# rm -rf search_api_db/
[root@phptst1 modules]#
After getting the appropriate modules and transferring them onto RHEL7, refresh the Drupal's update process:
NICE! no errors etc. So now, click continue and see what updates are pending:
Review the pending updates and click on "Apply pending updates" button.
Coooool! No error messages so far... so click on the link to go to the Front page:
Almost there... ctools needs to be updated:
While at it, we will also update panels and panels_style-pack modules too--
Let's see how it looks now by going to the home page:
Still some errors... maybe clearing cache of the system might help... so logging in:
This is a familiar error!! From our experience with the Wx portal migration, we know the root cause of this error:
The CONF file is not configured correctly!!
Give Apache a boot--
service httpd restart
Starting a fresh session with a new browser and try logging in:
OKAY.... this is also a "previously encountered" error... let's update Rules module and see how it behaves after that...
After uploading the update to the rules module onto the RHEL7, untar it:
tar -zxvf rules-7.x-2.12.tar.gz
and after it's untar'd, we remove the tar.gz file to keep things tidy:
rm -rf rules-7.x-2.12.tar.gz
Let's run Drupal's update process as before and see where it stands now...
Still the ctools errors... but remember, we want to login and clear cache.... so go back to Firefox and try logging in again...
SUCCESS!!
Let's clear cache and see what happens with respect to the ctools errors...
okay, we still see the same ctools related errors... but ALSO a new one:
At least, this is easy to fix:
sudo su -
cd default/
ls -alt
chown -R apache:apache files/
ls -alt
Clear cache and reload the home page...
Still some ctools related errors...... (further) research time!
Let's update the nodeaccess module & then run the Drupal's update process
cd modules/
rm -rf nodeaccess/
tar -zxvf nodeaccess-7.x-1.8.tar.gz
rm -rf nodeaccess-7.x-1.8.tar.gz
After clearing cache and reloading the home page: still the same ctools error on the home page :-/
Let's update the Mail System module... and reload the home page after clearing cache
Nope... still same errors!