Skip to content

Commit e6612d9

Browse files
author
Szekeres Bálint
committed
support for HHVM sockets
fixes digitalocean#24
1 parent b03970e commit e6612d9

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

public/assets/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
fallback_php_path: '/api/',
6565

6666
php: true,
67-
php_connection: '7.2',
67+
php_connection: '/var/run/php/php7.2-fpm.sock',
6868
wordpress: false,
6969
drupal: false,
7070

public/index.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -384,12 +384,14 @@
384384
</label>
385385
<div class="col-sm-9">
386386
<select class="custom-select form-control-sm" ng-model="data.php_connection" ng-class="{ 'input-changed': data.php_connection !== defaultData.php_connection }">
387-
<option value="tcp">TCP</option>
388-
<option value="5.x">5.x socket</option>
389-
<option value="7.0">7.0 socket</option>
390-
<option value="7.1">7.1 socket</option>
391-
<option value="7.2">7.2 socket</option>
392-
<option value="7.3">7.3 socket</option>
387+
<option value="127.0.0.1:9000">TCP: 127.0.0.1:9000</option>
388+
<option value="/var/run/hhvm/sock">HHVM socket: /var/run/hhvm/sock</option>
389+
<option value="/var/run/hhvm/hhvm.sock">HHVM socket: /var/run/hhvm/hhvm.sock</option>
390+
<option value="/var/run/php5-fpm.sock">5.x socket: /var/run/php5-fpm.sock</option>
391+
<option value="/var/run/php/php7.0-fpm.sock">7.0 socket: /var/run/php/php7.0-fpm.sock</option>
392+
<option value="/var/run/php/php7.1-fpm.sock">7.1 socket: /var/run/php/php7.1-fpm.sock</option>
393+
<option value="/var/run/php/php7.2-fpm.sock">7.2 socket: /var/run/php/php7.2-fpm.sock</option>
394+
<option value="/var/run/php/php7.3-fpm.sock">7.3 socket: /var/run/php/php7.3-fpm.sock</option>
393395
</select>
394396
</div>
395397
</div>

public/templates/conf/nginxconfig.io/php_fastcgi.conf.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
try_files $uri =404;
22

33
# fastcgi
4-
fastcgi_pass {{
5-
data.php_connection === 'tcp' ? '127.0.0.1:9000' : (
6-
data.php_connection === '5.x' ? 'unix:/var/run/php5-fpm.sock' : (
7-
'unix:/var/run/php/php' + data.php_connection +'-fpm.sock'
8-
)
9-
)
10-
}};
4+
fastcgi_pass {{ data.php_connection[0] === '/' ? 'unix:' : '' }}{{ data.php_connection }};
115
fastcgi_index index.php;
126
fastcgi_split_path_info ^(.+\.php)(/.+)$;
137
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

0 commit comments

Comments
 (0)