can't enable Apache SSL website

4 posts / 0 new
Last post
#1 Thu, 10/18/2018 - 19:08
dinis

can't enable Apache SSL website

Virtualmin version 6.04

the website home directory is
/home/MyDomain/public_html/fe/public
however, when trying to enable SSL, I get the message:
Creating SSL certificate and private key ..
.. SSL website failed! : Failed to open /home/MyDomain/public_html/fe/public/fe/ssl.cert.webmintmp.17675 : No such file or directory at ../web-lib-funcs.pl line 1478, line 1.
I tried to create that extra /fe/ folder /dunno why SSL creation ould suggestthat folder but well....

So I got this error message:
.. SSL website failed! : Failed to open /home/MyDomain/public_html/fe/public/fe/ssl.cert.webmintmp.18082 : Permission denied at ../web-lib-funcs.pl line 1478, line 1
Hwever, I noticed that it created there two files, ssl.key.lock and ssl.cert.lock.

Any ideas on how to solve this? Thanks

Thu, 10/18/2018 - 23:49
adamjedgar

Check the ownership of the folders and files in that directory. Make sure the ownership and permissions are correct.

Who are you logged in as when you manually created directory?

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

https://ajecreative.com.au

Fri, 10/19/2018 - 02:51
dinis

Hi. Thanks for your reply. It solved > I had created that "extra fe" folder as root (as I thought Virtualmin would work as root) . Now I changed ownership to the MyDomain user and works. Thanks. Still something is upsetting me. Why is virtualmin adding this "fe extra" folder? Where can I set that. I think the normal thing would be to have the
ssl.cert and ssl.key
in /home/MyDomain/public_html/fe/public/
and not in /home/MyDomain/public_html/fe/public/fe

Fri, 10/19/2018 - 03:06
Jfro

See also for other Forum readers the main cause of this in Troubleshooting topic

https://www.virtualmin.com/documentation/web/troubleshooting

This i don't know sorry

in /home/MyDomain/public_html/fe/public/
and not in /home/MyDomain/public_html/fe/public/fe
Topic locked