AnsweredAssumed Answered

FMS 17 PHP page won't load (get permission error instead)

Question asked by bripakes on Oct 20, 2018
Latest reply on Oct 22, 2018 by Suresh

Just move to FMS 17 (from FMS14). Clean installed OS and FMS17. Copied over databases and http files. Changed permissions to fmserver:fmsadmin. I can open databases using either FM16 client or WebDirect, but when I try to open a PHP page, I get:

 

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. You don't have permission to access the requested object. It is either read-protected or not readable by the server.

 

I read that I needed to enable PHP. So I did:

fmsadmin set cwpconfig enablephp=true

fmsadmin restart server

fmsadmin get cwpconfig

username (administrator):

password:

EnablePHP = true

EnableXML = false

Encoding = UTF-8 [ UTF-8 ISO-8859-1 ]

Locale = en [ en de fr it ja sv ]

PreValidation = false

UseFMPHP = true

 

I then checked the permissions on my folder called "directory":

mac-mini:~ administrator$ sudo ls -al /Library/FileMaker\ Server/HTTPServer/htdocs/directory

total 184

drwxrwxrwx@ 17 fmserver  fmsadmin   544 Mar  9  2017 .

drwxrwxr-x  10 fmserver  fmsadmin   320 Oct 20 21:24 ..

-rwxrwxrwx@  1 fmserver  fmsadmin  3965 Jul 18  2017 advanced.php

-rwxrwxrwx@  1 fmserver  fmsadmin  1347 Jul 17  2017 containerBridge.php

-rwxrwxrwx@  1 fmserver  fmsadmin  1608 Jul 17  2017 dbaccess.php

-rwxrwxrwx@  1 fmserver  fmsadmin  4070 Jul 17  2017 index.php

-rwxrwxrwx   1 fmserver  fmsadmin    43 Sep 15  2015 invisible_dot.gif

-rwxrwxrwx@  1 fmserver  fmsadmin  5509 Jul 21  2017 namesearch.php

-rwxrwxrwx@  1 fmserver  fmsadmin  5973 Mar  7  2017 namesearch_old.php

-rwxrwxrwx@  1 fmserver  fmsadmin  5930 Oct  2  2017 phonesearchAdv.php

-rwxrwxrwx@  1 fmserver  fmsadmin  6240 Sep 15  2015 phonesearchAdv_old.php

-rwxrwxrwx@  1 fmserver  fmsadmin  1456 Oct  2  2017 showall.php

-rwxrwxrwx@  1 fmserver  fmsadmin  8023 Sep 15  2015 signout_phonelist.htm

-rwxrwxrwx@  1 fmserver  fmsadmin  5590 Jul 21  2017 unitsearch.php

-rwxrwxrwx@  1 fmserver  fmsadmin  5595 Jul 21  2017 visitors.php

-rwxrwxrwx   1 fmserver  fmsadmin  3093 Jan 26  2017 visitors22.php

-rwxrwxrwx@  1 fmserver  fmsadmin  5886 Jan 26  2017 visitors_old.php

 

What else do I need to do in order to get past this crazy error?

 

Thank you,

 

Brian Paquin

Outcomes