I have a CentOS 7.3 instance at DigitalOcean (DO) running Plesk Onyx 17.5.3 and Apache 2.4.6. The use of nginx is disabled so Apache is acting alone. (Tools & Settings > Services Management > Reverse Proxy Server (nginx) stopped.) Externally, Wappalyzer reports that the server in use is Apache.
If .php files are located on a DO bulk storage volume, the server cannot find them and returns a status of 404 -- but also emits the text "No input file specified" which seems to come from nginx, though that service is not proxying.
These tests are in directories test-local and test-remote under the webroot. All test files, directories, and symlinks are owned (in the sense of Linux ownership and permissions) by the owner of the webroot.
You can try the tests at the following URLs:
the test
Hello, world!
phpinfo()
the test
Hello, world!
http://exfacto.com/test-remote/test.php
_________________
Test files:
Two sets of one each .html, .pl, and .php -- one set in a local directory and one set symlinked to a directory on a DO volume:
# [do: httpdocs] 797 > pwd
/var/www/vhosts/exfacto.com/httpdocs
# [do: httpdocs] 798 > ls -lFd test*
drwxr-xr-x 2 gs-exfa psacln 4096 Aug 7 11:28 test-local/
lrwxrwxrwx 1 gs-exfa psacln 37 Aug 7 11:26 test-remote -> /mnt/extrnal/test-remote/
# [do: httpdocs] 799 > ls -lF test*/
test-local/:
total 12
-rw-r--r-- 1 gs-exfa psacln 222 Aug 7 11:27 test.html
-rw-r--r-- 1 gs-exfa psacln 18 Aug 7 11:27 test.php
-rwxr-xr-x 1 gs-exfa psacln 170 Aug 7 11:27 test.pl*
test-remote/:
total 12
-rw-r--r-- 1 gs-exfa psacln 222 Aug 5 11:38 test.html
-rw-r--r-- 1 gs-exfa psacln 18 Aug 6 19:57 test.php
-rwxr-xr-x 1 gs-exfa psacln 170 Aug 7 11:25 test.pl*
# [do: httpdocs] 800 >
_________________
Results:
the test works
Hello, world! works
phpinfo() works
the test works
Hello, world! works
http://exfacto.com/test-remote/test.php "No input file specified." -- status 404
P.S. -- I didn't know that this forum software would replace the URLs I included with linked text derived from visiting them. You can see that the latter, test-remote, case cannot be resolved in that way.
If .php files are located on a DO bulk storage volume, the server cannot find them and returns a status of 404 -- but also emits the text "No input file specified" which seems to come from nginx, though that service is not proxying.
These tests are in directories test-local and test-remote under the webroot. All test files, directories, and symlinks are owned (in the sense of Linux ownership and permissions) by the owner of the webroot.
You can try the tests at the following URLs:
the test
Hello, world!
phpinfo()
the test
Hello, world!
http://exfacto.com/test-remote/test.php
_________________
Test files:
Two sets of one each .html, .pl, and .php -- one set in a local directory and one set symlinked to a directory on a DO volume:
# [do: httpdocs] 797 > pwd
/var/www/vhosts/exfacto.com/httpdocs
# [do: httpdocs] 798 > ls -lFd test*
drwxr-xr-x 2 gs-exfa psacln 4096 Aug 7 11:28 test-local/
lrwxrwxrwx 1 gs-exfa psacln 37 Aug 7 11:26 test-remote -> /mnt/extrnal/test-remote/
# [do: httpdocs] 799 > ls -lF test*/
test-local/:
total 12
-rw-r--r-- 1 gs-exfa psacln 222 Aug 7 11:27 test.html
-rw-r--r-- 1 gs-exfa psacln 18 Aug 7 11:27 test.php
-rwxr-xr-x 1 gs-exfa psacln 170 Aug 7 11:27 test.pl*
test-remote/:
total 12
-rw-r--r-- 1 gs-exfa psacln 222 Aug 5 11:38 test.html
-rw-r--r-- 1 gs-exfa psacln 18 Aug 6 19:57 test.php
-rwxr-xr-x 1 gs-exfa psacln 170 Aug 7 11:25 test.pl*
# [do: httpdocs] 800 >
_________________
Results:
the test works
Hello, world! works
phpinfo() works
the test works
Hello, world! works
http://exfacto.com/test-remote/test.php "No input file specified." -- status 404
P.S. -- I didn't know that this forum software would replace the URLs I included with linked text derived from visiting them. You can see that the latter, test-remote, case cannot be resolved in that way.
Last edited: