IBM Support

How do I update the .htaccess file using the new database?

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

 

[{"Product":{"code":"SSZUCA","label":"IBM Spectrum Cluster Foundation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"4.1.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Product":{"code":"SSZUCA","label":"IBM Spectrum Cluster Foundation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":null,"Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 September 2018

UID

isg3T1014389