Giter Club home page Giter Club logo

caddy-web-server-installer's Introduction

Hi there 👋

I'm Sayem, a highly skilled software developer with extensive experience in a wide range of technologies such as TypeScript, Databases, React Native, Node.js, Golang, and Bash scripting. I am deeply passionate about crafting user-friendly and efficient applications that provide exceptional experiences to users. With a strong focus on clean and maintainable code, I strive to deliver high-quality solutions that meet and exceed expectations.

GitHub stats

caddy-web-server-installer's People

Contributors

bitti09 avatar etnperlong avatar mcbochi avatar nixtren avatar sayem314 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

caddy-web-server-installer's Issues

About download progress

下载的时候能显示当前下载速率以及进度条么?我的网络下载不是很快,经常以为会卡在下载这一步。
Can I display the current download rate and progress bar when downloading?My network download is not very fast, I often think that it will be stuck in the download step.

caddy restart after creating the cfg file has failed

CentOS Linux release 7.6.1810 (Core) 
Linux version 3.10.0-957.10.1.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Mon 3月18日 15:06:45 UTC 2019 

第一步,创建配置文件/Create a cfg file
第二步,调用caddy restart重启caddy
第三步,journalctl -xe

--
-- A new session with the ID 201 has been created for the user root.
--
-- The leading process of the session is 7907.
4月02日 17:55:53 aliyun.zctmdc.cn sshd[7907]: pam_unix(sshd:session): session opened for user root by (uid=0)
4月02日 17:56:02 aliyun.zctmdc.cn polkitd[2235]: Registered Authentication Agent for unix-process:8042:9803695 (system bus name :1.428 [/usr/bin/pkttyagent --
4月02日 17:56:02 aliyun.zctmdc.cn systemd[1]: Stopping Caddy HTTP/2 web server...
-- Subject: Unit caddy.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit caddy.service has begun shutting down.
4月02日 17:56:02 aliyun.zctmdc.cn systemd[1]: Stopped Caddy HTTP/2 web server.
-- Subject: Unit caddy.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit caddy.service has finished shutting down.
4月02日 17:56:02 aliyun.zctmdc.cn polkitd[2235]: Unregistered Authentication Agent for unix-process:8042:9803695 (system bus name :1.428, object path /org/fre
4月02日 17:56:05 aliyun.zctmdc.cn polkitd[2235]: Registered Authentication Agent for unix-process:8102:9804006 (system bus name :1.429 [/usr/bin/pkttyagent --
4月02日 17:56:05 aliyun.zctmdc.cn systemd[1]: start request repeated too quickly for caddy.service
4月02日 17:56:05 aliyun.zctmdc.cn systemd[1]: Failed to start Caddy HTTP/2 web server.
-- Subject: Unit caddy.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit caddy.service has failed.
--
-- The result is failed.
4月02日 17:56:05 aliyun.zctmdc.cn systemd[1]: Unit caddy.service entered failed state.
4月02日 17:56:05 aliyun.zctmdc.cn systemd[1]: caddy.service failed.
4月02日 17:56:05 aliyun.zctmdc.cn polkitd[2235]: Unregistered Authentication Agent for unix-process:8102:9804006 (system bus name :1.429, object path /org/fre
4月02日 17:56:05 aliyun.zctmdc.cn polkitd[2235]: Registered Authentication Agent for unix-process:8118:9804010 (system bus name :1.430 [/usr/bin/pkttyagent --
4月02日 17:56:05 aliyun.zctmdc.cn systemd[1]: start request repeated too quickly for caddy.service
4月02日 17:56:05 aliyun.zctmdc.cn systemd[1]: Failed to start Caddy HTTP/2 web server.
-- Subject: Unit caddy.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit caddy.service has failed.
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit caddy.service has failed.
--
-- The result is failed.

但是手动使用 caddy stop + caddy start 是可以使用的
But manually using caddy stop + caddy start is working.

OR
systemctl restart caddy 也可以/can work

Can't install Plugins


root@server:~/new# caddy install http.filemanager

  Caddy Web Server is already installed on
  /opt/caddyserver/caddy

root@server:~/new# caddy version

  Caddy Web Server v1.0.0-beta2
  Caddy Web Server Installer - v6.1 pre (NEXT)
  PHP 5.5.9-1ubuntu4.27 (cli) (built: Mar  5 2019 18:56:49)

root@server:~/new# caddy start
  Starting Caddy Web Server...2019/04/21 00:03:51 /etc/Caddyfile:19 - Error during parsing: Unknown directive 'filemanager'
  [DONE]

  Caddy Web Server is NOT running

root@server:~/new#

Weird issue relating cat and pids

root@debian:~# caddy start
cat: /var/run/caddy/caddy.pid: No such file or directory

  Starting Caddy Web Server...  DONE

root@debian:~# caddy

  Caddy Web Server is NOT running

  Welcome!
  run caddy help  for help

I found this command in the source-code to get Caddy's pid's I guess, here's the output:

root@debian:~# ps aux | grep /opt/caddyserver/caddy | grep -v grep | awk '{ print $2 }' | sort -
20014
20017

The script doesn't detect Caddy is running, but the pidfile exists and that command returns two pids. And btw, shouldn't the cat error message be silenced/omitted?

I'm running Debian 8 (Jessie). Anyone with the same problem?

root@debian:~# uname -a
Linux debian 2.6.32-042stab113.17 #1 SMP Wed Feb 10 18:31:00 MSK 2016 x86_64 GNU/Linux

Install setcap prior to Caddy install

Ubuntu 14.04

If you install Caddy without installing PHP, Caddy won't be able to bind to port 80/443 because the following command was not successfully executed:
setcap cap_net_bind_service=+ep $caddypath/caddy

The solution is to run the following command before running setcap:
apt-get install libcap2-bin -y

Ubuntu 16.04 Install error

           .....
           ......

find: ‘/var/lib/lxcfs/cgroup/memory/system.slice/run-lxcfs-controllers-cpuset.mount/cgroup.event_control’: Permission denied
find: ‘/var/lib/lxcfs/cgroup/memory/system.slice/ntp.service/memory.pressure_level’: Permission denied
find: ‘/var/lib/lxcfs/cgroup/memory/system.slice/ntp.service/memory.force_empty’: Permission denied
find: ‘/var/lib/lxcfs/cgroup/memory/system.slice/ntp.service/cgroup.event_control’: Permission denied
find: ‘/var/lib/lxcfs/cgroup/memory/system.slice/systemd-update-utmp.service/memory.pressure_level’: Permission denied
find: ‘/var/lib/lxcfs/cgroup/memory/system.slice/systemd-update-utmp.service/memory.force_empty’: Permission denied
find: ‘/var/lib/lxcfs/cgroup/memory/system.slice/systemd-update-utmp.service/cgroup.event_control’: Permission denied
find: ‘/var/lib/lxcfs/cgroup/memory/system.slice/lxcfs.service/memory.pressure_level’: Permission denied
find: ‘/var/lib/lxcfs/cgroup/memory/system.slice/lxcfs.service/memory.force_empty’: Permission denied
find: ‘/var/lib/lxcfs/cgroup/memory/system.slice/lxcfs.service/cgroup.event_control’: Permission denied

              .....
               .....

Add ability to skip PHP installation

Hi,

I think we should add an option to skip PHP installation. In my personal case I want to use PHP 7, so it would be great if I could manually install PHP 7 (fpm) and then run this Caddy installer without worrying about it installing PHP 5.

For the time being I can edit the script to remove the PHP install commands, but it would be better to add an option or something :)

no permission

root@megaserv:~# 2016/04/05 02:33:38 [mydomain] failed to get certificate: [mydomain] error presenting token: Could not start HTTP server for challenge -> listen tcp :80: bind: permission denied

Plugin Support?

Hey

is it possible to add plugin support? i want to use the filemanager from caddy.

Does this script support Caddy 2 beta?

Hi, I've been using Caddy-Web-Server-Installer for a while and very happy with it. But I wonder does it support CaddyServer 2?

Caddy 2 is still in beta, but it's fine for me to use it in my personal project, I tried to set it up manually, it's pretty good.

Also, Caddy 2 is listed on Digital Ocean for one-click install, I think it's pretty stable and it's time to implement it.

Thank you~

ARM should be fine

In these lines it looks like you abort an install (and updates in another part of the script) if the system is ARM architecture.

Caddy can run on ARM. Take a quick gander at how the script at https://getcaddy.com/ handles it; it even compiles for ARM versions 5, 6, and 7.

Request support for Debian10

I need to use your script in Debian10. I hope you can support Debian10 as soon as possible. Thank you very much.

Can't update Caddyserver

Hi, I love your script but there's a problem when updating the Caddyserver.

When I run caddy update, it says "Looks like you already have latest version installed. Abort." which is not.

Then I run caddy version, here is the info:

Caddy Web Server v1.0.0
Caddy Web Server Installer - v6.2
PHP 7.3.9-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Sep 2 2019 12:54:24) ( NTS )

Currently the latest version of Caddy Web Server is v1.0.3. So is there any way to work around? Thank You!

CentOS7 start failed

# caddy start
  Starting Caddy Web Server...Redirecting to /bin/systemctl start  caddy.service
Job for caddy.service failed because start of the service was attempted too often. See "systemctl status caddy.service" and "journalctl -xe" for details.
To force a start use "systemctl reset-failed caddy.service" followed by "systemctl start caddy.service" again.
  [DONE]

  Caddy Web Server is NOT running.

Why?

wget don't support "--show-progress"

[root@fileserver /]# uname -a
Linux fileserver 5.3.18-2-pve #1 SMP PVE 5.3.18-2 (Sat, 15 Feb 2020 15:11:52 +0100) x86_64 x86_64 x86_64 GNU/Linux
[root@fileserver /]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)

wget don't support "--show-progress"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.