Browse Source

Delete hhvm v4 PHP is unsupported (#4515)

https://hhvm.com/blog/2019/02/11/hhvm-4.0.0.html
Joan Miquel 6 years ago
parent
commit
f9eef703f6

+ 0 - 50
frameworks/PHP/codeigniter/deploy/config.hdf

@@ -1,50 +0,0 @@
-# main configuration file
-
-# Application PID File
-PidFile = /codeigniter/hhvm.pid
-
-# Server settings
-Server {
-  FileSocket = /codeigniter/hhvm.sock
-  Type = fastcgi
-  SourceRoot = /codeigniter
-  DefaultDocument = index.php
-  GzipCompressionLevel = 0
-  EnableKeepAlive = true
-  AllowRunAsRoot = 1
-}
-
-# Disable logging completely
-Log {
-  UseLogFile = false
-  UseSyslog = false
-  Level = Error
-  #File = /codeigniter/error.log
-}
-
-# Enable jit for production mode
-Eval {
-    Jit = true
-    CheckSymLink = false
-}
-
-# Repo file
-Repo {
-  Central {
-    Path = /codeigniter/.hhvm.bbhc
-  }
-}
-
-# Setup basic rewrite
-VirtualHost {
-    * {
-        Pattern = .*
-        RewriteRules {
-            * {
-                pattern = ^(.*)$
-                to = $1.php
-                qsa = true
-            }
-        }
-    }
-}

+ 0 - 41
frameworks/PHP/codeigniter/deploy/nginx-hhvm.conf

@@ -1,41 +0,0 @@
-user root;
-worker_processes  auto;
-error_log stderr error;
-worker_rlimit_nofile 200000;
-
-events {
-  worker_connections 16384;
-}
-
-http {
-  include /etc/nginx/mime.types;
-  default_type application/octet-stream;
-  access_log off;
-  server_tokens off;
-  sendfile on;
-  keepalive_timeout 65;
-
-  upstream fastcgi_backend {
-    server unix:/codeigniter/hhvm.sock;
-    keepalive 50;
-  }
-
-  server {
-    listen 8080;
-    server_name localhost;
-
-    root /codeigniter/;
-    index index.php;
-
-    location / {
-      try_files $uri /index.php?$uri&$args;
-    }
-
-    location = /index.php {
-      fastcgi_pass fastcgi_backend;
-      fastcgi_keep_conn on;
-      fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;
-      include /etc/nginx/fastcgi_params;
-    }
-  }
-}

+ 0 - 1
frameworks/PHP/codeigniter/hhvm.pid

@@ -1 +0,0 @@
-30169

+ 0 - 23
frameworks/PHP/slim/benchmark_config.json

@@ -24,29 +24,6 @@
       "notes": "",
       "versus": "php"
     },
-    "hhvm": {
-      "plaintext_url": "/plaintext",
-      "json_url": "/json",
-      "db_url": "/db",
-      "query_url": "/dbs?queries=",
-      "update_url": "/updates?queries=",
-      "fortune_url": "/fortunes",
-      "port": 8080,
-      "approach": "Realistic",
-      "classification": "Micro",
-      "database": "MySQL",
-      "framework": "slim",
-      "language": "PHP",
-      "flavor": "HHVM",
-      "orm": "Raw",
-      "platform": "None",
-      "webserver": "nginx",
-      "os": "Linux",
-      "database_os": "Linux",
-      "display_name": "slim",
-      "notes": "",
-      "versus": "php"
-    },
     "php5": {
       "plaintext_url": "/plaintext",
       "json_url": "/json",

+ 0 - 50
frameworks/PHP/slim/deploy/config.hdf

@@ -1,50 +0,0 @@
-# main configuration file
-
-# Application PID File
-PidFile = /home/vagrant/FrameworkBenchmarks/frameworks/PHP/php-slim/hhvm.pid
-
-# Server settings
-Server {
-  FileSocket = /slim/hhvm.sock
-  Type = fastcgi
-  SourceRoot = /slim
-  DefaultDocument = index.php
-  GzipCompressionLevel = 0
-  EnableKeepAlive = true
-  AllowRunAsRoot = 1
-}
-
-# Disable logging completely
-Log {
-  UseLogFile = false
-  UseSyslog = false
-  Level = Error
-  #File = /slim/error.log
-}
-
-# Enable jit for production mode
-Eval {
-    Jit = true
-    CheckSymLink = false
-}
-
-# Repo file
-Repo {
-  Central {
-    Path = /slim/.hhvm.bbhc
-  }
-}
-
-# Setup basic rewrite
-VirtualHost {
-    * {
-        Pattern = .*
-        RewriteRules {
-            * {
-                pattern = ^(.*)$
-                to = $1.php
-                qsa = true
-            }
-        }
-    }
-}

+ 0 - 1
frameworks/PHP/slim/hhvm.pid

@@ -1 +0,0 @@
-29484

+ 0 - 22
frameworks/PHP/slim/slim-hhvm.dockerfile

@@ -1,22 +0,0 @@
-FROM ubuntu:18.10
-
-ARG DEBIAN_FRONTEND=noninteractive
-
-RUN apt-get update -yqq && apt-get install -yqq software-properties-common apt-transport-https > /dev/null
-RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
-RUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xB4112585D386EB94
-RUN add-apt-repository https://dl.hhvm.com/ubuntu
-RUN apt-get update -yqq > /dev/null && \
-    apt-get install -yqq hhvm nginx git unzip php5.6 php5.6-common php5.6-cli php5.6-fpm php5.6-mysql php5.6-xml php5.6-mbstring php5.6-mcrypt  > /dev/null
-
-RUN apt-get install -yqq composer > /dev/null
-
-ADD ./ /slim
-WORKDIR /slim
-
-RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
-
-RUN chmod -R 777 /slim
-
-CMD hhvm -m daemon --config /slim/deploy/config.hdf && \
-    nginx -c /slim/deploy/nginx-hhvm.conf -g "daemon off;"

+ 0 - 23
frameworks/PHP/yii2/benchmark_config.json

@@ -23,29 +23,6 @@
       "display_name": "yii2",
       "notes": "",
       "versus": "php"
-    },
-    "hhvm": {
-      "plaintext_url": "/site/plaintext",
-      "json_url": "/site/json",
-      "db_url": "/site/db",
-      "query_url": "/site/db?queries=",
-      "fortune_url": "/site/fortunes",
-      "update_url": "/site/updates?queries=",
-      "port": 8080,
-      "approach": "Realistic",
-      "classification": "Fullstack",
-      "database": "MySQL",
-      "framework": "yii2",
-      "language": "PHP",
-      "flavor": "HHVM",
-      "orm": "Raw",
-      "platform": "None",
-      "webserver": "nginx",
-      "os": "Linux",
-      "database_os": "Linux",
-      "display_name": "yii2",
-      "notes": "",
-      "versus": "php"
     }
   }]
 }

+ 0 - 50
frameworks/PHP/yii2/deploy/config.hdf

@@ -1,50 +0,0 @@
-# main configuration file
-
-# Application PID File
-PidFile = /yii2/hhvm.pid
-
-# Server settings
-Server {
-  FileSocket = /yii2/hhvm.sock
-  Type = fastcgi
-  SourceRoot = /yii2
-  DefaultDocument = index.php
-  GzipCompressionLevel = 0
-  EnableKeepAlive = true
-  AllowRunAsRoot = 1
-}
-
-# Disable logging completely
-Log {
-  UseLogFile = false
-  UseSyslog = false
-  Level = Error
-  #File = /yii2/error.log
-}
-
-# Enable jit for production mode
-Eval {
-    Jit = true
-    CheckSymLink = false
-}
-
-# Repo file
-Repo {
-  Central {
-    Path = /yii2/.hhvm.hhbc
-  }
-}
-
-# Setup basic rewrite
-VirtualHost {
-    * {
-        Pattern = .*
-        RewriteRules {
-            * {
-                pattern = ^(.*)$
-                to = $1.php
-                qsa = true
-            }
-        }
-    }
-}

+ 0 - 48
frameworks/PHP/yii2/deploy/nginx-hhvm.conf

@@ -1,48 +0,0 @@
-user root;
-worker_processes auto;
-error_log stderr error;
-worker_rlimit_nofile 200000;
-
-events {
-    worker_connections  16384;
-}
-
-http {
-    include /etc/nginx/mime.types;
-    default_type application/octet-stream;
-    access_log off;
-    server_tokens off;
-    sendfile on;
-    keepalive_timeout  65;
-
-    upstream fastcgi_backend {
-        server unix:/yii2/hhvm.sock;
-        keepalive 50;
-    }
-
-    server {
-        listen 8080;
-        server_name localhost;
-
-        root /yii2/app;
-        index index.php;
-
-        location / {
-            try_files $uri $uri/ /index.php?$args;
-        }
-
-        location ~ \.php$ {
-            fastcgi_split_path_info ^(.+\.php)(.*)$;
-            fastcgi_pass fastcgi_backend;
-            fastcgi_keep_conn on;
-            set $fsn /index.php;
-            if (-f $document_root$fastcgi_script_name){
-                set $fsn $fastcgi_script_name;
-            }
-            fastcgi_param  SCRIPT_FILENAME  $document_root$fsn;
-            fastcgi_param  PATH_INFO        $fastcgi_path_info;
-            fastcgi_param  PATH_TRANSLATED  $document_root$fsn;
-            include /etc/nginx/fastcgi_params;
-        }
-    }
-}

+ 0 - 1
frameworks/PHP/yii2/hhvm.pid

@@ -1 +0,0 @@
-28104

+ 0 - 22
frameworks/PHP/yii2/yii2-hhvm.dockerfile

@@ -1,22 +0,0 @@
-FROM ubuntu:18.10
-
-ARG DEBIAN_FRONTEND=noninteractive
-
-RUN apt-get update -yqq && apt-get install -yqq software-properties-common apt-transport-https > /dev/null
-RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
-RUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xB4112585D386EB94
-RUN add-apt-repository https://dl.hhvm.com/ubuntu
-RUN apt-get update -yqq > /dev/null && \
-    apt-get install -yqq hhvm nginx git unzip php7.3 php7.3-common php7.3-cli php7.3-fpm php7.3-mysql php7.3-xml php7.3-mbstring php7.3-mongodb  > /dev/null
-
-RUN apt-get install -yqq composer > /dev/null
-
-ADD ./ /yii2
-WORKDIR /yii2
-
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
-
-RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
-
-CMD hhvm -m daemon --config /yii2/deploy/config.hdf && \
-    nginx -c /yii2/deploy/nginx-hhvm.conf -g "daemon off;"