Skip to content

Commit 04590b3

Browse files
committed
add documentation about rpm packages and how to install extensions
1 parent f224ffa commit 04590b3

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# FrankenPHP: Modern App Server for PHP
22

3-
<h1 align="center"><a href="https://frankenphp.dev"><img src="frankenphp.png" alt="FrankenPHP" width="600"></a></h1>
3+
<h1 style="text-align: center;"><a href="https://frankenphp.dev"><img src="frankenphp.png" alt="FrankenPHP" style="width: 600px;"></a></h1>
44

55
FrankenPHP is a modern application server for PHP built on top of the [Caddy](https://caddyserver.com/) web server.
66

@@ -43,6 +43,21 @@ You can also run command-line scripts with:
4343
frankenphp php-cli /path/to/your/script.php
4444
```
4545

46+
### RPM Packages
47+
48+
We offer rpm packages for Red Hat Enterprise Linux 7 to 10. To install, run
49+
50+
```bash
51+
sudo dnf install https://rpm.henderkes.com/static-php-1-0.noarch.rpm
52+
sudo dnf module enable php-zts:static-8.4 # optional, defaults to 8.4, 8.2-8.4 available
53+
sudo dnf install frankenphp
54+
# to install extensions:
55+
sudo dnf install php-zts-xdebug
56+
# if an extension is not available by default, install it with pie
57+
sudo dnf install php-zts-devel
58+
sudo pie install asgrim/example-pie-extension --with-php-config=php-config-zts
59+
```
60+
4661
### Docker
4762

4863
Alternatively, [Docker images](https://frankenphp.dev/docs/docker/) are available:
@@ -76,6 +91,8 @@ To serve the content of the current directory, run:
7691
frankenphp php-server
7792
```
7893

94+
If you need extensions, you will have to install them with [pie](https://github.com/php/pie).
95+
7996
## Docs
8097

8198
- [Classic mode](https://frankenphp.dev/docs/classic/)

0 commit comments

Comments
 (0)