CiviCRM Forums
News: You can learn more about CiviCRM from our new free book: Understanding CiviCRM. Also Check the CiviCRM Blog for updated information on CiviCRM
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 02, 2010, 08:41:09 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Can't test configuration  (Read 203 times)
sraisz
I post occasionally
**

Karma: 0
Offline Offline

CiviCRM: 3.2.beta
CMS: drupal 6.13
MySQL: 5.0.51a
PHP: 5.2.6-1+lenny8

Posts: 34



View Profile WWW
« on: July 17, 2010, 11:08:33 am »

I'm doing a new install of 3.2.beta

In the documentation for setting up CiviMail it says:

Quote
Once you do this, you can test whether the polling works by visiting CiviCRM-Resource-URL/bin/CiviMailProcessor.php?name=username&pass=password&key=key  (with the bold parts replaced by your site's CiviCRM Resource URL, credentials pair of a user with CiviMail access and your site's key).

I've tried this using the admin user (all permissions for everything) and I  get a 403 error:

Quote
Forbidden

You don't have permission to access /sites/all/modules/civicrm/bin/ on this server.

I've double checked the path user name, etc. and can't get past this.

I know the user/pw/key are ok because if i put anything different I get a relevant error like:

Quote
ERROR: Invalid username and/or password

any suggestions?
« Last Edit: July 17, 2010, 11:15:25 am by sraisz » Logged
sraisz
I post occasionally
**

Karma: 0
Offline Offline

CiviCRM: 3.2.beta
CMS: drupal 6.13
MySQL: 5.0.51a
PHP: 5.2.6-1+lenny8

Posts: 34



View Profile WWW
« Reply #1 on: July 25, 2010, 04:33:12 am »

I really need some help with this. Can anyone suggest what's happening?

Logged
xcf33
I post occasionally
**

Karma: 5
Offline Offline

CiviCRM: 3.15/3.2x
CMS: Drupal 6.x
MySQL: 5.0
PHP: <5.3

Posts: 91



View Profile WWW
« Reply #2 on: July 25, 2010, 01:05:08 pm »

Have you checked your file permission for the bin directory as well as the files?
Logged
sraisz
I post occasionally
**

Karma: 0
Offline Offline

CiviCRM: 3.2.beta
CMS: drupal 6.13
MySQL: 5.0.51a
PHP: 5.2.6-1+lenny8

Posts: 34



View Profile WWW
« Reply #3 on: July 29, 2010, 10:11:53 am »

the file permissions were 655, so I set them to 777.

But I still get the same error.

I don't get the error on a different host that I am experimenting with. So I think it is host related.




Logged
Piotr Szotkowski
Administrator
I live on this forum
*****

Karma: 49
Offline Offline

CiviCRM: trunk
CMS: Drupal 6
MySQL: 5.1.31
PHP: 5.2.6

Posts: 1398



View Profile
« Reply #4 on: July 30, 2010, 08:05:18 am »

The only thing that comes to my mind is that on this problematic host the Drupal’s .htaccess file might be a bit more effective in restricting access (or some other server configuration restricts it – say, a rule that …/bin/… directories cannot be accessed by default).
Logged

Do you like CiviCRM? If so, please consider making a donation.
sraisz
I post occasionally
**

Karma: 0
Offline Offline

CiviCRM: 3.2.beta
CMS: drupal 6.13
MySQL: 5.0.51a
PHP: 5.2.6-1+lenny8

Posts: 34



View Profile WWW
« Reply #5 on: July 30, 2010, 06:11:39 pm »

I tried running the scripts from a different folder and got this:

Quote
Could not find valid configuration dir, best guess: /home/krishna/domains/fobtestsite.com/public_html/civiscriptest/../../sites

If this is a standalone installation (i.e. not a Drupal or Joomla module) and you'd like to re-initialize it, click here.

Then I tried renaming the original bin folder and got the same 403 error.

I'll check more with our web host.
Logged
Piotr Szotkowski
Administrator
I live on this forum
*****

Karma: 49
Offline Offline

CiviCRM: trunk
CMS: Drupal 6
MySQL: 5.1.31
PHP: 5.2.6

Posts: 1398



View Profile
« Reply #6 on: August 02, 2010, 03:32:10 am »

I tried running the scripts from a different folder and got this:

Code:
Could not find valid configuration dir, best guess: /home/krishna/domains/fobtestsite.com/public_html/civiscriptest/../../sites

Do check with your web host, but just in case – the above can be fixed by creating a settings_location.php file (in the same directory where the bin directory is) with the following contents:

Code:
<?php
define
('CIVICRM_CONFDIR''/some/path/');

…where /some/path/ points to the directory with the civicrm.settings.php file.
Logged

Do you like CiviCRM? If so, please consider making a donation.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM