WebserverTest.js (897B)
1 /** 2 * Tests if the web server can handle pathInfo 3 */ 4 Ext.define('PartKeeprSetup.WebserverTest', { 5 extend: 'PartKeeprSetup.AbstractTest', 6 action: 'webserverTest', 7 name: "PHP", 8 message: "Testing webserver settings", 9 onFailure: function (response) { 10 this.success = false; 11 this.resultMessage = "Web Server misconfiguration"; 12 this.errors = ['Web Server Configuration error. Please read our <a href="https://wiki.partkeepr.org/wiki/KB00005:Web_Server_Configuration" target="_blank">wiki about the proper web server configuration</a>', response.responseText]; 13 this.errors.push('Error 1: Tried to send a POST request to setup/webserverTest and it did not succeed.'); 14 if (this.callback) { 15 this.callback.appendTestResult(this); 16 } 17 18 if (this.success) { 19 this.fireEvent("complete", this); 20 } 21 } 22 });