Lighttpd + Owncloud + Dietpi-update 6.2 trouble

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
wildpumpk1n
Posts: 4
Joined: Fri Feb 16, 2018 1:50 am

[Split] Setup LetsEncrypt/SSL on lighttpd and OwnCloud

Post by wildpumpk1n »

Hi,

First, thanks for your tuto. I would like to secure my lighttpd serv with owncloud but im a little bit lost cause its not really a website, with domain and etc.
So i dont know what i can do for certificate. Any idea? Thanks.
Last edited by k-plan on Wed Feb 21, 2018 7:37 pm, edited 1 time in total.
Reason: Split topic from Community Tutorials
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: [Tutorial]Setup LetsEncrypt/SSL on lighttpd and OwnCloud

Post by MichaIng »

Please wait for v6.2 release this week, as it contains some dietpi-letsencrypt rework. Then just run dietpi-letsencrypt, enter some info and decisions about HSTS and automated redirection to HTTPS and DietPi + CertBot will do everything else.
wildpumpk1n
Posts: 4
Joined: Fri Feb 16, 2018 1:50 am

Re: [Tutorial]Setup LetsEncrypt/SSL on lighttpd and OwnCloud

Post by wildpumpk1n »

Oh thanks! So i will wait for this weekend.
I didnt install a lot of thing on my fresh install waiting for the big part to be there.

But maybe with an apt-get update upgrade etc the improve will be install without reinstall my owncloud.
wildpumpk1n
Posts: 4
Joined: Fri Feb 16, 2018 1:50 am

Re: [Tutorial]Setup LetsEncrypt/SSL on lighttpd and OwnCloud

Post by wildpumpk1n »

So unfortunately, my i made an dietpi-update and weird thing my lighttpd dont work anymore.
I will make a post.
wildpumpk1n
Posts: 4
Joined: Fri Feb 16, 2018 1:50 am

Lighttpd + Owncloud + Dietpi-update 6.2 trouble

Post by wildpumpk1n »

Hello Everyone,

I've got few trouble since i updated my dietpi from 6.1 to 6.2.
I install few things like oracle java in the same interval.

When i try to start my lighttpd service i've got an error :

Code: Select all

root@DietPiServ:/var/lib# systemctl start lighttpd.service
Job for lighttpd.service failed because the control process exited with error code.
See "systemctl status lighttpd.service" and "journalctl -xe" for details.
I check the status and :

Code: Select all

root@DietPiServ:/var/lib# systemctl status lighttpd.service
\u25cf lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2018-02-21 00:02:53 CET; 5s ago
  Process: 3561 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)

Feb 21 00:02:53 DietPiServ systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Feb 21 00:02:53 DietPiServ systemd[1]: lighttpd.service: Start request repeated too quickly.
Feb 21 00:02:53 DietPiServ systemd[1]: Failed to start Lighttpd Daemon.

Feb 21 00:02:53 DietPiServ systemd[1]: lighttpd.service: Failed with result 'exit-code'.
root@DietPiServ:/var/lib# systemctl start lighttpd.service
Job for lighttpd.service failed because the control process exited with error code.
See "systemctl status lighttpd.service" and "journalctl -xe" for details.
My Lighttpd conf :

Code: Select all

erver.modules = (
        "mod_access",
        "mod_alias",
        "mod_compress",
        "mod_redirect",
)

server.document-root        = "/var/www"
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/var/log/lighttpd/error.log"
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"
server.port                 = 80


index-file.names            = ( "index.php", "index.html", "index.lighttpd.html" )
url.access-deny             = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

compress.cache-dir          = "/var/cache/lighttpd/compress/"
compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )

# default listening port for IPv6 falls back to the IPv4 port
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
So if you have any idea, i take :)
Thanks.
Post Reply