TMC
Verified User
DA does not have a "normall" SSI environment
- Claim: the default configuration of Direct Admin does not provide a "server-wide normal SSI environment".
Now that we have your attention, this is an advance apology for making the sweeping generalization above. We're very much aware that a number of overlapping issues are to blame for this long-standing problem. Numerous existing forum threads can be found here and on other boards which discuss partial problems and partial solutions.
What we're very specifically trying to do here is to create a SINGLE forum thread which clearly and unarguably documents DA's default SSI configuration. More importantly we seek to document the absolute and unequivocal solution to the specific SSI problem illustated below, so that inexperienced DA customers such as ourselves can resolve it! **NO** OFF-TOPIC POSTS please.
Here are two initial examples which we offer for comment and diagnosis. As you can see we have installed the same set of files with the same permissions (644) on two different servers (one without DA and one with DA). Feel free to copy and test on your own server.
EXAMPLE #1: "NORMAL SERVER-WIDE SSI ENVIRONMENT (NON-DA SERVER)"
http://www.suttonweb.com/ssitest.htm (this is the test script; it runs correctly here)
http://www.suttonweb.com/ssitest.htm_source.txt (this is just for your reference)
http://www.suttonweb.com/htaccess_source.txt (this is just for your reference)
http://www.suttonweb.com/phpinfo.php (4.3.9 just for your reference)
EXAMPLE #2: "ABNORMAL SERVER-WIDE SSI ENVIRONMENT (DA SERVER) WITH DEFAULT PERMISSIONS"
http://www.wlys.com/ssitest.htm (this is the test script; it does NOT run correctly here)
http://www.wlys.com/ssitest.htm_source.txt (this is just for your reference)
http://www.wlys.com/htaccess_source.txt (this is just for your reference)
http://www.wlys.com/phpinfo.php (4.3.8 just for your reference)
Some possibly relevant info common to both servers:
The default virtual root folder ("public_html") permissions are active ("750").
The default virtual cgi-bin folder ("public_html/cgi-bin/") permissions are active ("755").
The .htaccess files and individual file permissions are identical on both servers.
We do not have root on the NORMAL server, but we do have root and DA admin on the ABNORMAL server.
Questions:
[1] Using the NORMAL server, why does http://www.suttonweb.com/ssitest1.php work with
permissions 644? (see http://www.suttonweb.com/ssitest1.php_source.txt for the source code)
We assume it should not because there is no Exec permission on the file.
[2] Using the ABNORMAL server (with DA), why does http://www.wlys.com/ssitest1.php work with
permissions 644? (see identical source http://www.wlys.com/ssitest1.php_source.txt)
Again we assume it should not because there is no Exec permission on the file.
[3] Using the NORMAL server, why does http://www.suttonweb.com/cgi-bin/ssitest1.php work with
permissions 644? Again there is no Exec permission on the file.
[4] Using the NORMAL server, why does http://www.suttonweb.com/cgi-bin/ssitest1.php_source.txt
generate an error? It has the same permissions as item [3] which works fine.
[5] Using the ABNORMAL server (with DA), why does http://www.wlys.com/cgi-bin/ssitest1.php
generate an error? (see item [3] which works without error, also
http://www.wlys.com/ssitest1.php_source.txt for the identical source)
[6] Using the NORMAL server, why does http://www.suttonweb.com/ssitest.htm work, but using the
ABNORMAL server (with DA), http://www.wlys.com/ssitest.htm does not? (see
http://www.suttonweb.com/ssitest.htm_source.txt or http://www.wlys.com/ssitest.htm_source.txt
for the identical sources)
Please do not hesitate to identify any "obvious" errors in the above claim and/or examples. Also if you believe any information is missing please state what and why!
Last edited: