Giter Site home page Giter Site logo

hope-it-works / caddy-php Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 42 KB

tool for setting up a caddy-server with PHP support and optional MariaDB-server

License: Apache License 2.0

PowerShell 100.00%
caddy-server caddy2 caddyserver mariadb mariadb-database mariadb-mysql mariadb-server mysql mysql-database mysql-server php sql sql-server sqlserver

caddy-php's Introduction

THIS REPOSITORY WAS REPLACED BY WCMP

header

caddy-php

tool for setting up a caddy-server with PHP support and optional MariaDB-server

possible rename to WCMP (Windows Caddy MariaDB PHP, e.g. LAMP (Linux Apache MySQL PHP)

Warning

MariaDB-support is still WIP!

About

After some research, I realized that there was no way to set up a caddy server with PHP support without much effort. That's why I created this repository. Later MariaDB-server support was integrated too.

flowchart LR
       User-- HTTP/HTTPS -->Caddy
       Caddy-- "php_fastcgi" -->PHP-CGI
       PHP-CGI-- Result -->Caddy
       PHP-CGI<-.->MariaDB[("\nMariaDB-Server\n(SQL-Server)")]

How to install

Download the .ps1-file from here. Run the script in PowerShell with .\caddy-php.ps1.

The script

  • will suggest available PHP versions and lets you choose.
  • tries to choose the caddy version automatically but lets you choose when it has problems doing so.
  • creates a subfolder named "caddy-php".

How to run

php-cgi -b 127.0.0.1:9000
caddy run --watch

Documentation

Service Documentation
Caddy Link
MariaDB Link
PHP Link

FAQ

Is it portable?

The services used by this project are configured to work portable. Move your installation where you want.

Why MariaDB?

MariaDB is a open-source fork of MySQL. MariaDB provides better performance and more features than MySQL.
More Information on this topic

caddy-php's People

Contributors

hope-it-works avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

caddy-php's Issues

[BUG]: remove caddy's README.md

Describe the bug
After decompressing the caddy file, a README.md appears. This file is not needed and should be deleted by the script.

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.