Skip to content

Commit c8d35cd

Browse files
committed
Merge branch 'master' of github.com:mevdschee/php-crud-api
2 parents 57a26a0 + f865cab commit c8d35cd

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ There are also proof-of-concept ports of this script that only support basic RES
3333
- PostGIS 2.0 or higher for spatial features in PostgreSQL 9.1 or higher
3434
- SQL Server 2012 or higher (2017 for Linux support)
3535

36+
## Known issues
37+
38+
- Seeing integers as strings? Make sure to enable the `nd_pdo_mysql` extension and disable `pdo_mysql`.
39+
3640
## Installation
3741

3842
This is a single file application! Upload "`api.php`" somewhere and enjoy!
@@ -858,6 +862,36 @@ To run the functional tests locally you may run the following command:
858862
This runs the functional tests from the "tests" directory. It uses the database dumps (fixtures) and
859863
database configuration (config) from the corresponding subdirectories.
860864

865+
## Nginx config example
866+
```
867+
server {
868+
listen 80 default_server;
869+
listen [::]:80 default_server;
870+
871+
root /var/www/html;
872+
index index.php index.html index.htm index.nginx-debian.html;
873+
server_name server_domain_or_IP;
874+
875+
location / {
876+
try_files $uri $uri/ =404;
877+
}
878+
879+
location ~ [^/]\.php(/|$) {
880+
fastcgi_split_path_info ^(.+\.php)(/.+)$;
881+
try_files $fastcgi_script_name =404;
882+
set $path_info $fastcgi_path_info;
883+
fastcgi_param PATH_INFO $path_info;
884+
fastcgi_index index.php;
885+
include fastcgi.conf;
886+
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
887+
}
888+
889+
location ~ /\.ht {
890+
deny all;
891+
}
892+
}
893+
```
894+
861895
### Docker
862896

863897
Install docker using the following commands and then logout and login for the changes to take effect:

0 commit comments

Comments
 (0)