Menu

Dipesh Majumdar

Blog and Paintings

Adobe cq5, dispatcher, apache - Fundamental Questions and Answer - 1

September 8, 2013

This space will be updated from time to time - 

  • Where to find dispatcher log  Answer: grep DispatcherLog httpd.conf
  • My cq5.6.1 is in windows 7, I can start with my jar file, but can't start with the start.bat file -> Answer:  Possible cause may be because your java home is not set. Install jdk-6u43-windows-x64.exe and then this is the place where by default your java will be installed - C:\Program Files\Java\jdk1.6.0_43 Now after this go to environment variables and add a line to the system variables -> JAVA_HOME     C:\Program Files\Java\jdk1.6.0_43    . Double click on the batch file and your .bat file will run hopefully
  • What is the advantage of running .bat file rather than double clicking on the .jar file -> Answer: One thing that you can do this way is - change the run_mode by editing the .bat file script. For publisher the default remains author, so i can change it to publish-prod if I need to. Note: there are many other methods of changing the run mode
  • How can I know cq5 publisher is running in which mode?  Answer: Go to system console and check sling properties
  • How to find if apache is running or not? Answer:  2 commands given below
                      1) [root@hostname bin]# ps auxwww|grep httpd
                      userforapache 9077 0.0 0.1 344832 7544 ? S 16:21 0:00 /usr/sbin/httpd -k start
                      userforapache 9272 0.0 0.1 344832 7708 ? S 16:23 0:00 /usr/sbin/httpd -k start
                      userforapache 10838 0.0 0.1 344804 7460 ? S 16:36 0:00 /usr/sbin/httpd -k start
                      userforapache 11010 0.0 0.1 344832 7752 ? S 16:38 0:00 /usr/sbin/httpd -k start
                      userforapache 11553 0.0 0.1 344804 7672 ? S 16:43 0:00 /usr/sbin/httpd -k start
                      userforapache 12713 0.0 0.1 344804 7652 ? S 16:53 0:00 /usr/sbin/httpd -k start
                      userforapache 13027 0.0 0.1 344840 7552 ? S 16:56 0:00 /usr/sbin/httpd -k start
                      userforapache 14772 0.0 0.1 344812 7620 ? S 17:11 0:00 /usr/sbin/httpd -k start
                      userforapache 14883 0.0 0.1 344804 7608 ? S 17:12 0:00 /usr/sbin/httpd -k start
                      userforapache 14936 0.0 0.1 344792 7364 ? S 17:13 0:00 /usr/sbin/httpd -k start
                      root 19920 0.0 0.2 342564 8012 ? Ss Aug01 0:07 /usr/sbin/httpd -k start
                      root 31094 0.0 0.0 103304 856 pts/2 S+ 19:40 0:00 grep httpd
                      2) [root@hostname bin]# ps -ef|grep httpd
                      userforapache 9077 19920 0 16:21 ? 00:00:00 /usr/sbin/httpd -k start
                      userforapache 9272 19920 0 16:23 ? 00:00:00 /usr/sbin/httpd -k start
                      userforapache 10838 19920 0 16:36 ? 00:00:00 /usr/sbin/httpd -k start
                      userforapache 11010 19920 0 16:38 ? 00:00:00 /usr/sbin/httpd -k start
                      userforapache 11553 19920 0 16:43 ? 00:00:00 /usr/sbin/httpd -k start
                      userforapache 12713 19920 0 16:53 ? 00:00:00 /usr/sbin/httpd -k start
                      userforapache 13027 19920 0 16:56 ? 00:00:00 /usr/sbin/httpd -k start
                      userforapache 14772 19920 0 17:11 ? 00:00:00 /usr/sbin/httpd -k start
                      userforapache 14883 19920 0 17:12 ? 00:00:00 /usr/sbin/httpd -k start
                      userforapache 14936 19920 0 17:13 ? 00:00:00 /usr/sbin/httpd -k start
                      root 19920 1 0 Aug01 ? 00:00:07 /usr/sbin/httpd -k start
                      root 31106 27431 0 19:40 pts/2 00:00:00 grep httpd
  • How to see  (a) apache process,  (b) apache logs , (c) start, stop apache in sun solaris? 
                           Answer - (a) svcs -p apache2
                                             (b) svcs -l apache2
                                             (c) svcadm enable apache2 
                                                   svcadm disable apache2
  • Is it possible to see packages if logged into crx repository of publisher? Answer - Only if logged in as admin user
  • How will I know if Invalidator is invalidating properly? Answer- each time you activate a particular page - the dispatcher agent will perform it's duty diligently by touching the .stat file and updating it with timestamp. what happens is when the request from browser comes for a particular website - the dispatcher checks the timestamp of this .stat file - if it is old then it collects information from cache and renders it to browser. but if timestamp is newer than the last time - it is intelligent enough to decide that new content is actually present in publisher and not dispatcher cache and so it runs towards cq5 publishers and requests it like this - please lend me the latest content information... publisher says - take it - and grants the information with an air of authority - which the request that had come from the browser collects like a meek beggar and submits in dispatcher cache again... and then renders it back to browser. of course i spoke a lot, but the end user actually sees the fresh content in his browser - mozilla or internet explorer or whatever..... pretty interesting isn't it.... that's why i say read cq5 even more... it is not only hot in the market... but pretty interesting too... the more you unravel the mystery the better you feel about it.
  • Stat file level means what - it is better to keep it to zero. so that to all deeper levels invalidation works for sure. little problem with performance can be ignored. after all it is author and the end users will not feel a thing... only problem might be 
  • My user is in author, how will I login in Publisher? Answer - Activate your user and group - then you can login in publisher.

  

Go Back

Comment