
Julianna wrote:I finally got it to work for me!
For reference, I am using CPanel and this is what I did:
vincentnjara wrote:I have configured cron for processqueue as mentioned above, still I receive error below through mail.
Some errors occurred in the PHPlist Mailinglist System
URL:
Error message(s):
Error: You do not have enough privileges to access this page
==== debugging information
SERVER Vars
SHELL=
USER=xyz
PATH=
PWD=
SHLVL=1
HOME
LOGNAME=xyz
_=PHP_SELF=
argv=Array
argc=4
thanks in advance for any help
I have found out a solution for this error.
1) Go to database table ‘phplist_task’ and get the id of the row for processqueue.
2) Then in table ‘phplist_admin_task’ search for the row that has admin user Id (Id of user who suppose to access the processqueue through cron) and the Id mentioned in the step 1.
3) If such a row exists then edit the value of ‘level’ column to 1(if the value is 0).
4) If such a row do not exists the create a new row with a admin user Id (Id of user who suppose to access the processqueue through cron) and the Id mentioned in the step 1 and the ‘level’ column value as 1.
Hope this information will be usefull to All
Vincent
[/code]
#!/bin/bash
# script to run PHPlist from commandline. You may need to edit this to make it work
# with your shell environment. The following should work for Bash
# in commandline mode, access is restricted to users who are listed in the config file
# check README.commandline for more info
# identify the config file for your installation
CONFIG=/var/coorcet-path/config/config.php
export CONFIG
# alternatively you can use -c <path> on the commandline
# run the PHPlist index file with all parameters passed to this script
/usr/bin/php /var/correct-path/admin/index.php page=processqueue login=USERNAME password=PASSWORD $*
Some errors occurred in the PHPlist Mailinglist System
URL:
Error message(s):
Error: You do not have enough privileges to access this page
==== debugging information
SERVER Vars
SHELL=/bin/sh
USER=smtpd-domain
CONFIG=/var/www/html/www.thevoodoorooms.com/www/nu-list/config/config.php
PATH=/usr/bin:/bin
PWD=/home/smtpd-domain
HOME=/home/smtpd-domain
SHLVL=2
LOGNAME=smtpd-domain
_=/usr/bin/php
PHP_SELF=
argv=Array
argc=6
JMH wrote:On my BlueHost hosted site, I finally got cron to work with the following command:
USER=listprocessor; export USER; /usr/local/bin/php /home/USERNAME/public_html/PATH_TO_PHPLIST/admin/index.php -pprocessqueue -c/home/USERNAME/public_html/PATH_TO_PHPLIST/config/config.php
replacing USERNAME and PATH_TO_PHPLIST with the appropriate information.
The /usr/local/bin/php path is very important; somebody above mentioned that that was where they found the CLI version of PHP. So it was for me, and I would suppose it to be so for others on BlueHost.
$commandline_users = array();
define("MAILQUEUE_BATCH_SIZE",360);
define("MAILQUEUE_BATCH_PERIOD",3600);
define('MAILQUEUE_THROTTLE',1);
#!/usr/bin/php
<?php
system("/usr/local/bin/php /users/xxxxx/public_html/lists/admin/index.php -pprocessqueue -c/users/xxxxx/public_html/lists/config/config.php")
?>
/usr/local/bin/php -q /users/xxxxxx/public_html/lists/admin/cron.php
Now we have to create a file called "phplist" (without the quotes please) in the same directory as the phplist installation.
Return to Advanced Answers, Howtos, Tips & Tricks
Users browsing this forum: No registered users and 1 guest