-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cron fatal error Undefined constant 'STDOUT' #61
Comments
Which PHP SAPI is this running on? What does |
Hi there, As I am a newbie on this I am not having much luck finding these details. |
You can just create a new <?php
var_dump(PHP_SAPI); |
hi there |
If you access it from a browser it's probably another PHP SAPI. You really need to run it just like you ran the original script that failed. |
ok To renew certificate, customer can set up cron job as under every month :php acme-client/bin/acme issue --domains domain.com:www.domain.com --path /home/username/public_html:/home/username/public_html --server letsencrypti created the test.php and then ran this as a cron: /usr/local/bin/php /home/petehillman/public_html/test.php i set it for everyminute but its not sending anything through or i am not seeing output? |
Maybe you only get the error output? Then try |
Hi there |
Ok heres the cron email i just got: Status: 500 Internal Server Error |
I guess your cron just calls the webserver and runs it. Is your acme-client installation accessible via the web browser? |
I cant access that location via the webbrowser. |
I don't know. Could you ask your hosting provider regarding that? |
I have been on hold with them for almost a day. the issue i have is to just get it to renew on auto and there cron wont do it. what about manual renew is that simple? |
You can also simply run |
This is great help I am very thankful spent a ,ot of head scratching as its a crapy server and they are as helpful as a dead cat. I will try it and get back to you. thanks for your help |
You could just add the following code at the beginning of |
Hi there Please run this script on the command line! Does thsi mean anything? thanks |
You can either remove the check or add your Lines 78 to 81 in f4cabf7
|
Hello and thanks |
The thing you previously got from |
Hi there I ran the issue at the command line and received this error: selfVerify failed, please check http://www.petehillman.com/.well-known/acme-challenge/EoI-fBRTnai3OBQtw5_3j5LfHV__gN0_XdI4uMlxanM. are you familiar with this? thanks |
I see from another thread "I had the same problem, it drove me nuts for a whole day. Turned out I had set up .htaccess to allow access only from my IP. Don't know if this is issue in your case, but it's one thing you might check. I don't know what IP is acme-client using, but looking at logs I see that now it was 66.133.109.36." I can see I will continue to get this error. Do you know of a way to allow the acme-client access via the htaccess file. |
You need to allow public access, not only for acme-client, as the CA (Let's Encrypt) needs access, too. |
Great work, This issue I am having is with the cron renewal: error:
PHP Fatal error: Undefined constant 'STDOUT' in /home/username/acme-client/vendor/league/climate/src/Util/Writer/StdOut.php on line 14
shared hosting using a cron job set up in cpanel. I cant seem to find an answer to this?
Any ideas thanks for your help:)
The text was updated successfully, but these errors were encountered: