I recently moved my cakephp 3 dev environment onto a network share.
The server in question has only had a path change for the nginx webroot (root /var/www/webroot
, to root /mnt/dev/webroot
).
I am mounting the CIFS share via /etc/fstab
as follows:
//nfs/WebDev /mnt/dev cifs username=webdev,password=hunter2,gid=www-data,uid=www-data,rw,noserverino 0 0
For some reason cakephp index page times out when I access the index page (nginx 504: Gateway Timeout). If I create a test script of
<?php
phpinfo();
The page loads instantly with the correct output - this shows there should be no issue between nginx and php-fpm.
When I run time /mnt/dev/webroot/index.php
from the shell, I get the correct HTML output and the command executes in less than 1 second. This shows that php-cli can read from the NFS share and executes properly.
I am at a total loss as to what has caused the dev server to completely break and would gladly appreciate any help into understanding why it is being an absolute utter pain!
Config Files (sorry I had to link all the config files on a single page).
Edit:
- If I run
php -S localhost:8080
on Windows on the webroot directory, everything works fine - If I run
php -S dev.local:8080
on the Dev Server on the webroot directory, everything runs and I can access it from my Windows machine