Skip to content

Commit 35d6f68

Browse files
Merge pull request #36 from Nyholm/apache24
Added readme for apache 2.4.10+
2 parents 27518a1 + 69a588e commit 35d6f68

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,32 @@ server {
8787
# ...
8888
}
8989
```
90+
### Apache 2.4.10 +
9091

91-
### Apache
92+
If you are using Apache 2.4.10 or later you need to use [mod_proxy_fcgi](https://httpd.apache.org/docs/2.4/mod/mod_proxy_fcgi.html).
93+
You need to use a process manager such as [supervisord](http://supervisord.org/) to manage instances of your application.
94+
For development you only need to start you application with:
95+
96+
```sh
97+
php /path/to/application.php run --port=5000 --host=localhost
98+
99+
# Or with Symfony:
100+
php /path/to/bin/console speedfony:run --env=prod --port=5000 --host=localhost
101+
```
102+
103+
Then add the following to your VirtualHost config:
104+
105+
```
106+
<FilesMatch ^index\.php$>
107+
SetHandler "proxy:fcgi://127.0.0.1:5000"
108+
</FilesMatch>
109+
```
110+
111+
Go to `http://127.0.0.1/index.php` to test your setup. Note that index.php needs
112+
to exist but could be an empty file.
113+
114+
115+
### Apache 2.0 - 2.2
92116

93117
If you wish to configure your FastCGI application to work with the apache web server, you can use the apache FastCGI module to process manage your application.
94118

0 commit comments

Comments
 (0)