Comments (23)
Which PHP SAPI is this running on? What does var_dump(PHP_SAPI);
report?
from acme-client.
Hi there, As I am a newbie on this I am not having much luck finding these details.
I am sorry as your script worked beautifully installing the certs.
Is there a way of determining or"Which PHP SAPI is this running on? What does var_dump(PHP_SAPI);"
I cant seem to get anything to tell me from the cli.?
from acme-client.
You can just create a new test.php
with the following contents and run it as cron and look at the output.
<?php
var_dump(PHP_SAPI);
from acme-client.
hi there
i created the file and then ran it in my browser and got
string(9) "litespeed"
is this of use?
thanks again
from acme-client.
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.
from acme-client.
ok
When i create the cron from cpanel I am using this:
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 letsencrypt
i 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?
thanks
from acme-client.
Maybe you only get the error output? Then try fputs(fopen("php://stderr"), PHP_SAPI);
from acme-client.
Hi there
I a dont understand this you mean as replace the test.php with this code?
thanks
from acme-client.
Ok heres the cron email i just got:
Status: 500 Internal Server Error
X-Powered-By: PHP/5.6.30
Content-type: text/html; charset=UTF-8
from acme-client.
I guess your cron just calls the webserver and runs it. Is your acme-client installation accessible via the web browser?
from acme-client.
I cant access that location via the webbrowser.
it looks like the cron for some reason using cpanel wont run this from the correct
location. Is there a way to run this from the cli and create an auto renew?
thanks
from acme-client.
I don't know. Could you ask your hosting provider regarding that?
from acme-client.
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?
thanks
from acme-client.
You can also simply run acme-client issue
every month, but your hosting provider really should run the cron with php-cli
instead of any other PHP SAPI.
from acme-client.
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
from acme-client.
You could just add the following code at the beginning of bin/acme
for now: https://stackoverflow.com/a/28898174/2373138
from acme-client.
Hi there
brilliant
so when i added them i get this error via email:
Please run this script on the command line!
X-Powered-By: PHP/5.6.30
Content-type: text/html; charset=UTF-8
Does thsi mean anything?
thanks
from acme-client.
You can either remove the check or add your PHP_SAPI
for now.
Lines 78 to 81 in f4cabf7
from acme-client.
Hello and thanks
Can you say more about this: "add your PHP_SAPI for now."
I appreciate your help
thanks again
from acme-client.
The thing you previously got from fputs(fopen("php://stderr"), PHP_SAPI);
, but just remove the check.
from acme-client.
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.
exception 'Kelunik\Acme\AcmeException' with message 'Issuance failed, not all challenges could be solved.' in /home/petehillman/acme-client/src/Commands/Issue.php:106
are you familiar with this?
thanks
from acme-client.
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.
thanks mate its a head scratcher
from acme-client.
You need to allow public access, not only for acme-client, as the CA (Let's Encrypt) needs access, too.
from acme-client.
Related Issues (20)
- Additional cert information like OU, Country etc. HOT 2
- Support for acme v2? HOT 7
- 0.3.0 Beta 2: Could not obtain directory: Crypto negotiation failed: Connection reset by peer HOT 15
- Auto command use single time only or need to fire cron every day? HOT 2
- Change email account HOT 8
- Error Delete folder acmet-client HOT 1
- syntax error with bin/acme HOT 9
- PHP Parse error: syntax error, unexpected '$command' (T_VARIABLE) in /path/to/bin/acme on line 160 HOT 4
- Update with installation composer. HOT 1
- Kelunik\Acme\AcmeException: Verification failed, please check the response body for HOT 7
- PHP Fatal error on any command except help and version. HOT 2
- not working anymore: Kelunik\Acme\AcmeException: Couldn't resolve the following domains to an IPv4 nor IPv6 record: HOT 1
- No response for 'domain.org' (MX) from any nameserver after 2 attempts HOT 10
- Amp\Dns\TimeoutException: No response for 'gmail.com' (MX) from any nameserver after 2 attempts, HOT 8
- Latest Let's Encrypt support HOT 1
- Cannot issue certificate by exception HOT 2
- Error in issuing certificates: "Failed to change owner" "Operation not permitted" HOT 5
- Support for wildcard certificates
- sends GET request to an account URL
- AcmeService Exception handling: Can't buffer() a payload more than once HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acme-client.