WebSphere Issues


Assign anonymous or public access for a WCM site

Filed under: Security, WCM — Ishtiaque @ 11:31 am

In order to grant anonymous access for a WCM site you only need to assign Anonymous Portal User access for User role on the corresponding library. The access rights would be inherited by all the items inside the library by default. You need to block inheritance on User role for Workflow and workflow elements, and Authoring Templates by clicking on Library resources button in front of your library in Web Content Libraries portlet.

For details of access rights for viewing  a rendered item inside WCM please read the topic The access required to view a rendered item in the infocenter : http://publib.boulder.ibm.com/infocenter/wpdoc/v6r1/index.jsp?topic=/com.ibm.wp.ent.doc_v615/wcm/wcm_security_items.html

Edge Cache Proxy does not cache wcm items and portal pages

Filed under: Cache Proxy, WCM, WebSphere Portal — Ishtiaque @ 11:20 am

Cache Proxy have following limitation:

1. Edge Cache proxy did not cache the pages on which Tab Menu – Page Builder theme is applied. If you will change the theme to Portal, PortalWeb2 or any of your customized theme it will start caching the portal theme contents. There might be other reason that Tab Menu theme is deployed as web module.

2. In order to cache the portal pages please make sure you have assigned anonymous access to pages and portelts. Because as per my knowledge CP only cache public contents. Also verify that Cache-Control: public header by collecting cache proxy traces. Follow the link under references labeled MustGather.

3. In order cache wcm contents please make sure that wcm site can be access by public users. In order to assign public access to a wcm site please follow the link under reference labeled Anonymous Access WCM items:

4. After assigning the public access please verify on Proxy Access Statistics page that wcm contents have context /wps/wcm/connect NOT /wps/wcm/mycnnect.

5. Even after assigning the public access we noticed that cp was not caching the wcm contents. After following up for few weeks with IBM support the issue remained same. Thanks to my colleague and friend Kashif Memon who discovered the following directives and resolved the issue:

CacheQueries ALWAYS http://mysite.com/*

CacheMinHold  http://mysite.com/*  1 hour


Install and Configure CP: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.edge.doc/edge/concepts.htm

MustGather CP: http://www-01.ibm.com/support/docview.wss?uid=swg21141054

Anonymous Access WCM items: http://publib.boulder.ibm.com/infocenter/wpdoc/v6r1/index.jsp?topic=/com.ibm.wp.ent.doc_v615/wcm/wcm_security_items.html


Change IBM Http Server admin user and/or password

Filed under: Linux, Security, Web Server — Ishtiaque @ 10:16 am

Run the following command to update apache admin user or password:

/opt/IBM/HTTPServer/bin/htpasswd -cm /opt/IBM/HTTPServer/conf/admin.passwd webadmin

The above command will prompt you for new password at command prompt. Once completed then restart apache admin daemon to make changes effective.


Linux commands

Filed under: Commands, Linux — Ishtiaque @ 12:08 pm


  • sudo -i, su – (Sudo to root)
  • su – myuser
  • sudo ls / (Run a command as sudo user)
  • echo “user1 ALL=(ALL) NOPASSWD: ALL” > /etc/sudoers.d/user1; chmod 440 user1

Shutdown and Reboot:

  • poweroff , shutdown -h now
  • reboot, shutdown -r now

Copy and Move, Delete:

  • cp src.txt dest.txt
  • mv org.txt renamed.txt
  • rm -rf mydir, myfile

SCP commands:

  • scp file.txt root@myhost:/opt
  • scp -r dir root@myhost:/opt
  • scp root@remhost:/opt/file1.txt /opt/files/ (Copy from remhost to localhost)
  • scp -r root@remhost:/opt/dir1/ /opt/   (Copy dir1 from remhost to localhost)

SSH commands:

  • ssh root@host1
  • ssh -i my.key root@host1

Chmod and Chown  (Read=4, Write=2, Execute=1):

  • chmod 777 file.txt
  • chmod a+x file.sh (u=user, g=group, o=others, a=all)
  • chmod a-x file.sh (Remove execute permission for all)
  • chown user1 file1.txt

User and Groups:

  • useradd -d /home/user1 user1
  • groupadd grp1; useradd -g grp1 user1 OR useradd -G grp1,grp2 user1
  • userdel –remove user1 OR deluser –remove-home user1 (Ubuntu)
  • passwd user1
  • cat /etc/group|grep grp1
  • cat /etc/passwd|grep user1

Disk Partition and Usage:

  • fdisk -l
  • lsblk
  • df -h
  • du -sh /opt/dir1  (Directory usage)

IBM products library

Filed under: DB2, Links, TDS, WAS, WCM, WebSphere Portal — Ishtiaque @ 11:58 am

Create a free website or blog at WordPress.com.