Helpful Docs to read before posting: (All Docs) | Config Docs | General FAQ | Mailing List Sending FAQ | Error FAQ

Can't get past Congrats and Welcome screen

Having Problems installing Dada Mail?

Can't get past Congrats and Welcome screen

Postby stevienz » Sun Apr 08, 2012 11:32 pm

Hi,

Have just installed DadaMail v5.0.1 onto SLES9, Perl 5.8.3, Apache 2.2.17 and MySQL 5.1.44. It all appears to have installed fine.

However, when I click "I agree to the GPL" and enter the root password and click "Setup a New Mailing List", it just refreshes back to the same page. It does the same when I try "Program Configuration Settings". If I make the password "unencrypted" I get the warning about the unencrypted password on the "Congrats" screen, but the same issues.

No errors appear in the Apache error_log file.

The following are the lines that appear in the Apache access_log...
Code: Select all
192.168.100.178 - - [09/Apr/2012:18:24:30 +1200] "POST /cgi-bin/dada/mail.cgi HTTP/1.1" 200 19478 "http://dadamail.xyz.net.nz/cgi-bin/dada/mail.cgi?f=new_list" "Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20100101 Firefox/11.0"
192.168.100.178 - - [09/Apr/2012:18:24:30 +1200] "GET /cgi-bin/dada/mail.cgi/img/dada_mail_logo.png/ HTTP/1.1" 200 2541 "http://dadamail.xyz.net.nz/cgi-bin/dada/mail.cgi" "Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20100101 Firefox/11.0"
192.168.100.178 - - [09/Apr/2012:18:24:30 +1200] "GET /cgi-bin/dada/mail.cgi/css/default.css HTTP/1.1" 200 12984 "http://dadamail.xyz.net.nz/cgi-bin/dada/mail.cgi" "Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20100101 Firefox/11.0"
192.168.100.178 - - [09/Apr/2012:18:24:31 +1200] "GET /cgi-bin/dada/mail.cgi/img/header_bg.gif/ HTTP/1.1" 200 1467 "http://dadamail.xyz.net.nz/cgi-bin/dada/mail.cgi/css/default.css" "Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20100101 Firefox/11.0"


xyz.net.nz is not real URL. I have had a look through the code in mail.cgi but my Perl is not too good. Something to do with the "Flavor" not getting passed correctly?

Hosted on our own server. Happy to pay for an install and WWW and SSH access available if required.

Any initial thoughts?

Thanks,
Stephen.
stevienz
 
Posts: 7
Joined: Sun Apr 08, 2012 11:10 pm

Re: Can't get past Congrats and Welcome screen

Postby justin » Mon Apr 09, 2012 1:29 pm

What's the real URL?
User avatar
justin
 
Posts: 4579
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO

Re: Can't get past Congrats and Welcome screen

Postby stevienz » Mon Apr 09, 2012 8:04 pm

Hi Justin.

Thanks for the help.

http://dadamail.fergusson.net.nz/cgi-bin/dada/mail.cgi

It is actually a reversed proxy'd website running inside my network. I have only just created the world DNS entry so try 125.236.204.68 in your hosts file if required.

I was reading the FAQ last night and have tried the RewriteEngine off, Options +ExecCGI and the AddHandler cgi-script cgi pl with no difference.

I will PM you the root password. No I won't :) apple123 (set as encrypted in the outside Config.pm)

Thanks again,
Stephen.
stevienz
 
Posts: 7
Joined: Sun Apr 08, 2012 11:10 pm

Re: Can't get past Congrats and Welcome screen

Postby justin » Tue Apr 10, 2012 2:23 pm

Not working for me, either. the query just isn't being received by the script.

It is actually a reversed proxy'd website running inside my network. I have only just created the world DNS entry so try 125.236.204.68 in your hosts file if required.


So, that's probably something there.

I was reading the FAQ last night and have tried the RewriteEngine off, Options +ExecCGI and the AddHandler cgi-script cgi pl with no difference.


Any mod_security stuff on that you can turn off?
User avatar
justin
 
Posts: 4579
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO

Re: Can't get past Congrats and Welcome screen

Postby justin » Tue Apr 10, 2012 2:27 pm

So, for example:

http://dadamail.fergusson.net.nz/cgi-bi ... .cgi?f=ver

Should print the version of Dada Mail you have and nothing else, like this:

http://dadamailproject.com/cgi-bin/dada/mail.cgi?f=ver

Strangely, path info info works:

http://dadamail.fergusson.net.nz/cgi-bi ... _logo.png/

(shows the dada mail logo)

But this doesn't:

http://dadamail.fergusson.net.nz/cgi-bi ... l_logo.png

But this does:

http://dadamailproject.com/cgi-bin/dada ... l_logo.png
User avatar
justin
 
Posts: 4579
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO

Re: Can't get past Congrats and Welcome screen

Postby stevienz » Tue Apr 17, 2012 12:06 am

Hi Justin,

Thanks for the ideas. I don't think it is reverse proxy issue because it doesn't work inside my network. That was just a setup to get you in remotely.

No mod_security stuff I can find... and I have checked the apache config and I think it is all OK. I have tried different .htaccess options as well.

DADA4 works fine. I have tried an upgrade over the top of DADA4 and then it breaks with the same symptoms as a fresh install of DADA5.

I have been trying to stick debug lines through your code to determine how far it is getting and what variables are set to at various points... slow but I am starting to understand it.

It does seem to be related to the fact that the ?f=ver isn't being set correctly in the $ENV{QUERY_STRING} or something similar. A perl 5.8.3 issue? Seems to be the same in DADA4 though and that works?

I will keep playing and see if I can work it out.

Thanks,
Stephen.
stevienz
 
Posts: 7
Joined: Sun Apr 08, 2012 11:10 pm

Re: Can't get past Congrats and Welcome screen

Postby stevienz » Tue Apr 17, 2012 1:34 am

Hi Justin,

I think I have solved it...

In DADA4, there is a file located in dada/DADA/perllib called CGI.pm. This file doesn't exist in DADA5... I copied the CGI.pm from DADA4 perllib into the DADA5 perllib dir.

Ok to do this? Consequences?

I will now experiment more and try creating a list etc... I am going to change the password now that it is up and working.

Thanks for the clues posted above.

Regards,
Stephen.
stevienz
 
Posts: 7
Joined: Sun Apr 08, 2012 11:10 pm

Re: Can't get past Congrats and Welcome screen

Postby justin » Tue Apr 17, 2012 11:53 am

I copied the CGI.pm from DADA4 perllib into the DADA5 perllib dir.


Well, when you did this, did everything work?
User avatar
justin
 
Posts: 4579
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO

Re: Can't get past Congrats and Welcome screen

Postby stevienz » Tue Apr 17, 2012 12:57 pm

Yes it all seems to work. I haven't been through the process of creating a message or trying to send yet but I have created a list and can see the menu structure inside DADA5.

Is what I have done (copying that CGI.pm) ok? Is it the correct version?

Thanks,
Stephen.
stevienz
 
Posts: 7
Joined: Sun Apr 08, 2012 11:10 pm

Re: Can't get past Congrats and Welcome screen

Postby justin » Tue Apr 17, 2012 2:29 pm

It's strange that it works without the CGI.pm file - but these things tend to get a little strange :)

My suggestion would be to manually install the, "CGI" CPAN module manually, using something like the cpan shell, if you can. That'll make sure all the perl modules you need are in there. You'll see there's a number of modules that come with that distro:

http://search.cpan.org/~markstos/CGI.pm-3.59/

Although, it comes with no other dependencies:

http://deps.cpantesters.org/?module=CGI;perl=latest

(so you can manually install it by copying the files to the right place - kind of like you're already trying)

I don't ship Dada Mail with it (anymore) as that module is usually fairly ubiquitous and I tend to get behind on versions. If you're running your own server, that may be a different story.
User avatar
justin
 
Posts: 4579
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO


Return to Installing Dada Mail

Who is online

Users browsing this forum: No registered users and 0 guests

cron
Loading