lesaff / serverpilot-letsencrypt

(NO LONGER MAINTAINED) | Bash script to generate and install Let's Encrypt certificate for your websites on your ServerPilot account (Free or Paid Plan)
MIT License
346 stars 84 forks source link

Error 403, PHP File returning as Download file #69

Open thegulshankumar opened 6 years ago

thegulshankumar commented 6 years ago

Hi,

I already had SSL installed through this script. But, I wanted to add certificate for one more subdomain. After following the process

sudo su
sple.sh
app name
user
example.com www.example.com new.example.com
Clicked on expand
SSL Installed, but error 403. Any file like wp-config.php returning as download file. Temp, I fixed it by sucuring permission. 

Can you please tell me how can I fix? Thanks

cywtf commented 6 years ago

You need to run sple.sh, put the same app name and user but in the domain add all the ones you have plus the new subdomain. The installer will ask you if you want to update the certificates, accept that and see if it works with the new subdomain. If it still doesnt, try resetting nginx with sudo service nginx-sp restart.

thegulshankumar commented 6 years ago

I tried this step. However, last thing that fixed was deleting app and re-installing WordPress. :-(

cywtf commented 6 years ago

That is extreme!