| | |
| | | $command = 'adduser '.$conf['nginx']['user'].' '.$apps_vhost_group; |
| | | caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command"); |
| | | |
| | | if(!@is_dir($install_dir)) mkdir($install_dir, 0755, true); |
| | | if(!@is_dir($install_dir)){ |
| | | mkdir($install_dir, 0755, true); |
| | | } else { |
| | | chmod($install_dir, 0755); |
| | | } |
| | | chown($install_dir, $apps_vhost_user); |
| | | chgrp($install_dir, $apps_vhost_group); |
| | | |
| | |
| | | $command = 'adduser '.$conf['nginx']['user'].' '.$apps_vhost_group; |
| | | caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command"); |
| | | |
| | | if(!@is_dir($install_dir)) mkdir($install_dir, 0755, true); |
| | | if(!@is_dir($install_dir)){ |
| | | mkdir($install_dir, 0755, true); |
| | | } else { |
| | | chmod($install_dir, 0755); |
| | | } |
| | | chown($install_dir, $apps_vhost_user); |
| | | chgrp($install_dir, $apps_vhost_group); |
| | | |