Browse files

add apache example

  • Loading branch information...
1 parent b3523ce commit d27b798aab3524168a398056150bd900619fa5ba @helgi committed Jan 27, 2012
Showing with 14 additions and 1 deletion.
  1. +14 −1 README.md
View
15 README.md
@@ -7,4 +7,17 @@ To run any of the create scripts you will have to pass in -d phar.readonly=0 or
### phpMyAdmin
-Due to Phar not liking relative paths so the phpmyadmin example isn't working right now
+Due to Phar not liking relative paths so the phpmyadmin example isn't working right now
+
+### Apache
+Example of how you can run Phar in apache
+
+`AddType application/x-httpd-php .php .phar`
+
+```
+<VirtualHost *:80>
+ ServerName phar.dev
+ DocumentRoot /path/to/phar-talk-examples/web/
+ DirectoryIndex project.phar
+</VirtualHost>
+```

0 comments on commit d27b798

Please sign in to comment.