<div dir="ltr">I sent an example of the errors in Apache's error_log, it was like this:<br><br>[Wed Sep 17 18:30:18 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations<br>[info] *** Request 1 (0.143/s) [30709] [Wed Sep 17 18:30:24 2008] ***<br>
[debug] "GET" request for "/" from "<a href="http://10.137.9.24">10.137.9.24</a>"<br>[debug] Rendering template "<a href="http://index.tt">index.tt</a>"<br>[error] Couldn't render template "file error - <a href="http://index.tt">index.tt</a>: not found"<br>
[error] Couldn't render template "file error - <a href="http://index.tt">index.tt</a>: not found"<br>[info] Request took 0.066461s (15.046/s)<br>.----------------------------------------------------------------+-----------.<br>
| Action | Time |<br>+----------------------------------------------------------------+-----------+<br>| /index | 0.000804s |<br>
| /end | 0.008121s |<br>| -> LookingGlass::View::HTML->process | 0.004464s |<br>'----------------------------------------------------------------+-----------'<br>
<br><br>Not very helpful, was hoping Catalyst could be more verbose.<br><br><div class="gmail_quote">On Wed, Sep 17, 2008 at 18:25, Mesdaq, Ali <span dir="ltr"><<a href="mailto:amesdaq@websense.com">amesdaq@websense.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Did you try also looking at the apache error log? Might have useful information in there about file paths or permissions<br>
<br>
Thanks,<br>
------------------------------------------<br>
Ali Mesdaq (CISSP, GIAC-GREM)<br>
Sr. Security Researcher<br>
Websense Security Labs<br>
<a href="http://www.WebsenseSecurityLabs.com" target="_blank">http://www.WebsenseSecurityLabs.com</a><br>
------------------------------------------<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
-----Original Message-----<br>
From: sardaukar_siet [mailto:<a href="mailto:sardaukar.siet@gmail.com">sardaukar.siet@gmail.com</a>]<br>
Sent: Wednesday, September 17, 2008 9:47 AM<br>
To: <a href="mailto:catalyst@lists.scsys.co.uk">catalyst@lists.scsys.co.uk</a><br>
Subject: [Catalyst] Help! Need help deploying app to Apache<br>
<br>
<br>
Hello all.<br>
<br>
I have a Catalyst app running fine with the _server.pl script, but trying to<br>
deploy it with mod_perl for Apache 2 has proven itself impossible... %-|<br>
<br>
Here is the file I include at the end of my httpd.conf:<br>
<br>
-----------------------------------------------------------------<br>
PerlOptions +GlobalRequest<br>
PerlSwitches -I/home/LookingGlass/LookingGlass/lib/<br>
PerlSwitches -I/home/LookingGlass/LookingGlass/lib/Net<br>
PerlModule LookingGlass<br>
<br>
<br>
<Location /><br>
SetHandler modperl<br>
PerlResponseHandler LookingGlass<br>
</Location><br>
<br>
<VirtualHost *><br>
DocumentRoot /home/LookingGlass/LookingGlass/lib/<br>
<br>
<Directory /><br>
Options FollowSymLinks<br>
AllowOverride None<br>
</Directory><br>
<br>
<Directory /home/LookingGlass/LookingGlass/root/src/ ><br>
Options Indexes FollowSymLinks MultiViews<br>
AllowOverride None<br>
Order allow,deny<br>
allow from all<br>
</Directory><br>
<br>
ErrorLog /var/log/httpd/LookingGlass_error.log<br>
<br>
LogLevel warn<br>
<br>
CustomLog /var/log/httpd/LookingGlass_access.log combined<br>
ServerSignature On<br>
<br>
</VirtualHost><br>
-----------------------------------------------------------------<br>
<br>
And here is a typical error msg when going to <a href="https://localhost/" target="_blank">https://localhost/</a>:<br>
-----------------------------------------------------------------<br>
Request<br>
<br>
bless({<br>
action => "index",<br>
address => "<a href="http://10.137.9.24" target="_blank">10.137.9.24</a>",<br>
arguments => [],<br>
base => bless(do{\(my $o = "<a href="https://lgdeploy/" target="_blank">https://lgdeploy/</a>")},<br>
"URI::https"),<br>
body_parameters => {},<br>
captures => [],<br>
cookies => {<br>
lookingglass_session => bless({<br>
name => "lookingglass_session",<br>
path => "/",<br>
value =><br>
["e56ac9d37cac79e47e1c6de681dc67313b0da6e0"],<br>
}, "CGI::Simple::Cookie"),<br>
},<br>
headers => bless({<br>
"accept" =><br>
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",<br>
"accept-charset" =><br>
"ISO-8859-1,utf-8;q=0.7,*;q=0.7",<br>
"accept-encoding" => "gzip,deflate",<br>
"accept-language" => "en-us,en;q=0.5",<br>
connection => "keep-alive",<br>
cookie =><br>
"lookingglass_session=e56ac9d37cac79e47e1c6de681dc67313b0da6e0",<br>
host => "lgdeploy",<br>
"keep-alive" => 300,<br>
"user-agent" => "Mozilla/5.0 (X11; U; Linux i686;<br>
en-US; rv:<a href="http://1.9.0.1" target="_blank">1.9.0.1</a>) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1",<br>
}, "HTTP::Headers"),<br>
hostname => undef,<br>
match => "",<br>
method => "GET",<br>
parameters => {},<br>
path => "",<br>
protocol => "HTTP/1.1",<br>
query_parameters => {},<br>
secure => 1,<br>
uploads => {},<br>
uri => bless(do{\(my $o = "<a href="https://lgdeploy/" target="_blank">https://lgdeploy/</a>")},<br>
"URI::https"),<br>
user => undef,<br>
}, "Catalyst::Request")<br>
<br>
Response<br>
<br>
bless({<br>
body => "",<br>
cookies => {},<br>
headers => bless({<br>
"content-type" => "text/html; charset=utf-8",<br>
"x-catalyst" => "5.7014",<br>
}, "HTTP::Headers"),<br>
status => 200,<br>
}, "Catalyst::Response")<br>
<br>
Stash<br>
<br>
{}<br>
<br>
Config<br>
<br>
do {<br>
my $a = {<br>
"Plugin::Authentication" => {},<br>
"Plugin::ConfigLoader" => {},<br>
debug => {<br>
ignore_classes => [<br>
"DBIx::Class::ResultSource::Table",<br>
"DBIx::Class::ResultSourceHandle",<br>
"DateTime",<br>
],<br>
scrubber_func => sub { "???" },<br>
},<br>
form => {},<br>
home => "/home/LookingGlass/LookingGlass",<br>
name => "LookingGlass",<br>
root => bless({<br>
dirs => ["", "home", "LookingGlass", "LookingGlass", "root"],<br>
file_spec_class => undef,<br>
volume => "",<br>
}, "Path::Class::Dir"),<br>
session => {<br>
cookie_name => "lookingglass_session",<br>
expires => 7200,<br>
namespace => "",<br>
storage => "/tmp/lookingglass/session/data",<br>
verify_address => 0,<br>
},<br>
static => {<br>
debug => 1,<br>
dirs => [],<br>
ignore_dirs => [],<br>
ignore_extensions => ["tmpl", "tt", "tt2", "html", "xhtml"],<br>
include_path => ['fix'],<br>
mime_types => {},<br>
mime_types_obj => bless({}, "MIME::Types"),<br>
no_logs => 1,<br>
},<br>
};<br>
$a->{static}{include_path}[0] = $a->{root};<br>
$a;<br>
}<br>
<br>
Session ID<br>
<br>
"e56ac9d37cac79e47e1c6de681dc67313b0da6e0"<br>
<br>
Session<br>
<br>
{<br>
__created => 1221670415,<br>
__updated => 1221671167,<br>
command_detail => { config => { type => "normal" }, name => "show diag",<br>
param_list => [] },<br>
user => { groups => [{ id => 1, name => "Admin" }], id => 1, name =><br>
"Admin" },<br>
}<br>
-----------------------------------------------------------------<br>
<br>
Here is Apache's ssl.conf:<br>
-----------------------------------------------------------------<br>
LoadModule ssl_module modules/mod_ssl.so<br>
Listen 443<br>
AddType application/x-x509-ca-cert .crt<br>
AddType application/x-pkcs7-crl .crl<br>
SSLPassPhraseDialog builtin<br>
SSLSessionCache shmcb:/var/cache/mod_ssl/scache(512000)<br>
SSLSessionCacheTimeout 300<br>
SSLMutex default<br>
SSLRandomSeed startup file:/dev/urandom 256<br>
SSLRandomSeed connect builtin<br>
SSLCryptoDevice builtin<br>
<VirtualHost _default_:443><br>
ErrorLog logs/ssl_error_log<br>
TransferLog logs/ssl_access_log<br>
LogLevel warn<br>
SSLEngine on<br>
SSLProtocol all -SSLv2<br>
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW<br>
SSLCertificateFile /etc/pki/tls/certs/localhost.crt<br>
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key<br>
<Files ~ "\.(cgi|shtml|phtml|php3?)$"><br>
SSLOptions +StdEnvVars<br>
</Files><br>
<Directory "/var/www/cgi-bin"><br>
SSLOptions +StdEnvVars<br>
</Directory><br>
<br>
SetEnvIf User-Agent ".*MSIE.*" \<br>
nokeepalive ssl-unclean-shutdown \<br>
downgrade-1.0 force-response-1.0<br>
<br>
CustomLog logs/ssl_request_log \<br>
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"<br>
<br>
</VirtualHost><br>
-----------------------------------------------------------------<br>
<br>
And here is what I usually get in the server script debug output:<br>
<br>
[info] *** Request 1 (0.167/s) [30473] [Wed Sep 17 18:23:35 2008] ***<br>
[debug] "GET" request for "/" from "<a href="http://10.137.9.24" target="_blank">10.137.9.24</a>"<br>
[debug] Rendering template "<a href="http://index.tt" target="_blank">index.tt</a>"<br>
[error] Couldn't render template "file error - <a href="http://index.tt" target="_blank">index.tt</a>: not found"<br>
[error] Couldn't render template "file error - <a href="http://index.tt" target="_blank">index.tt</a>: not found"<br>
[info] Request took 0.069101s (14.472/s)<br>
.----------------------------------------------------------------+-----------.<br>
| Action | Time<br>
|<br>
+----------------------------------------------------------------+-----------+<br>
| /index | 0.000914s<br>
|<br>
| /end | 0.008844s<br>
|<br>
| -> LookingGlass::View::HTML->process | 0.004835s<br>
|<br>
'----------------------------------------------------------------+-----------'<br>
<br>
<br>
<br>
Is there a way to know what path Catalyst is looking for the file? What was<br>
the precise error? Whatever info more you need, I am able to provide. Please<br>
help me...<br>
<br>
Thanks for your time reading this,<br>
<br>
Bruno<br>
--<br>
View this message in context: <a href="http://www.nabble.com/Help%21-Need-help-deploying-app-to-Apache-tp19536440p19536440.html" target="_blank">http://www.nabble.com/Help%21-Need-help-deploying-app-to-Apache-tp19536440p19536440.html</a><br>
Sent from the Catalyst Web Framework mailing list archive at Nabble.com.<br>
<br>
<br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
<br>
<br>
</div></div> Protected by Websense Messaging Security -- <a href="http://www.websense.com" target="_blank">www.websense.com</a><br>
<div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Bruno<br><a href="http://iruel.net">http://iruel.net</a><br>
</div>