Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hope-it-works/caddy-php
tool for setting up a caddy-server with PHP support and optional MariaDB-server
https://github.com/hope-it-works/caddy-php
caddy-server caddy2 caddyserver mariadb mariadb-database mariadb-mysql mariadb-server mysql mysql-database mysql-server php sql sql-server sqlserver
Last synced: 3 months ago
JSON representation
tool for setting up a caddy-server with PHP support and optional MariaDB-server
- Host: GitHub
- URL: https://github.com/hope-it-works/caddy-php
- Owner: Hope-IT-Works
- License: apache-2.0
- Archived: true
- Created: 2022-05-18T16:05:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-06T20:20:22.000Z (almost 2 years ago)
- Last Synced: 2024-09-27T11:04:31.187Z (3 months ago)
- Topics: caddy-server, caddy2, caddyserver, mariadb, mariadb-database, mariadb-mysql, mariadb-server, mysql, mysql-database, mysql-server, php, sql, sql-server, sqlserver
- Language: PowerShell
- Homepage:
- Size: 41 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# THIS REPOSITORY WAS REPLACED BY [WCMP](https://github.com/Hope-IT-Works/WCMP)
![header](https://user-images.githubusercontent.com/52013820/174985791-9bc8cc40-f924-402f-a287-e95fc9504f25.png)
# 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.
```mermaid
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](./src/). 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](https://caddyserver.com/docs/command-line) |
| MariaDB | [Link](https://mariadb.com/kb/en/documentation/) |
| PHP | [Link](https://www.php.net/manual/en/features.commandline.options.php) |## 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