{"id":4000,"date":"2017-06-07T11:35:37","date_gmt":"2017-06-07T06:05:37","guid":{"rendered":"\/?p=4000"},"modified":"2020-08-17T11:46:30","modified_gmt":"2020-08-17T06:16:30","slug":"aem-dispatcher-setup-linux","status":"publish","type":"post","link":"https:\/\/www.argildx.us\/technology\/aem-dispatcher-setup-linux\/","title":{"rendered":"AEM Dispatcher Setup for Linux"},"content":{"rendered":"
Installing dispatcher for AEM in Apache Web-server in Linux may get little tricky, as documentation provided by Adobe on Installation of Dispatcher<\/a> in Linux is not sufficient, and if we take it in analogy and try doing same way we do in Windows, then we face some issues locating the appropriate files.<\/p>\n Comments given above are self explanatory but, you can still go and edit configs if needed as per following descriptions:<\/p>\n By default you may find port set to 8000 or 8080, change it to 80. Now you just need to configure your CQ replication agent, and point dispatcher flush agents to correct port.<\/p>\n I tested this today itself i.e. 14th Oct 2013 on Ubuntu 13 64 bit debian based OS. It worked like wonder for me. Please post your comments and queries if you have any issues with it, and also if there are better ways to do it. Cheeeerz.<\/p>\n","protected":false},"excerpt":{"rendered":" Installing dispatcher for AEM in Apache Web-server in Linux may get little tricky, as documentation provided by Adobe on Installation of Dispatcher in Linux is not sufficient, and if we take it in analogy and try doing same way we do in Windows, then we face some issues locating the appropriate files. Prerequisites for Dispatcher … Read more<\/a><\/p>\n","protected":false},"author":29,"featured_media":6653,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","content-type":"","footnotes":""},"categories":[66],"tags":[60,25,61,27,62,63],"yst_prominent_words":[2393,2404,2400,2392,1361,2403,2394,2401,2406,2402,2303,2391,2395,1309,2396,2405,2399,2397,1362,2398],"acf":[],"yoast_head":"\nPrerequisites for Dispatcher Setup<\/strong><\/h5>\n
\n
Installation Instructions<\/strong><\/h5>\n
\n
tar -xvzf <dispatcher..xxxx..yyyy.tar.gz><\/pre>\n<\/li>\n
LoadModule dispatcher_module \/usr\/lib\/apache2\/modules\/dispatcher-apache2.2-4.1.5.so\r\n\r\n<IfModule disp_apache2.c>\r\n# location of the configuration file. eg: 'conf\/dispatcher.any'\r\nDispatcherConfig conf\/dispatcher.any\r\n\r\n# location of the dispatcher log file. eg: 'logs\/dispatcher.log'\r\nDispatcherLog \/var\/log\/apache2\/dispatcher.log\r\n\r\n# log level for the dispatcher log\r\n# 0 Errors\r\n# 1 Warnings\r\n# 2 Infos\r\n# 3 Debug\r\nDispatcherLogLevel 3\r\n\r\n# if turned to 1, the dispatcher looks like a normal module\r\nDispatcherNoServerHeader 0\r\n\r\n# if turned to 1, request to \/ are not handled by the dispatcher\r\n# use the mod_alias then for the correct mapping\r\nDispatcherDeclineRoot 0\r\n\r\n# if turned to 1, the dispatcher uses the URL already processed\r\n# by handlers preceeding the dispatcher (i.e. mod_rewrite)\r\n# instead of the original one passed to the web server.\r\nDispatcherUseProcessedURL 0\r\n\r\n# if turned to 1, the dispatcher does not spool an error\r\n# response to the client (where the status code is greater\r\n# or equal than 400), but passes the status code to\r\n# Apache, which e.g. allows an ErrorDocument directive\r\n# to process such a status code.\r\nDispatcherPassError 0\r\n<\/IfModule><\/pre>\n<\/li>\n
<Directory \/>\r\n\r\n<IfModule disp_apache2.c> \r\n# enable dispatcher for ALL request. if this is too restrictive, \r\n# move it to another location\r\nSetHandler dispatcher-handler\r\n<\/IfModule>\r\n\r\nOptions FollowSymLinks\r\nAllowOverride None\r\n\r\n<\/Directory><\/pre>\n
\n
\n
\/renders\r\n{\r\n\/rend01\r\n{\r\n\/hostname \"localhost\"\r\n[2]--> \/port \"80\"\r\n}\r\n}\r\n\/cache\r\n{\r\n\/docroot \"\/var\/cache\/apache2\/<cqcache>\"\r\n}<\/pre>\n
\nGive whatever soft-name you want to give to your cache folder in place of \u201ccqcache\u201d<\/li>\nsudo \/etc\/init.d\/apache2 restart<\/pre>\n<\/li>\n