Troubleshooting
Problem
How do I update the .htaccess file using the new database?
Resolving The Problem
How do I update the .htaccess ((/state/partition1/home/install/sbin/.htaccess)) file using the new database?
Here is the procedure to update the .htaccess file (/state/partition1/home/install/sbin/.htaccess).
This is a pretty important file because the whole install process is done using http access (even using the rocks-update tool to patch the frontend)
PART 1 :
Check the database update :
To compare the old and new version of this file, you need to run the following commands :
dbreport -d cluster_new -u root -p "root_password" access > access.new
dbreport access > access.old
The diff should reflect the changes :
-------------------------------------------------------------------------
[root@dr10 config]# diff access.old access.new
1c1
< Allow from 10.1.1.1
---
> Allow from 10.255.255.1
-------------------------------------------------------------------------
PART 2 :
backup :
cp -p /state/partition1/home/install/sbin/.htaccess
/state/partition1/home/install/sbin/.htaccess.orig
PART 3 :
file update:
To regenerate the real file, just run the following command :
dbreport access > /state/partition1/home/install/sbin/.htaccess
Was this topic helpful?
Document Information
Modified date:
16 September 2018
UID
isg3T1014389