Chmod php-cgi binary so that it has execute permissions.
This commit is contained in:
parent
fbf74957c2
commit
0e481f5fbb
1 changed files with 5 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ var phpwebkit = {
|
|||
var os = require('os');
|
||||
var os = os.platform();
|
||||
var pw = this;
|
||||
var fs = require('fs');
|
||||
|
||||
process.on('uncaughtException', function(err){
|
||||
pw.changeState('<strong>'+err+'</strong>', '#CD0000');
|
||||
|
|
@ -27,6 +28,9 @@ var phpwebkit = {
|
|||
}
|
||||
}
|
||||
|
||||
// set the permissions to be able to execute
|
||||
fs.chmodSync(process.cwd() + bin.slice(1), 0755);
|
||||
|
||||
this.fileExists(bin, function(result){
|
||||
if(result === false) {
|
||||
return 'php-cgi';
|
||||
|
|
@ -102,4 +106,4 @@ var phpwebkit = {
|
|||
|
||||
};
|
||||
|
||||
phpwebkit.runApp();
|
||||
phpwebkit.runApp();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue