<div dir="ltr">Okay, nvm carry on everyone. I was missing a module that was showing up in my apache2 error.log but i was checking my millard-error.log...modifying my cpanfile to fix that for future pushes. Doh.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 7, 2018 at 10:37 AM, Scott H <span dir="ltr"><<a href="mailto:scott.harpster@gmail.com" target="_blank">scott.harpster@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">forgot to paste in my config of apache site:<div><div><VirtualHost *:80></div><div>        ServerName <a href="http://www.example.com" target="_blank">www.example.com</a></div><div><br></div><div>        # /srv/<a href="http://www.example.com" target="_blank">www.example.com</a> is the root of your</div><div>        # dancer application</div><div>        DocumentRoot /opt/guestaccess/millard/<wbr>public</div><div><br></div><div>        ServerAdmin <a href="mailto:webmaster@domain.com" target="_blank">webmaster@domain.com</a></div><div><br></div><div>        # XXX Start a FastCGI server to run in the background</div><div>        FastCgiServer /opt/guestaccess/millard/<wbr>public/dispatch.fcgi</div><div><br></div><div>        <Directory "/opt/guestaccess/millard/<wbr>public"></div><div>            AllowOverride None</div><div>            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch</div><div>            # XXX Use FastCGI handler instead of CGI</div><div>            AddHandler fastcgi-script .fcgi</div><div>            # Apache 2.2</div><div>            #Order allow,deny</div><div>            #Allow from all</div><div>            # Apache 2.4</div><div>            Require all granted</div><div>        </Directory></div><div><br></div><div>        RewriteEngine On</div><div>        RewriteCond %{REQUEST_FILENAME} !-f</div><div>        # Run FastCGI dispatcher instead of CGI dispatcher</div><div>        RewriteRule ^(.*)$ /dispatch.fcgi$1 [QSA,L]</div><div><br></div><div>        ErrorLog  /var/log/apache2/millard-<wbr>error.log</div><div>        CustomLog /var/log/apache2/millard-<wbr>access_log common</div><div></VirtualHost></div></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 7, 2018 at 10:35 AM, Scott H <span dir="ltr"><<a href="mailto:scott.harpster@gmail.com" target="_blank">scott.harpster@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I usually use the apache2 plack handler but from what I understand you cant do that if you plan on using apache for more then 1 dancer site.<div><br></div><div>Im running into an issue with setting up fast cgi.</div><div><br></div><div><div>[Wed Mar 07 10:31:26.962311 2018] [fastcgi:error] [pid 20247] [client <a href="http://205.125.62.200:50442" target="_blank">205.125.62.200:50442</a>] FastCGI: comm with server "/opt/guestaccess/millard/publ<wbr>ic/dispatch.fcgi" aborted: idle timeout (30 sec)</div><div>[Wed Mar 07 10:31:26.962415 2018] [fastcgi:error] [pid 20247] [client <a href="http://205.125.62.200:50442" target="_blank">205.125.62.200:50442</a>] FastCGI: incomplete headers (0 bytes) received from server "/opt/guestaccess/millard/publ<wbr>ic/dispatch.fcgi"</div></div><div><br></div><div>I first had to chmod +x dispatch.fcgi so it would execute. I then set apache2 to do prefork rather then event mpm. chowned www-data user to own the dancer2 folder, Now I am getting those errors.</div><div><a href="http://goog_401013921" target="_blank"><br></a></div><div><a href="http://search.cpan.org/dist/Dancer2/lib/Dancer2/Manual/Deployment.pod#As_a_FastCGI_script" target="_blank">http://search.cpan.org/dist/Da<wbr>ncer2/lib/Dancer2/Manual/Deplo<wbr>yment.pod#As_a_FastCGI_script</a><br></div><div><br></div><div>I followed that guide but it doesnt seem to work. I went with mod_fastcgi.</div><div><br></div><div>This is on ubuntu 16.04.x LTS.</div><div><br></div><div>Worst case is i setup starman and proxy it but i dont really want to do that this time. What am i missing?</div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>