I’ve been trying to schedule a cron to process the queue by setting it up on cpanel, referencing this doc in phplist/manual and reading various forum posts but have had no joy yet.
As described in the phplist/manual doc I have create an executable (755) file named ‘phplist’ and placed it in the ‘bin’ folder at the top level of the website’s server space. For cross referencing this file is also in the ‘bin’ folder of the current phplist version 3.2.6 download.
I’ve been told by my hosting company that they “don’t give direct access to the servers via SSH as this is a shared platform” & wouldn’t give me any more info saying they don’t offer technical support. The phplist/manual doc says that the first line #!/bin/bash relates to “the shell that you want to use” so I’m not sure if that’s correct bearing in mind what the hosting company said? Any ideas?
In the line after I have changed /usr/bin/php to /usr/bin/php-cli from reading this forum string (check comment from DanWaterloo who seems to be very knowledgable ohm these things). I also changed the 2 paths to reflect what I believe (but not 100% sure) is correct for this particular domain to:
where ‘future’ is my cpanelUserName and ‘lists2’ is the relevant phplist installation.
I then created a cron in cpanel with the following structure (as directed by the phplist/manual doc) as follows:
OK, I’ve got my file paths correct now but have the following message in the message log.
/data04/future/public_html/lists2/admin/index.php: line 1: ?php: No such file or directory
/data04/future/public_html/lists2/admin/index.php: line 3: syntax error near unexpected token `;'
/data04/future/public_html/lists2/admin/index.php: line 3: `@ob_start();'
This is presumably referencing the opening couple of lines in the index.php file, which I take to mean that the cron is triggering the command line but there’s something not right further down the chain.
Do you, (or anyone else) have an idea as to what i can try to correct this?