├── LICENSE ├── README.md ├── bin ├── control └── setup ├── env ├── COMPOSER_HOME.erb ├── NGINX_CONFIG_FILE.erb ├── NGINX_PID_FILE.erb ├── OPENSHIFT_PHP_LD_LIBRARY_PATH_ELEMENT.erb ├── OPENSHIFT_PHP_LOG_DIR.erb ├── OPENSHIFT_PHP_PATH_ELEMENT.erb ├── PHPRC.erb ├── PHP_FPM_CONFIG_FILE.erb ├── PHP_FPM_PID_FILE.erb └── PHP_INI_SCAN_DIR.erb ├── etc ├── cartridge_version ├── fastcgi_params ├── mime.types ├── nginx.conf.erb ├── openshift_params.erb ├── php.ini.erb └── www.conf.erb ├── hooks └── publish-http-url ├── lib ├── composer └── util ├── metadata ├── managed_files.yml └── manifest.yml ├── template ├── .openshift │ ├── action_hooks │ │ └── deploy │ └── markers │ │ └── .gitkeep ├── config │ ├── nginx.d │ │ ├── default.conf.erb │ │ └── export_env.erb │ └── php.d │ │ ├── .gitkeep │ │ └── extensions.ini └── www │ ├── index.php │ └── static │ └── openshift-logo.png └── usr ├── bin ├── build_config ├── composer ├── manifest.py ├── php ├── service ├── update └── version ├── lib64 ├── ld-linux-x86-64.so.2 ├── libc.so.6 ├── libcom_err.so.2 ├── libcrypt.so.1 ├── libcrypto.so.10 ├── libdl.so.2 ├── libedit.so.0 ├── libfreebl3.so ├── libgcc_s.so.1 ├── libgssapi_krb5.so.2 ├── libk5crypto.so.3 ├── libkeyutils.so.1 ├── libkrb5.so.3 ├── libkrb5support.so.0 ├── libm.so.6 ├── libncurses.so.5 ├── libnsl.so.1 ├── libpthread.so.0 ├── libresolv.so.2 ├── librt.so.1 ├── libselinux.so.1 ├── libssl.so.10 ├── libstdc++.so.6 ├── libtinfo.so.5 ├── libxml2.so.2 ├── libz.so.1 └── php │ └── modules │ ├── apcu.so │ ├── bcmath.so │ ├── bz2.so │ ├── calendar.so │ ├── ctype.so │ ├── curl.so │ ├── dom.so │ ├── exif.so │ ├── fileinfo.so │ ├── ftp.so │ ├── gd.so │ ├── gettext.so │ ├── gmp.so │ ├── iconv.so │ ├── imagick.so │ ├── imap.so │ ├── intl.so │ ├── json.so │ ├── mbstring.so │ ├── mcrypt.so │ ├── mongodb.so │ ├── mysqli.so │ ├── pdo.so │ ├── pdo_mysql.so │ ├── pdo_pgsql.so │ ├── pdo_sqlite.so │ ├── pgsql.so │ ├── phar.so │ ├── posix.so │ ├── shmop.so │ ├── simplexml.so │ ├── soap.so │ ├── sockets.so │ ├── sqlite3.so │ ├── sysvmsg.so │ ├── sysvsem.so │ ├── sysvshm.so │ ├── tidy.so │ ├── tokenizer.so │ ├── wddx.so │ ├── xdebug.so │ ├── xml.so │ ├── xmlreader.so │ ├── xmlwriter.so │ ├── xsl.so │ └── zip.so └── sbin ├── nginx └── php-fpm /LICENSE: -------------------------------------------------------------------------------- 1 | Licensed under the Apache License, Version 2.0 (the "License"); 2 | you may not use this file except in compliance with the License. 3 | You may obtain a copy of the License at 4 | 5 | http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | Unless required by applicable law or agreed to in writing, software 8 | distributed under the License is distributed on an "AS IS" BASIS, 9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | See the License for the specific language governing permissions and 11 | limitations under the License. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # OpenShift Nginx PHP 7 Cartridge 2 | Nginx 1.9 with PHP 7.0 on OpenShift. 3 | 4 | * Nginx: 1.11.6 5 | * PHP: 7.0.13 6 | * Composer: 1.2.4 7 | 8 | ## Installation 9 | 10 | ### Web Console 11 | Run+PHP+7+on+OpenShift 12 | 13 | Alternatively, you can use this [cartridge definition](http://cartreflect-claytondev.rhcloud.com/github/pinodex/openshift-cartridge-nginx-php7) on application creation page. 14 | 15 | 16 | ### Command Line 17 | ``` 18 | rhc app create appname http://cartreflect-claytondev.rhcloud.com/github/pinodex/openshift-cartridge-nginx-php7 19 | ``` 20 | 21 | ## Updates 22 | You can update the binaries from the cartridge without reinstalling. To check for updates, SSH to your app and run this command: 23 | 24 | ``` 25 | update 26 | ``` 27 | Make sure to have your backup just in case some things went wrong. 28 | 29 | ## Composer 30 | This cartridge supports Composer right out of the box. 31 | 32 | To enable `composer install` on deploy, uncomment this line from `.openshift/action_hooks/deploy`: 33 | 34 | ``` 35 | #cd $OPENSHIFT_REPO_DIR; composer install 36 | ``` 37 | 38 | ## Configuration 39 | 40 | ### Nginx 41 | Nginx will automatically include `config/nginx.d/*.conf` files. `.conf.erb` files will be parsed and included also. 42 | 43 | ### PHP-FPM 44 | PHP-FPM will automatically load `config/php.d/*.ini` files. `.ini.erb` files will be parsed and included also. 45 | 46 | ## Website 47 | The web root directory is `www/`. Make changes to your website there, then commit and push. 48 | 49 | ## Scripts 50 | This cartridge comes with different scripts for easy management of your app inside SSH. 51 | 52 | * `version` - Get the version of the cartridge and the binaries. 53 | * `service` - A psuedo `/usr/sbin/service` to start and stop services. Example: 54 | * `service php-fpm stop` 55 | * `service nginx stop` 56 | * `service nginx configtest` 57 | * `build_config` - Parses config templates to actual config file. Can be used after editing `*.erb` config files. 58 | * `update` - Allows automatic update of the cartridge binaries. 59 | * `update check` - Check for updates 60 | * `update install` - Install updates 61 | * `update rollback` - Rollback to previous version after update` 62 | -------------------------------------------------------------------------------- /bin/control: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | source $OPENSHIFT_CARTRIDGE_SDK_BASH 4 | 5 | function create_dirs() { 6 | mkdir -p ${OPENSHIFT_PHP_DIR}{logs,run,tmp,sessions} 7 | mkdir -p ${OPENSHIFT_PHP_LOG_DIR}/{nginx,php} 8 | mkdir -p ${OPENSHIFT_DATA_DIR}/php-session 9 | 10 | mkdir -p /tmp/nginx 11 | mkdir -p /tmp/nginx/{client_body,prox,fcgi,uwsgi,scgi} 12 | } 13 | 14 | function start() { 15 | create_dirs 16 | build_config 17 | 18 | service php-fpm start 19 | service nginx start 20 | } 21 | 22 | function stop() { 23 | service php-fpm stop 24 | service nginx stop 25 | } 26 | 27 | function configtest() { 28 | service php-fpm configtest 29 | service nginx configtest 30 | } 31 | 32 | function status() { 33 | if $(curl -I http://$OPENSHIFT_PHP_IP:$OPENSHIFT_PHP_PORT/ 2>&1 ) 34 | then 35 | client_result "Application is running" 36 | else 37 | client_result "Application is either stopped or inaccessible" 38 | fi 39 | } 40 | 41 | function tidy() { 42 | client_message "Emptying log dir: $OPENSHIFT_PHP_LOG_DIR" 43 | 44 | shopt -s dotglob 45 | rm -rf $OPENSHIFT_PHP_LOG_DIR/* 46 | 47 | create_dirs 48 | 49 | return 0 50 | } 51 | 52 | case "$1" in 53 | start) start;; 54 | stop) stop;; 55 | restart) stop; start;; 56 | status) status;; 57 | configtest) configtest ;; 58 | tidy) tidy;; 59 | build) exit 0;; 60 | deploy) exit 0;; 61 | *) exit 0 62 | esac -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- 1 | #!/bin/bash -eu 2 | 3 | # Create additional directories required by the app 4 | mkdir -p ${OPENSHIFT_PHP_DIR}{logs,run,tmp,sessions} 5 | mkdir -p ${OPENSHIFT_PHP_LOG_DIR}/{nginx,php} 6 | mkdir -p ${OPENSHIFT_DATA_DIR}/php-session 7 | 8 | # Create additional directories required by nginx 9 | mkdir -p /tmp/nginx 10 | mkdir -p /tmp/nginx/{client_body,prox,fcgi,uwsgi,scgi} 11 | -------------------------------------------------------------------------------- /env/COMPOSER_HOME.erb: -------------------------------------------------------------------------------- 1 | <%= ENV['OPENSHIFT_DATA_DIR'] %>.composer -------------------------------------------------------------------------------- /env/NGINX_CONFIG_FILE.erb: -------------------------------------------------------------------------------- 1 | <%= ENV['OPENSHIFT_PHP_DIR'] %>etc/nginx.conf -------------------------------------------------------------------------------- /env/NGINX_PID_FILE.erb: -------------------------------------------------------------------------------- 1 | <%= ENV['OPENSHIFT_PHP_DIR'] %>run/nginx.pid -------------------------------------------------------------------------------- /env/OPENSHIFT_PHP_LD_LIBRARY_PATH_ELEMENT.erb: -------------------------------------------------------------------------------- 1 | <%= ENV['OPENSHIFT_PHP_DIR'] %>usr/lib64/ -------------------------------------------------------------------------------- /env/OPENSHIFT_PHP_LOG_DIR.erb: -------------------------------------------------------------------------------- 1 | <%= ENV['OPENSHIFT_PHP_DIR'] %>logs/ -------------------------------------------------------------------------------- /env/OPENSHIFT_PHP_PATH_ELEMENT.erb: -------------------------------------------------------------------------------- 1 | <%= ENV['OPENSHIFT_PHP_DIR'] %>usr/bin:<%= ENV['OPENSHIFT_PHP_DIR'] %>usr/sbin:<%= ENV['OPENSHIFT_DATA_DIR'] %>.composer/vendor/bin -------------------------------------------------------------------------------- /env/PHPRC.erb: -------------------------------------------------------------------------------- 1 | <%= ENV['OPENSHIFT_PHP_DIR'] %>etc/php.ini -------------------------------------------------------------------------------- /env/PHP_FPM_CONFIG_FILE.erb: -------------------------------------------------------------------------------- 1 | <%= ENV['OPENSHIFT_PHP_DIR'] %>etc/www.conf -------------------------------------------------------------------------------- /env/PHP_FPM_PID_FILE.erb: -------------------------------------------------------------------------------- 1 | <%= ENV['OPENSHIFT_PHP_DIR'] %>run/php-fpm.pid -------------------------------------------------------------------------------- /env/PHP_INI_SCAN_DIR.erb: -------------------------------------------------------------------------------- 1 | <%= ENV['OPENSHIFT_REPO_DIR'] %>config/php.d/ -------------------------------------------------------------------------------- /etc/cartridge_version: -------------------------------------------------------------------------------- 1 | 1.9.0 2 | -------------------------------------------------------------------------------- /etc/fastcgi_params: -------------------------------------------------------------------------------- 1 | 2 | fastcgi_param QUERY_STRING $query_string; 3 | fastcgi_param REQUEST_METHOD $request_method; 4 | fastcgi_param CONTENT_TYPE $content_type; 5 | fastcgi_param CONTENT_LENGTH $content_length; 6 | 7 | fastcgi_param SCRIPT_NAME $fastcgi_script_name; 8 | fastcgi_param REQUEST_URI $request_uri; 9 | fastcgi_param DOCUMENT_URI $document_uri; 10 | fastcgi_param DOCUMENT_ROOT $document_root; 11 | fastcgi_param SERVER_PROTOCOL $server_protocol; 12 | fastcgi_param REQUEST_SCHEME $scheme; 13 | fastcgi_param HTTPS $https if_not_empty; 14 | 15 | fastcgi_param GATEWAY_INTERFACE CGI/1.1; 16 | fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; 17 | 18 | fastcgi_param REMOTE_ADDR $remote_addr; 19 | fastcgi_param REMOTE_PORT $remote_port; 20 | fastcgi_param SERVER_ADDR $server_addr; 21 | fastcgi_param SERVER_PORT $server_port; 22 | fastcgi_param SERVER_NAME $server_name; 23 | 24 | # PHP only, required if PHP was built with --enable-force-cgi-redirect 25 | fastcgi_param REDIRECT_STATUS 200; 26 | -------------------------------------------------------------------------------- /etc/mime.types: -------------------------------------------------------------------------------- 1 | 2 | types { 3 | text/html html htm shtml; 4 | text/css css; 5 | text/xml xml; 6 | image/gif gif; 7 | image/jpeg jpeg jpg; 8 | application/javascript js; 9 | application/atom+xml atom; 10 | application/rss+xml rss; 11 | 12 | text/mathml mml; 13 | text/plain txt; 14 | text/vnd.sun.j2me.app-descriptor jad; 15 | text/vnd.wap.wml wml; 16 | text/x-component htc; 17 | 18 | image/png png; 19 | image/tiff tif tiff; 20 | image/vnd.wap.wbmp wbmp; 21 | image/x-icon ico; 22 | image/x-jng jng; 23 | image/x-ms-bmp bmp; 24 | image/svg+xml svg svgz; 25 | image/webp webp; 26 | 27 | application/font-woff woff; 28 | application/java-archive jar war ear; 29 | application/json json; 30 | application/mac-binhex40 hqx; 31 | application/msword doc; 32 | application/pdf pdf; 33 | application/postscript ps eps ai; 34 | application/rtf rtf; 35 | application/vnd.apple.mpegurl m3u8; 36 | application/vnd.ms-excel xls; 37 | application/vnd.ms-fontobject eot; 38 | application/vnd.ms-powerpoint ppt; 39 | application/vnd.wap.wmlc wmlc; 40 | application/vnd.google-earth.kml+xml kml; 41 | application/vnd.google-earth.kmz kmz; 42 | application/x-7z-compressed 7z; 43 | application/x-cocoa cco; 44 | application/x-java-archive-diff jardiff; 45 | application/x-java-jnlp-file jnlp; 46 | application/x-makeself run; 47 | application/x-perl pl pm; 48 | application/x-pilot prc pdb; 49 | application/x-rar-compressed rar; 50 | application/x-redhat-package-manager rpm; 51 | application/x-sea sea; 52 | application/x-shockwave-flash swf; 53 | application/x-stuffit sit; 54 | application/x-tcl tcl tk; 55 | application/x-x509-ca-cert der pem crt; 56 | application/x-xpinstall xpi; 57 | application/xhtml+xml xhtml; 58 | application/xspf+xml xspf; 59 | application/zip zip; 60 | 61 | application/octet-stream bin exe dll; 62 | application/octet-stream deb; 63 | application/octet-stream dmg; 64 | application/octet-stream iso img; 65 | application/octet-stream msi msp msm; 66 | 67 | application/vnd.openxmlformats-officedocument.wordprocessingml.document docx; 68 | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx; 69 | application/vnd.openxmlformats-officedocument.presentationml.presentation pptx; 70 | 71 | audio/midi mid midi kar; 72 | audio/mpeg mp3; 73 | audio/ogg ogg; 74 | audio/x-m4a m4a; 75 | audio/x-realaudio ra; 76 | 77 | video/3gpp 3gpp 3gp; 78 | video/mp2t ts; 79 | video/mp4 mp4; 80 | video/mpeg mpeg mpg; 81 | video/quicktime mov; 82 | video/webm webm; 83 | video/x-flv flv; 84 | video/x-m4v m4v; 85 | video/x-mng mng; 86 | video/x-ms-asf asx asf; 87 | video/x-ms-wmv wmv; 88 | video/x-msvideo avi; 89 | } 90 | -------------------------------------------------------------------------------- /etc/nginx.conf.erb: -------------------------------------------------------------------------------- 1 | worker_processes 2; 2 | 3 | error_log <%= ENV['OPENSHIFT_PHP_LOG_DIR'] %>/nginx/error.log; 4 | pid <%= ENV['OPENSHIFT_PHP_DIR'] %>/run/nginx.pid; 5 | 6 | events { 7 | worker_connections 1024; 8 | } 9 | 10 | http { 11 | include <%= ENV['OPENSHIFT_PHP_DIR'] %>/etc/mime.types; 12 | default_type application/octet-stream; 13 | 14 | port_in_redirect off; 15 | 16 | log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 17 | '$status $body_bytes_sent "$http_referer" ' 18 | '"$http_user_agent" "$http_x_forwarded_for"'; 19 | 20 | access_log <%= ENV['OPENSHIFT_PHP_LOG_DIR'] %>/nginx/access.log; 21 | error_log <%= ENV['OPENSHIFT_PHP_LOG_DIR'] %>/nginx/error.log; 22 | 23 | client_body_temp_path <%= ENV['TMP'] %>/nginx/client_body; 24 | proxy_temp_path <%= ENV['TMP'] %>/nginx/prox; 25 | fastcgi_temp_path <%= ENV['TMP'] %>/nginx/fcgi; 26 | uwsgi_temp_path <%= ENV['TMP'] %>/nginx/uwsgi; 27 | scgi_temp_path <%= ENV['TMP'] %>/nginx/scgi; 28 | 29 | include <%= ENV['OPENSHIFT_REPO_DIR'] %>/config/nginx.d/*.conf; 30 | } 31 | -------------------------------------------------------------------------------- /etc/openshift_params.erb: -------------------------------------------------------------------------------- 1 | <% 2 | ENV.each do |name, value| 3 | puts "fastcgi_param #{name} '#{value}';" if name.start_with?("OPENSHIFT_") and not value.empty? 4 | end 5 | %> -------------------------------------------------------------------------------- /etc/php.ini.erb: -------------------------------------------------------------------------------- 1 | [PHP] 2 | 3 | ;;;;;;;;;;;;;;;;;;; 4 | ; About php.ini ; 5 | ;;;;;;;;;;;;;;;;;;; 6 | ; PHP's initialization file, generally called php.ini, is responsible for 7 | ; configuring many of the aspects of PHP's behavior. 8 | 9 | ; PHP attempts to find and load this configuration from a number of locations. 10 | ; The following is a summary of its search order: 11 | ; 1. SAPI module specific location. 12 | ; 2. The PHPRC environment variable. (As of PHP 5.2.0) 13 | ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) 14 | ; 4. Current working directory (except CLI) 15 | ; 5. The web server's directory (for SAPI modules), or directory of PHP 16 | ; (otherwise in Windows) 17 | ; 6. The directory from the --with-config-file-path compile time option, or the 18 | ; Windows directory (C:\windows or C:\winnt) 19 | ; See the PHP docs for more specific information. 20 | ; http://php.net/configuration.file 21 | 22 | ; The syntax of the file is extremely simple. Whitespace and lines 23 | ; beginning with a semicolon are silently ignored (as you probably guessed). 24 | ; Section headers (e.g. [Foo]) are also silently ignored, even though 25 | ; they might mean something in the future. 26 | 27 | ; Directives following the section heading [PATH=/www/mysite] only 28 | ; apply to PHP files in the /www/mysite directory. Directives 29 | ; following the section heading [HOST=www.example.com] only apply to 30 | ; PHP files served from www.example.com. Directives set in these 31 | ; special sections cannot be overridden by user-defined INI files or 32 | ; at runtime. Currently, [PATH=] and [HOST=] sections only work under 33 | ; CGI/FastCGI. 34 | ; http://php.net/ini.sections 35 | 36 | ; Directives are specified using the following syntax: 37 | ; directive = value 38 | ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. 39 | ; Directives are variables used to configure PHP or PHP extensions. 40 | ; There is no name validation. If PHP can't find an expected 41 | ; directive because it is not set or is mistyped, a default value will be used. 42 | 43 | ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one 44 | ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression 45 | ; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a 46 | ; previously set variable or directive (e.g. ${foo}) 47 | 48 | ; Expressions in the INI file are limited to bitwise operators and parentheses: 49 | ; | bitwise OR 50 | ; ^ bitwise XOR 51 | ; & bitwise AND 52 | ; ~ bitwise NOT 53 | ; ! boolean NOT 54 | 55 | ; Boolean flags can be turned on using the values 1, On, True or Yes. 56 | ; They can be turned off using the values 0, Off, False or No. 57 | 58 | ; An empty string can be denoted by simply not writing anything after the equal 59 | ; sign, or by using the None keyword: 60 | 61 | ; foo = ; sets foo to an empty string 62 | ; foo = None ; sets foo to an empty string 63 | ; foo = "None" ; sets foo to the string 'None' 64 | 65 | ; If you use constants in your value, and these constants belong to a 66 | ; dynamically loaded extension (either a PHP extension or a Zend extension), 67 | ; you may only use these constants *after* the line that loads the extension. 68 | 69 | ;;;;;;;;;;;;;;;;;;; 70 | ; About this file ; 71 | ;;;;;;;;;;;;;;;;;;; 72 | ; PHP comes packaged with two INI files. One that is recommended to be used 73 | ; in production environments and one that is recommended to be used in 74 | ; development environments. 75 | 76 | ; php.ini-production contains settings which hold security, performance and 77 | ; best practices at its core. But please be aware, these settings may break 78 | ; compatibility with older or less security conscience applications. We 79 | ; recommending using the production ini in production and testing environments. 80 | 81 | ; php.ini-development is very similar to its production variant, except it is 82 | ; much more verbose when it comes to errors. We recommend using the 83 | ; development version only in development environments, as errors shown to 84 | ; application users can inadvertently leak otherwise secure information. 85 | 86 | ; This is php.ini-production INI file. 87 | 88 | ;;;;;;;;;;;;;;;;;;; 89 | ; Quick Reference ; 90 | ;;;;;;;;;;;;;;;;;;; 91 | ; The following are all the settings which are different in either the production 92 | ; or development versions of the INIs with respect to PHP's default behavior. 93 | ; Please see the actual settings later in the document for more details as to why 94 | ; we recommend these changes in PHP's behavior. 95 | 96 | ; display_errors 97 | ; Default Value: On 98 | ; Development Value: On 99 | ; Production Value: Off 100 | 101 | ; display_startup_errors 102 | ; Default Value: Off 103 | ; Development Value: On 104 | ; Production Value: Off 105 | 106 | ; error_reporting 107 | ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED 108 | ; Development Value: E_ALL 109 | ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT 110 | 111 | ; html_errors 112 | ; Default Value: On 113 | ; Development Value: On 114 | ; Production value: On 115 | 116 | ; log_errors 117 | ; Default Value: Off 118 | ; Development Value: On 119 | ; Production Value: On 120 | 121 | ; max_input_time 122 | ; Default Value: -1 (Unlimited) 123 | ; Development Value: 60 (60 seconds) 124 | ; Production Value: 60 (60 seconds) 125 | 126 | ; output_buffering 127 | ; Default Value: Off 128 | ; Development Value: 4096 129 | ; Production Value: 4096 130 | 131 | ; register_argc_argv 132 | ; Default Value: On 133 | ; Development Value: Off 134 | ; Production Value: Off 135 | 136 | ; request_order 137 | ; Default Value: None 138 | ; Development Value: "GP" 139 | ; Production Value: "GP" 140 | 141 | ; session.gc_divisor 142 | ; Default Value: 100 143 | ; Development Value: 1000 144 | ; Production Value: 1000 145 | 146 | ; session.hash_bits_per_character 147 | ; Default Value: 4 148 | ; Development Value: 5 149 | ; Production Value: 5 150 | 151 | ; short_open_tag 152 | ; Default Value: On 153 | ; Development Value: Off 154 | ; Production Value: Off 155 | 156 | ; track_errors 157 | ; Default Value: Off 158 | ; Development Value: On 159 | ; Production Value: Off 160 | 161 | ; url_rewriter.tags 162 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset=" 163 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 164 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 165 | 166 | ; variables_order 167 | ; Default Value: "EGPCS" 168 | ; Development Value: "GPCS" 169 | ; Production Value: "GPCS" 170 | 171 | ;;;;;;;;;;;;;;;;;;;; 172 | ; php.ini Options ; 173 | ;;;;;;;;;;;;;;;;;;;; 174 | ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini" 175 | ;user_ini.filename = ".user.ini" 176 | 177 | ; To disable this feature set this option to empty value 178 | ;user_ini.filename = 179 | 180 | ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) 181 | ;user_ini.cache_ttl = 300 182 | 183 | ;;;;;;;;;;;;;;;;;;;; 184 | ; Language Options ; 185 | ;;;;;;;;;;;;;;;;;;;; 186 | 187 | ; Enable the PHP scripting language engine under Apache. 188 | ; http://php.net/engine 189 | engine = On 190 | 191 | ; This directive determines whether or not PHP will recognize code between 192 | ; tags as PHP source which should be processed as such. It is 193 | ; generally recommended that should be used and that this feature 194 | ; should be disabled, as enabling it may result in issues when generating XML 195 | ; documents, however this remains supported for backward compatibility reasons. 196 | ; Note that this directive does not control the would work. 308 | ; http://php.net/syntax-highlighting 309 | ;highlight.string = #DD0000 310 | ;highlight.comment = #FF9900 311 | ;highlight.keyword = #007700 312 | ;highlight.default = #0000BB 313 | ;highlight.html = #000000 314 | 315 | ; If enabled, the request will be allowed to complete even if the user aborts 316 | ; the request. Consider enabling it if executing long requests, which may end up 317 | ; being interrupted by the user or a browser timing out. PHP's default behavior 318 | ; is to disable this feature. 319 | ; http://php.net/ignore-user-abort 320 | ;ignore_user_abort = On 321 | 322 | ; Determines the size of the realpath cache to be used by PHP. This value should 323 | ; be increased on systems where PHP opens many files to reflect the quantity of 324 | ; the file operations performed. 325 | ; http://php.net/realpath-cache-size 326 | ;realpath_cache_size = 16k 327 | 328 | ; Duration of time, in seconds for which to cache realpath information for a given 329 | ; file or directory. For systems with rarely changing files, consider increasing this 330 | ; value. 331 | ; http://php.net/realpath-cache-ttl 332 | ;realpath_cache_ttl = 120 333 | 334 | ; Enables or disables the circular reference collector. 335 | ; http://php.net/zend.enable-gc 336 | zend.enable_gc = On 337 | 338 | ; If enabled, scripts may be written in encodings that are incompatible with 339 | ; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such 340 | ; encodings. To use this feature, mbstring extension must be enabled. 341 | ; Default: Off 342 | ;zend.multibyte = Off 343 | 344 | ; Allows to set the default encoding for the scripts. This value will be used 345 | ; unless "declare(encoding=...)" directive appears at the top of the script. 346 | ; Only affects if zend.multibyte is set. 347 | ; Default: "" 348 | ;zend.script_encoding = 349 | 350 | ;;;;;;;;;;;;;;;;; 351 | ; Miscellaneous ; 352 | ;;;;;;;;;;;;;;;;; 353 | 354 | ; Decides whether PHP may expose the fact that it is installed on the server 355 | ; (e.g. by adding its signature to the Web server header). It is no security 356 | ; threat in any way, but it makes it possible to determine whether you use PHP 357 | ; on your server or not. 358 | ; http://php.net/expose-php 359 | expose_php = On 360 | 361 | ;;;;;;;;;;;;;;;;;;; 362 | ; Resource Limits ; 363 | ;;;;;;;;;;;;;;;;;;; 364 | 365 | ; Maximum execution time of each script, in seconds 366 | ; http://php.net/max-execution-time 367 | ; Note: This directive is hardcoded to 0 for the CLI SAPI 368 | max_execution_time = 30 369 | 370 | ; Maximum amount of time each script may spend parsing request data. It's a good 371 | ; idea to limit this time on productions servers in order to eliminate unexpectedly 372 | ; long running scripts. 373 | ; Note: This directive is hardcoded to -1 for the CLI SAPI 374 | ; Default Value: -1 (Unlimited) 375 | ; Development Value: 60 (60 seconds) 376 | ; Production Value: 60 (60 seconds) 377 | ; http://php.net/max-input-time 378 | max_input_time = 60 379 | 380 | ; Maximum input variable nesting level 381 | ; http://php.net/max-input-nesting-level 382 | ;max_input_nesting_level = 64 383 | 384 | ; How many GET/POST/COOKIE input variables may be accepted 385 | ; max_input_vars = 1000 386 | 387 | ; Maximum amount of memory a script may consume (128MB) 388 | ; http://php.net/memory-limit 389 | memory_limit = 128M 390 | 391 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 392 | ; Error handling and logging ; 393 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 394 | 395 | ; This directive informs PHP of which errors, warnings and notices you would like 396 | ; it to take action for. The recommended way of setting values for this 397 | ; directive is through the use of the error level constants and bitwise 398 | ; operators. The error level constants are below here for convenience as well as 399 | ; some common settings and their meanings. 400 | ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT 401 | ; those related to E_NOTICE and E_STRICT, which together cover best practices and 402 | ; recommended coding standards in PHP. For performance reasons, this is the 403 | ; recommend error reporting setting. Your production server shouldn't be wasting 404 | ; resources complaining about best practices and coding standards. That's what 405 | ; development servers and development settings are for. 406 | ; Note: The php.ini-development file has this setting as E_ALL. This 407 | ; means it pretty much reports everything which is exactly what you want during 408 | ; development and early testing. 409 | ; 410 | ; Error Level Constants: 411 | ; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0) 412 | ; E_ERROR - fatal run-time errors 413 | ; E_RECOVERABLE_ERROR - almost fatal run-time errors 414 | ; E_WARNING - run-time warnings (non-fatal errors) 415 | ; E_PARSE - compile-time parse errors 416 | ; E_NOTICE - run-time notices (these are warnings which often result 417 | ; from a bug in your code, but it's possible that it was 418 | ; intentional (e.g., using an uninitialized variable and 419 | ; relying on the fact it is automatically initialized to an 420 | ; empty string) 421 | ; E_STRICT - run-time notices, enable to have PHP suggest changes 422 | ; to your code which will ensure the best interoperability 423 | ; and forward compatibility of your code 424 | ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup 425 | ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's 426 | ; initial startup 427 | ; E_COMPILE_ERROR - fatal compile-time errors 428 | ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) 429 | ; E_USER_ERROR - user-generated error message 430 | ; E_USER_WARNING - user-generated warning message 431 | ; E_USER_NOTICE - user-generated notice message 432 | ; E_DEPRECATED - warn about code that will not work in future versions 433 | ; of PHP 434 | ; E_USER_DEPRECATED - user-generated deprecation warnings 435 | ; 436 | ; Common Values: 437 | ; E_ALL (Show all errors, warnings and notices including coding standards.) 438 | ; E_ALL & ~E_NOTICE (Show all errors, except for notices) 439 | ; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.) 440 | ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) 441 | ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED 442 | ; Development Value: E_ALL 443 | ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT 444 | ; http://php.net/error-reporting 445 | error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT 446 | 447 | ; This directive controls whether or not and where PHP will output errors, 448 | ; notices and warnings too. Error output is very useful during development, but 449 | ; it could be very dangerous in production environments. Depending on the code 450 | ; which is triggering the error, sensitive information could potentially leak 451 | ; out of your application such as database usernames and passwords or worse. 452 | ; For production environments, we recommend logging errors rather than 453 | ; sending them to STDOUT. 454 | ; Possible Values: 455 | ; Off = Do not display any errors 456 | ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) 457 | ; On or stdout = Display errors to STDOUT 458 | ; Default Value: On 459 | ; Development Value: On 460 | ; Production Value: Off 461 | ; http://php.net/display-errors 462 | display_errors = Off 463 | 464 | ; The display of errors which occur during PHP's startup sequence are handled 465 | ; separately from display_errors. PHP's default behavior is to suppress those 466 | ; errors from clients. Turning the display of startup errors on can be useful in 467 | ; debugging configuration problems. We strongly recommend you 468 | ; set this to 'off' for production servers. 469 | ; Default Value: Off 470 | ; Development Value: On 471 | ; Production Value: Off 472 | ; http://php.net/display-startup-errors 473 | display_startup_errors = Off 474 | 475 | ; Besides displaying errors, PHP can also log errors to locations such as a 476 | ; server-specific log, STDERR, or a location specified by the error_log 477 | ; directive found below. While errors should not be displayed on productions 478 | ; servers they should still be monitored and logging is a great way to do that. 479 | ; Default Value: Off 480 | ; Development Value: On 481 | ; Production Value: On 482 | ; http://php.net/log-errors 483 | log_errors = On 484 | 485 | ; Set maximum length of log_errors. In error_log information about the source is 486 | ; added. The default is 1024 and 0 allows to not apply any maximum length at all. 487 | ; http://php.net/log-errors-max-len 488 | log_errors_max_len = 1024 489 | 490 | ; Do not log repeated messages. Repeated errors must occur in same file on same 491 | ; line unless ignore_repeated_source is set true. 492 | ; http://php.net/ignore-repeated-errors 493 | ignore_repeated_errors = Off 494 | 495 | ; Ignore source of message when ignoring repeated messages. When this setting 496 | ; is On you will not log errors with repeated messages from different files or 497 | ; source lines. 498 | ; http://php.net/ignore-repeated-source 499 | ignore_repeated_source = Off 500 | 501 | ; If this parameter is set to Off, then memory leaks will not be shown (on 502 | ; stdout or in the log). This has only effect in a debug compile, and if 503 | ; error reporting includes E_WARNING in the allowed list 504 | ; http://php.net/report-memleaks 505 | report_memleaks = On 506 | 507 | ; This setting is on by default. 508 | ;report_zend_debug = 0 509 | 510 | ; Store the last error/warning message in $php_errormsg (boolean). Setting this value 511 | ; to On can assist in debugging and is appropriate for development servers. It should 512 | ; however be disabled on production servers. 513 | ; Default Value: Off 514 | ; Development Value: On 515 | ; Production Value: Off 516 | ; http://php.net/track-errors 517 | track_errors = Off 518 | 519 | ; Turn off normal error reporting and emit XML-RPC error XML 520 | ; http://php.net/xmlrpc-errors 521 | ;xmlrpc_errors = 0 522 | 523 | ; An XML-RPC faultCode 524 | ;xmlrpc_error_number = 0 525 | 526 | ; When PHP displays or logs an error, it has the capability of formatting the 527 | ; error message as HTML for easier reading. This directive controls whether 528 | ; the error message is formatted as HTML or not. 529 | ; Note: This directive is hardcoded to Off for the CLI SAPI 530 | ; Default Value: On 531 | ; Development Value: On 532 | ; Production value: On 533 | ; http://php.net/html-errors 534 | html_errors = On 535 | 536 | ; If html_errors is set to On *and* docref_root is not empty, then PHP 537 | ; produces clickable error messages that direct to a page describing the error 538 | ; or function causing the error in detail. 539 | ; You can download a copy of the PHP manual from http://php.net/docs 540 | ; and change docref_root to the base URL of your local copy including the 541 | ; leading '/'. You must also specify the file extension being used including 542 | ; the dot. PHP's default behavior is to leave these settings empty, in which 543 | ; case no links to documentation are generated. 544 | ; Note: Never use this feature for production boxes. 545 | ; http://php.net/docref-root 546 | ; Examples 547 | ;docref_root = "/phpmanual/" 548 | 549 | ; http://php.net/docref-ext 550 | ;docref_ext = .html 551 | 552 | ; String to output before an error message. PHP's default behavior is to leave 553 | ; this setting blank. 554 | ; http://php.net/error-prepend-string 555 | ; Example: 556 | ;error_prepend_string = "" 557 | 558 | ; String to output after an error message. PHP's default behavior is to leave 559 | ; this setting blank. 560 | ; http://php.net/error-append-string 561 | ; Example: 562 | ;error_append_string = "" 563 | 564 | ; Log errors to specified file. PHP's default behavior is to leave this value 565 | ; empty. 566 | ; http://php.net/error-log 567 | ; Example: 568 | ;error_log = php_errors.log 569 | ; Log errors to syslog (Event Log on Windows). 570 | ;error_log = syslog 571 | 572 | ;windows.show_crt_warning 573 | ; Default value: 0 574 | ; Development value: 0 575 | ; Production value: 0 576 | 577 | ;;;;;;;;;;;;;;;;; 578 | ; Data Handling ; 579 | ;;;;;;;;;;;;;;;;; 580 | 581 | ; The separator used in PHP generated URLs to separate arguments. 582 | ; PHP's default setting is "&". 583 | ; http://php.net/arg-separator.output 584 | ; Example: 585 | ;arg_separator.output = "&" 586 | 587 | ; List of separator(s) used by PHP to parse input URLs into variables. 588 | ; PHP's default setting is "&". 589 | ; NOTE: Every character in this directive is considered as separator! 590 | ; http://php.net/arg-separator.input 591 | ; Example: 592 | ;arg_separator.input = ";&" 593 | 594 | ; This directive determines which super global arrays are registered when PHP 595 | ; starts up. G,P,C,E & S are abbreviations for the following respective super 596 | ; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty 597 | ; paid for the registration of these arrays and because ENV is not as commonly 598 | ; used as the others, ENV is not recommended on productions servers. You 599 | ; can still get access to the environment variables through getenv() should you 600 | ; need to. 601 | ; Default Value: "EGPCS" 602 | ; Development Value: "GPCS" 603 | ; Production Value: "GPCS"; 604 | ; http://php.net/variables-order 605 | variables_order = "GPCS" 606 | 607 | ; This directive determines which super global data (G,P & C) should be 608 | ; registered into the super global array REQUEST. If so, it also determines 609 | ; the order in which that data is registered. The values for this directive 610 | ; are specified in the same manner as the variables_order directive, 611 | ; EXCEPT one. Leaving this value empty will cause PHP to use the value set 612 | ; in the variables_order directive. It does not mean it will leave the super 613 | ; globals array REQUEST empty. 614 | ; Default Value: None 615 | ; Development Value: "GP" 616 | ; Production Value: "GP" 617 | ; http://php.net/request-order 618 | request_order = "GP" 619 | 620 | ; This directive determines whether PHP registers $argv & $argc each time it 621 | ; runs. $argv contains an array of all the arguments passed to PHP when a script 622 | ; is invoked. $argc contains an integer representing the number of arguments 623 | ; that were passed when the script was invoked. These arrays are extremely 624 | ; useful when running scripts from the command line. When this directive is 625 | ; enabled, registering these variables consumes CPU cycles and memory each time 626 | ; a script is executed. For performance reasons, this feature should be disabled 627 | ; on production servers. 628 | ; Note: This directive is hardcoded to On for the CLI SAPI 629 | ; Default Value: On 630 | ; Development Value: Off 631 | ; Production Value: Off 632 | ; http://php.net/register-argc-argv 633 | register_argc_argv = Off 634 | 635 | ; When enabled, the ENV, REQUEST and SERVER variables are created when they're 636 | ; first used (Just In Time) instead of when the script starts. If these 637 | ; variables are not used within a script, having this directive on will result 638 | ; in a performance gain. The PHP directive register_argc_argv must be disabled 639 | ; for this directive to have any affect. 640 | ; http://php.net/auto-globals-jit 641 | auto_globals_jit = On 642 | 643 | ; Whether PHP will read the POST data. 644 | ; This option is enabled by default. 645 | ; Most likely, you won't want to disable this option globally. It causes $_POST 646 | ; and $_FILES to always be empty; the only way you will be able to read the 647 | ; POST data will be through the php://input stream wrapper. This can be useful 648 | ; to proxy requests or to process the POST data in a memory efficient fashion. 649 | ; http://php.net/enable-post-data-reading 650 | ;enable_post_data_reading = Off 651 | 652 | ; Maximum size of POST data that PHP will accept. 653 | ; Its value may be 0 to disable the limit. It is ignored if POST data reading 654 | ; is disabled through enable_post_data_reading. 655 | ; http://php.net/post-max-size 656 | post_max_size = 8M 657 | 658 | ; Automatically add files before PHP document. 659 | ; http://php.net/auto-prepend-file 660 | auto_prepend_file = 661 | 662 | ; Automatically add files after PHP document. 663 | ; http://php.net/auto-append-file 664 | auto_append_file = 665 | 666 | ; By default, PHP will output a character encoding using 667 | ; the Content-type: header. To disable sending of the charset, simply 668 | ; set it to be empty. 669 | ; 670 | ; PHP's built-in default is text/html 671 | ; http://php.net/default-mimetype 672 | default_mimetype = "text/html" 673 | 674 | ; PHP's default character set is set to UTF-8. 675 | ; http://php.net/default-charset 676 | default_charset = "UTF-8" 677 | 678 | ; PHP internal character encoding is set to empty. 679 | ; If empty, default_charset is used. 680 | ; http://php.net/internal-encoding 681 | ;internal_encoding = 682 | 683 | ; PHP input character encoding is set to empty. 684 | ; If empty, default_charset is used. 685 | ; http://php.net/input-encoding 686 | ;input_encoding = 687 | 688 | ; PHP output character encoding is set to empty. 689 | ; If empty, default_charset is used. 690 | ; mbstring or iconv output handler is used. 691 | ; See also output_buffer. 692 | ; http://php.net/output-encoding 693 | ;output_encoding = 694 | 695 | ;;;;;;;;;;;;;;;;;;;;;;;;; 696 | ; Paths and Directories ; 697 | ;;;;;;;;;;;;;;;;;;;;;;;;; 698 | 699 | ; UNIX: "/path1:/path2" 700 | ;include_path = ".:/php/includes" 701 | ; 702 | ; Windows: "\path1;\path2" 703 | ;include_path = ".;c:\php\includes" 704 | ; 705 | ; PHP's default setting for include_path is ".;/path/to/php/pear" 706 | ; http://php.net/include-path 707 | 708 | ; The root of the PHP pages, used only if nonempty. 709 | ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root 710 | ; if you are running php as a CGI under any web server (other than IIS) 711 | ; see documentation for security issues. The alternate is to use the 712 | ; cgi.force_redirect configuration below 713 | ; http://php.net/doc-root 714 | doc_root = 715 | 716 | ; The directory under which PHP opens the script using /~username used only 717 | ; if nonempty. 718 | ; http://php.net/user-dir 719 | user_dir = 720 | 721 | ; Directory in which the loadable extensions (modules) reside. 722 | ; http://php.net/extension-dir 723 | ; extension_dir = "./" 724 | ; On windows: 725 | ; extension_dir = "ext" 726 | extension_dir = "<%= ENV['OPENSHIFT_PHP_DIR'] %>/usr/lib64/php/modules" 727 | 728 | ; Directory where the temporary files should be placed. 729 | ; Defaults to the system default (see sys_get_temp_dir) 730 | ; sys_temp_dir = "/tmp" 731 | 732 | ; Whether or not to enable the dl() function. The dl() function does NOT work 733 | ; properly in multithreaded servers, such as IIS or Zeus, and is automatically 734 | ; disabled on them. 735 | ; http://php.net/enable-dl 736 | enable_dl = Off 737 | 738 | ; cgi.force_redirect is necessary to provide security running PHP as a CGI under 739 | ; most web servers. Left undefined, PHP turns this on by default. You can 740 | ; turn it off here AT YOUR OWN RISK 741 | ; **You CAN safely turn this off for IIS, in fact, you MUST.** 742 | ; http://php.net/cgi.force-redirect 743 | ;cgi.force_redirect = 1 744 | 745 | ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with 746 | ; every request. PHP's default behavior is to disable this feature. 747 | ;cgi.nph = 1 748 | 749 | ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape 750 | ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP 751 | ; will look for to know it is OK to continue execution. Setting this variable MAY 752 | ; cause security issues, KNOW WHAT YOU ARE DOING FIRST. 753 | ; http://php.net/cgi.redirect-status-env 754 | ;cgi.redirect_status_env = 755 | 756 | ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's 757 | ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok 758 | ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting 759 | ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting 760 | ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts 761 | ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. 762 | ; http://php.net/cgi.fix-pathinfo 763 | ;cgi.fix_pathinfo=1 764 | 765 | ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate 766 | ; security tokens of the calling client. This allows IIS to define the 767 | ; security context that the request runs under. mod_fastcgi under Apache 768 | ; does not currently support this feature (03/17/2002) 769 | ; Set to 1 if running under IIS. Default is zero. 770 | ; http://php.net/fastcgi.impersonate 771 | ;fastcgi.impersonate = 1 772 | 773 | ; Disable logging through FastCGI connection. PHP's default behavior is to enable 774 | ; this feature. 775 | ;fastcgi.logging = 0 776 | 777 | ; cgi.rfc2616_headers configuration option tells PHP what type of headers to 778 | ; use when sending HTTP response code. If set to 0, PHP sends Status: header that 779 | ; is supported by Apache. When this option is set to 1, PHP will send 780 | ; RFC2616 compliant header. 781 | ; Default is zero. 782 | ; http://php.net/cgi.rfc2616-headers 783 | ;cgi.rfc2616_headers = 0 784 | 785 | ;;;;;;;;;;;;;;;; 786 | ; File Uploads ; 787 | ;;;;;;;;;;;;;;;; 788 | 789 | ; Whether to allow HTTP file uploads. 790 | ; http://php.net/file-uploads 791 | file_uploads = On 792 | 793 | ; Temporary directory for HTTP uploaded files (will use system default if not 794 | ; specified). 795 | ; http://php.net/upload-tmp-dir 796 | ;upload_tmp_dir = 797 | 798 | ; Maximum allowed size for uploaded files. 799 | ; http://php.net/upload-max-filesize 800 | upload_max_filesize = 2M 801 | 802 | ; Maximum number of files that can be uploaded via a single request 803 | max_file_uploads = 20 804 | 805 | ;;;;;;;;;;;;;;;;;; 806 | ; Fopen wrappers ; 807 | ;;;;;;;;;;;;;;;;;; 808 | 809 | ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. 810 | ; http://php.net/allow-url-fopen 811 | allow_url_fopen = On 812 | 813 | ; Whether to allow include/require to open URLs (like http:// or ftp://) as files. 814 | ; http://php.net/allow-url-include 815 | allow_url_include = Off 816 | 817 | ; Define the anonymous ftp password (your email address). PHP's default setting 818 | ; for this is empty. 819 | ; http://php.net/from 820 | ;from="john@doe.com" 821 | 822 | ; Define the User-Agent string. PHP's default setting for this is empty. 823 | ; http://php.net/user-agent 824 | ;user_agent="PHP" 825 | 826 | ; Default timeout for socket based streams (seconds) 827 | ; http://php.net/default-socket-timeout 828 | default_socket_timeout = 60 829 | 830 | ; If your scripts have to deal with files from Macintosh systems, 831 | ; or you are running on a Mac and need to deal with files from 832 | ; unix or win32 systems, setting this flag will cause PHP to 833 | ; automatically detect the EOL character in those files so that 834 | ; fgets() and file() will work regardless of the source of the file. 835 | ; http://php.net/auto-detect-line-endings 836 | ;auto_detect_line_endings = Off 837 | 838 | ;;;;;;;;;;;;;;;;;;;;;; 839 | ; Dynamic Extensions ; 840 | ;;;;;;;;;;;;;;;;;;;;;; 841 | 842 | ; If you wish to have an extension loaded automatically, use the following 843 | ; syntax: 844 | ; 845 | ; extension=modulename.extension 846 | ; 847 | ; For example, on Windows: 848 | ; 849 | ; extension=msql.dll 850 | ; 851 | ; ... or under UNIX: 852 | ; 853 | ; extension=msql.so 854 | ; 855 | ; ... or with a path: 856 | ; 857 | ; extension=/path/to/extension/msql.so 858 | ; 859 | ; If you only provide the name of the extension, PHP will look for it in its 860 | ; default extension directory. 861 | 862 | ;;;; 863 | ; Note: packaged extension modules are now loaded via the .ini files 864 | ; found in the directory /etc/php.d; these are loaded by default. 865 | ;;;; 866 | 867 | ;;;;;;;;;;;;;;;;;;; 868 | ; Module Settings ; 869 | ;;;;;;;;;;;;;;;;;;; 870 | 871 | [CLI Server] 872 | ; Whether the CLI web server uses ANSI color coding in its terminal output. 873 | cli_server.color = On 874 | 875 | [Date] 876 | ; Defines the default timezone used by the date functions 877 | ; http://php.net/date.timezone 878 | ;date.timezone = 879 | 880 | ; http://php.net/date.default-latitude 881 | ;date.default_latitude = 31.7667 882 | 883 | ; http://php.net/date.default-longitude 884 | ;date.default_longitude = 35.2333 885 | 886 | ; http://php.net/date.sunrise-zenith 887 | ;date.sunrise_zenith = 90.583333 888 | 889 | ; http://php.net/date.sunset-zenith 890 | ;date.sunset_zenith = 90.583333 891 | 892 | [filter] 893 | ; http://php.net/filter.default 894 | ;filter.default = unsafe_raw 895 | 896 | ; http://php.net/filter.default-flags 897 | ;filter.default_flags = 898 | 899 | [iconv] 900 | ; Use of this INI entry is deprecated, use global input_encoding instead. 901 | ; If empty, default_charset or input_encoding or iconv.input_encoding is used. 902 | ; The precedence is: default_charset < intput_encoding < iconv.input_encoding 903 | ;iconv.input_encoding = 904 | 905 | ; Use of this INI entry is deprecated, use global internal_encoding instead. 906 | ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. 907 | ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding 908 | ;iconv.internal_encoding = 909 | 910 | ; Use of this INI entry is deprecated, use global output_encoding instead. 911 | ; If empty, default_charset or output_encoding or iconv.output_encoding is used. 912 | ; The precedence is: default_charset < output_encoding < iconv.output_encoding 913 | ; To use an output encoding conversion, iconv's output handler must be set 914 | ; otherwise output encoding conversion cannot be performed. 915 | ;iconv.output_encoding = 916 | 917 | [intl] 918 | ;intl.default_locale = 919 | ; This directive allows you to produce PHP errors when some error 920 | ; happens within intl functions. The value is the level of the error produced. 921 | ; Default is 0, which does not produce any errors. 922 | ;intl.error_level = E_WARNING 923 | 924 | [sqlite] 925 | ; http://php.net/sqlite.assoc-case 926 | ;sqlite.assoc_case = 0 927 | 928 | [sqlite3] 929 | ;sqlite3.extension_dir = 930 | 931 | [Pcre] 932 | ;PCRE library backtracking limit. 933 | ; http://php.net/pcre.backtrack-limit 934 | ;pcre.backtrack_limit=100000 935 | 936 | ;PCRE library recursion limit. 937 | ;Please note that if you set this value to a high number you may consume all 938 | ;the available process stack and eventually crash PHP (due to reaching the 939 | ;stack size limit imposed by the Operating System). 940 | ; http://php.net/pcre.recursion-limit 941 | ;pcre.recursion_limit=100000 942 | 943 | [Pdo] 944 | ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" 945 | ; http://php.net/pdo-odbc.connection-pooling 946 | ;pdo_odbc.connection_pooling=strict 947 | 948 | ;pdo_odbc.db2_instance_name 949 | 950 | [Pdo_mysql] 951 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 952 | ; http://php.net/pdo_mysql.cache_size 953 | pdo_mysql.cache_size = 2000 954 | 955 | ; Default socket name for local MySQL connects. If empty, uses the built-in 956 | ; MySQL defaults. 957 | ; http://php.net/pdo_mysql.default-socket 958 | pdo_mysql.default_socket= 959 | 960 | [Phar] 961 | ; http://php.net/phar.readonly 962 | ;phar.readonly = On 963 | 964 | ; http://php.net/phar.require-hash 965 | ;phar.require_hash = On 966 | 967 | ;phar.cache_list = 968 | 969 | [mail function] 970 | ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). 971 | ; http://php.net/sendmail-path 972 | sendmail_path = /usr/sbin/sendmail -t -i 973 | 974 | ; Force the addition of the specified parameters to be passed as extra parameters 975 | ; to the sendmail binary. These parameters will always replace the value of 976 | ; the 5th parameter to mail(). 977 | ;mail.force_extra_parameters = 978 | 979 | ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename 980 | mail.add_x_header = On 981 | 982 | ; The path to a log file that will log all mail() calls. Log entries include 983 | ; the full path of the script, line number, To address and headers. 984 | ;mail.log = 985 | ; Log mail to syslog (Event Log on Windows). 986 | ;mail.log = syslog 987 | 988 | [SQL] 989 | ; http://php.net/sql.safe-mode 990 | sql.safe_mode = Off 991 | 992 | [ODBC] 993 | ; http://php.net/odbc.default-db 994 | ;odbc.default_db = Not yet implemented 995 | 996 | ; http://php.net/odbc.default-user 997 | ;odbc.default_user = Not yet implemented 998 | 999 | ; http://php.net/odbc.default-pw 1000 | ;odbc.default_pw = Not yet implemented 1001 | 1002 | ; Controls the ODBC cursor model. 1003 | ; Default: SQL_CURSOR_STATIC (default). 1004 | ;odbc.default_cursortype 1005 | 1006 | ; Allow or prevent persistent links. 1007 | ; http://php.net/odbc.allow-persistent 1008 | odbc.allow_persistent = On 1009 | 1010 | ; Check that a connection is still valid before reuse. 1011 | ; http://php.net/odbc.check-persistent 1012 | odbc.check_persistent = On 1013 | 1014 | ; Maximum number of persistent links. -1 means no limit. 1015 | ; http://php.net/odbc.max-persistent 1016 | odbc.max_persistent = -1 1017 | 1018 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1019 | ; http://php.net/odbc.max-links 1020 | odbc.max_links = -1 1021 | 1022 | ; Handling of LONG fields. Returns number of bytes to variables. 0 means 1023 | ; passthru. 1024 | ; http://php.net/odbc.defaultlrl 1025 | odbc.defaultlrl = 4096 1026 | 1027 | ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. 1028 | ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation 1029 | ; of odbc.defaultlrl and odbc.defaultbinmode 1030 | ; http://php.net/odbc.defaultbinmode 1031 | odbc.defaultbinmode = 1 1032 | 1033 | ;birdstep.max_links = -1 1034 | 1035 | [Interbase] 1036 | ; Allow or prevent persistent links. 1037 | ibase.allow_persistent = 1 1038 | 1039 | ; Maximum number of persistent links. -1 means no limit. 1040 | ibase.max_persistent = -1 1041 | 1042 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1043 | ibase.max_links = -1 1044 | 1045 | ; Default database name for ibase_connect(). 1046 | ;ibase.default_db = 1047 | 1048 | ; Default username for ibase_connect(). 1049 | ;ibase.default_user = 1050 | 1051 | ; Default password for ibase_connect(). 1052 | ;ibase.default_password = 1053 | 1054 | ; Default charset for ibase_connect(). 1055 | ;ibase.default_charset = 1056 | 1057 | ; Default timestamp format. 1058 | ibase.timestampformat = "%Y-%m-%d %H:%M:%S" 1059 | 1060 | ; Default date format. 1061 | ibase.dateformat = "%Y-%m-%d" 1062 | 1063 | ; Default time format. 1064 | ibase.timeformat = "%H:%M:%S" 1065 | 1066 | [MySQLi] 1067 | 1068 | ; Maximum number of persistent links. -1 means no limit. 1069 | ; http://php.net/mysqli.max-persistent 1070 | mysqli.max_persistent = -1 1071 | 1072 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements 1073 | ; http://php.net/mysqli.allow_local_infile 1074 | ;mysqli.allow_local_infile = On 1075 | 1076 | ; Allow or prevent persistent links. 1077 | ; http://php.net/mysqli.allow-persistent 1078 | mysqli.allow_persistent = On 1079 | 1080 | ; Maximum number of links. -1 means no limit. 1081 | ; http://php.net/mysqli.max-links 1082 | mysqli.max_links = -1 1083 | 1084 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 1085 | ; http://php.net/mysqli.cache_size 1086 | mysqli.cache_size = 2000 1087 | 1088 | ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use 1089 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the 1090 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look 1091 | ; at MYSQL_PORT. 1092 | ; http://php.net/mysqli.default-port 1093 | mysqli.default_port = 3306 1094 | 1095 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1096 | ; MySQL defaults. 1097 | ; http://php.net/mysqli.default-socket 1098 | mysqli.default_socket = 1099 | 1100 | ; Default host for mysql_connect() (doesn't apply in safe mode). 1101 | ; http://php.net/mysqli.default-host 1102 | mysqli.default_host = 1103 | 1104 | ; Default user for mysql_connect() (doesn't apply in safe mode). 1105 | ; http://php.net/mysqli.default-user 1106 | mysqli.default_user = 1107 | 1108 | ; Default password for mysqli_connect() (doesn't apply in safe mode). 1109 | ; Note that this is generally a *bad* idea to store passwords in this file. 1110 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") 1111 | ; and reveal this password! And of course, any users with read access to this 1112 | ; file will be able to reveal the password as well. 1113 | ; http://php.net/mysqli.default-pw 1114 | mysqli.default_pw = 1115 | 1116 | ; Allow or prevent reconnect 1117 | mysqli.reconnect = Off 1118 | 1119 | [mysqlnd] 1120 | ; Enable / Disable collection of general statistics by mysqlnd which can be 1121 | ; used to tune and monitor MySQL operations. 1122 | ; http://php.net/mysqlnd.collect_statistics 1123 | mysqlnd.collect_statistics = On 1124 | 1125 | ; Enable / Disable collection of memory usage statistics by mysqlnd which can be 1126 | ; used to tune and monitor MySQL operations. 1127 | ; http://php.net/mysqlnd.collect_memory_statistics 1128 | mysqlnd.collect_memory_statistics = Off 1129 | 1130 | ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. 1131 | ; http://php.net/mysqlnd.net_cmd_buffer_size 1132 | ;mysqlnd.net_cmd_buffer_size = 2048 1133 | 1134 | ; Size of a pre-allocated buffer used for reading data sent by the server in 1135 | ; bytes. 1136 | ; http://php.net/mysqlnd.net_read_buffer_size 1137 | ;mysqlnd.net_read_buffer_size = 32768 1138 | 1139 | [OCI8] 1140 | 1141 | ; Connection: Enables privileged connections using external 1142 | ; credentials (OCI_SYSOPER, OCI_SYSDBA) 1143 | ; http://php.net/oci8.privileged-connect 1144 | ;oci8.privileged_connect = Off 1145 | 1146 | ; Connection: The maximum number of persistent OCI8 connections per 1147 | ; process. Using -1 means no limit. 1148 | ; http://php.net/oci8.max-persistent 1149 | ;oci8.max_persistent = -1 1150 | 1151 | ; Connection: The maximum number of seconds a process is allowed to 1152 | ; maintain an idle persistent connection. Using -1 means idle 1153 | ; persistent connections will be maintained forever. 1154 | ; http://php.net/oci8.persistent-timeout 1155 | ;oci8.persistent_timeout = -1 1156 | 1157 | ; Connection: The number of seconds that must pass before issuing a 1158 | ; ping during oci_pconnect() to check the connection validity. When 1159 | ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables 1160 | ; pings completely. 1161 | ; http://php.net/oci8.ping-interval 1162 | ;oci8.ping_interval = 60 1163 | 1164 | ; Connection: Set this to a user chosen connection class to be used 1165 | ; for all pooled server requests with Oracle 11g Database Resident 1166 | ; Connection Pooling (DRCP). To use DRCP, this value should be set to 1167 | ; the same string for all web servers running the same application, 1168 | ; the database pool must be configured, and the connection string must 1169 | ; specify to use a pooled server. 1170 | ;oci8.connection_class = 1171 | 1172 | ; High Availability: Using On lets PHP receive Fast Application 1173 | ; Notification (FAN) events generated when a database node fails. The 1174 | ; database must also be configured to post FAN events. 1175 | ;oci8.events = Off 1176 | 1177 | ; Tuning: This option enables statement caching, and specifies how 1178 | ; many statements to cache. Using 0 disables statement caching. 1179 | ; http://php.net/oci8.statement-cache-size 1180 | ;oci8.statement_cache_size = 20 1181 | 1182 | ; Tuning: Enables statement prefetching and sets the default number of 1183 | ; rows that will be fetched automatically after statement execution. 1184 | ; http://php.net/oci8.default-prefetch 1185 | ;oci8.default_prefetch = 100 1186 | 1187 | ; Compatibility. Using On means oci_close() will not close 1188 | ; oci_connect() and oci_new_connect() connections. 1189 | ; http://php.net/oci8.old-oci-close-semantics 1190 | ;oci8.old_oci_close_semantics = Off 1191 | 1192 | [PostgreSQL] 1193 | ; Allow or prevent persistent links. 1194 | ; http://php.net/pgsql.allow-persistent 1195 | pgsql.allow_persistent = On 1196 | 1197 | ; Detect broken persistent links always with pg_pconnect(). 1198 | ; Auto reset feature requires a little overheads. 1199 | ; http://php.net/pgsql.auto-reset-persistent 1200 | pgsql.auto_reset_persistent = Off 1201 | 1202 | ; Maximum number of persistent links. -1 means no limit. 1203 | ; http://php.net/pgsql.max-persistent 1204 | pgsql.max_persistent = -1 1205 | 1206 | ; Maximum number of links (persistent+non persistent). -1 means no limit. 1207 | ; http://php.net/pgsql.max-links 1208 | pgsql.max_links = -1 1209 | 1210 | ; Ignore PostgreSQL backends Notice message or not. 1211 | ; Notice message logging require a little overheads. 1212 | ; http://php.net/pgsql.ignore-notice 1213 | pgsql.ignore_notice = 0 1214 | 1215 | ; Log PostgreSQL backends Notice message or not. 1216 | ; Unless pgsql.ignore_notice=0, module cannot log notice message. 1217 | ; http://php.net/pgsql.log-notice 1218 | pgsql.log_notice = 0 1219 | 1220 | [bcmath] 1221 | ; Number of decimal digits for all bcmath functions. 1222 | ; http://php.net/bcmath.scale 1223 | bcmath.scale = 0 1224 | 1225 | [browscap] 1226 | ; http://php.net/browscap 1227 | ;browscap = extra/browscap.ini 1228 | 1229 | [Session] 1230 | ; Handler used to store/retrieve data. 1231 | ; http://php.net/session.save-handler 1232 | session.save_handler = files 1233 | 1234 | ; Argument passed to save_handler. In the case of files, this is the path 1235 | ; where data files are stored. Note: Windows users have to change this 1236 | ; variable in order to use PHP's session functions. 1237 | ; 1238 | ; The path can be defined as: 1239 | ; 1240 | ; session.save_path = "N;/path" 1241 | ; 1242 | ; where N is an integer. Instead of storing all the session files in 1243 | ; /path, what this will do is use subdirectories N-levels deep, and 1244 | ; store the session data in those directories. This is useful if 1245 | ; your OS has problems with many files in one directory, and is 1246 | ; a more efficient layout for servers that handle many sessions. 1247 | ; 1248 | ; NOTE 1: PHP will not create this directory structure automatically. 1249 | ; You can use the script in the ext/session dir for that purpose. 1250 | ; NOTE 2: See the section on garbage collection below if you choose to 1251 | ; use subdirectories for session storage 1252 | ; 1253 | ; The file storage module creates files using mode 600 by default. 1254 | ; You can change that by using 1255 | ; 1256 | ; session.save_path = "N;MODE;/path" 1257 | ; 1258 | ; where MODE is the octal representation of the mode. Note that this 1259 | ; does not overwrite the process's umask. 1260 | ; http://php.net/session.save-path 1261 | 1262 | ; RPM note : session directory must be owned by process owner 1263 | ; for mod_php, see /etc/httpd/conf.d/php.conf 1264 | ; for php-fpm, see /etc/php-fpm.d/*conf 1265 | ;session.save_path = "/tmp" 1266 | 1267 | ; Whether to use strict session mode. 1268 | ; Strict session mode does not accept uninitialized session ID and regenerate 1269 | ; session ID if browser sends uninitialized session ID. Strict mode protects 1270 | ; applications from session fixation via session adoption vulnerability. It is 1271 | ; disabled by default for maximum compatibility, but enabling it is encouraged. 1272 | ; https://wiki.php.net/rfc/strict_sessions 1273 | session.use_strict_mode = 0 1274 | 1275 | ; Whether to use cookies. 1276 | ; http://php.net/session.use-cookies 1277 | session.use_cookies = 1 1278 | 1279 | ; http://php.net/session.cookie-secure 1280 | ;session.cookie_secure = 1281 | 1282 | ; This option forces PHP to fetch and use a cookie for storing and maintaining 1283 | ; the session id. We encourage this operation as it's very helpful in combating 1284 | ; session hijacking when not specifying and managing your own session id. It is 1285 | ; not the be-all and end-all of session hijacking defense, but it's a good start. 1286 | ; http://php.net/session.use-only-cookies 1287 | session.use_only_cookies = 1 1288 | 1289 | ; Name of the session (used as cookie name). 1290 | ; http://php.net/session.name 1291 | session.name = PHPSESSID 1292 | 1293 | ; Initialize session on request startup. 1294 | ; http://php.net/session.auto-start 1295 | session.auto_start = 0 1296 | 1297 | ; Lifetime in seconds of cookie or, if 0, until browser is restarted. 1298 | ; http://php.net/session.cookie-lifetime 1299 | session.cookie_lifetime = 0 1300 | 1301 | ; The path for which the cookie is valid. 1302 | ; http://php.net/session.cookie-path 1303 | session.cookie_path = / 1304 | 1305 | ; The domain for which the cookie is valid. 1306 | ; http://php.net/session.cookie-domain 1307 | session.cookie_domain = 1308 | 1309 | ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript. 1310 | ; http://php.net/session.cookie-httponly 1311 | session.cookie_httponly = 1312 | 1313 | ; Handler used to serialize data. php is the standard serializer of PHP. 1314 | ; http://php.net/session.serialize-handler 1315 | session.serialize_handler = php 1316 | 1317 | ; Defines the probability that the 'garbage collection' process is started 1318 | ; on every session initialization. The probability is calculated by using 1319 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator 1320 | ; and gc_divisor is the denominator in the equation. Setting this value to 1 1321 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1322 | ; the gc will run on any give request. 1323 | ; Default Value: 1 1324 | ; Development Value: 1 1325 | ; Production Value: 1 1326 | ; http://php.net/session.gc-probability 1327 | session.gc_probability = 1 1328 | 1329 | ; Defines the probability that the 'garbage collection' process is started on every 1330 | ; session initialization. The probability is calculated by using the following equation: 1331 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and 1332 | ; session.gc_divisor is the denominator in the equation. Setting this value to 1 1333 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1334 | ; the gc will run on any give request. Increasing this value to 1000 will give you 1335 | ; a 0.1% chance the gc will run on any give request. For high volume production servers, 1336 | ; this is a more efficient approach. 1337 | ; Default Value: 100 1338 | ; Development Value: 1000 1339 | ; Production Value: 1000 1340 | ; http://php.net/session.gc-divisor 1341 | session.gc_divisor = 1000 1342 | 1343 | ; After this number of seconds, stored data will be seen as 'garbage' and 1344 | ; cleaned up by the garbage collection process. 1345 | ; http://php.net/session.gc-maxlifetime 1346 | session.gc_maxlifetime = 1440 1347 | 1348 | ; NOTE: If you are using the subdirectory option for storing session files 1349 | ; (see session.save_path above), then garbage collection does *not* 1350 | ; happen automatically. You will need to do your own garbage 1351 | ; collection through a shell script, cron entry, or some other method. 1352 | ; For example, the following script would is the equivalent of 1353 | ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): 1354 | ; find /path/to/sessions -cmin +24 -type f | xargs rm 1355 | 1356 | ; Check HTTP Referer to invalidate externally stored URLs containing ids. 1357 | ; HTTP_REFERER has to contain this substring for the session to be 1358 | ; considered as valid. 1359 | ; http://php.net/session.referer-check 1360 | session.referer_check = 1361 | 1362 | ; How many bytes to read from the file. 1363 | ; http://php.net/session.entropy-length 1364 | ;session.entropy_length = 32 1365 | 1366 | ; Specified here to create the session id. 1367 | ; http://php.net/session.entropy-file 1368 | ; Defaults to /dev/urandom 1369 | ; On systems that don't have /dev/urandom but do have /dev/arandom, this will default to /dev/arandom 1370 | ; If neither are found at compile time, the default is no entropy file. 1371 | ; On windows, setting the entropy_length setting will activate the 1372 | ; Windows random source (using the CryptoAPI) 1373 | ;session.entropy_file = /dev/urandom 1374 | 1375 | ; Set to {nocache,private,public,} to determine HTTP caching aspects 1376 | ; or leave this empty to avoid sending anti-caching headers. 1377 | ; http://php.net/session.cache-limiter 1378 | session.cache_limiter = nocache 1379 | 1380 | ; Document expires after n minutes. 1381 | ; http://php.net/session.cache-expire 1382 | session.cache_expire = 180 1383 | 1384 | ; trans sid support is disabled by default. 1385 | ; Use of trans sid may risk your users' security. 1386 | ; Use this option with caution. 1387 | ; - User may send URL contains active session ID 1388 | ; to other person via. email/irc/etc. 1389 | ; - URL that contains active session ID may be stored 1390 | ; in publicly accessible computer. 1391 | ; - User may access your site with the same session ID 1392 | ; always using URL stored in browser's history or bookmarks. 1393 | ; http://php.net/session.use-trans-sid 1394 | session.use_trans_sid = 0 1395 | 1396 | ; Select a hash function for use in generating session ids. 1397 | ; Possible Values 1398 | ; 0 (MD5 128 bits) 1399 | ; 1 (SHA-1 160 bits) 1400 | ; This option may also be set to the name of any hash function supported by 1401 | ; the hash extension. A list of available hashes is returned by the hash_algos() 1402 | ; function. 1403 | ; http://php.net/session.hash-function 1404 | session.hash_function = 0 1405 | 1406 | ; Define how many bits are stored in each character when converting 1407 | ; the binary hash data to something readable. 1408 | ; Possible values: 1409 | ; 4 (4 bits: 0-9, a-f) 1410 | ; 5 (5 bits: 0-9, a-v) 1411 | ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",") 1412 | ; Default Value: 4 1413 | ; Development Value: 5 1414 | ; Production Value: 5 1415 | ; http://php.net/session.hash-bits-per-character 1416 | session.hash_bits_per_character = 5 1417 | 1418 | ; The URL rewriter will look for URLs in a defined set of HTML tags. 1419 | ; form/fieldset are special; if you include them here, the rewriter will 1420 | ; add a hidden field with the info which is otherwise appended 1421 | ; to URLs. If you want XHTML conformity, remove the form entry. 1422 | ; Note that all valid entries require a "=", even if no value follows. 1423 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset=" 1424 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 1425 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 1426 | ; http://php.net/url-rewriter.tags 1427 | url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" 1428 | 1429 | ; Enable upload progress tracking in $_SESSION 1430 | ; Default Value: On 1431 | ; Development Value: On 1432 | ; Production Value: On 1433 | ; http://php.net/session.upload-progress.enabled 1434 | ;session.upload_progress.enabled = On 1435 | 1436 | ; Cleanup the progress information as soon as all POST data has been read 1437 | ; (i.e. upload completed). 1438 | ; Default Value: On 1439 | ; Development Value: On 1440 | ; Production Value: On 1441 | ; http://php.net/session.upload-progress.cleanup 1442 | ;session.upload_progress.cleanup = On 1443 | 1444 | ; A prefix used for the upload progress key in $_SESSION 1445 | ; Default Value: "upload_progress_" 1446 | ; Development Value: "upload_progress_" 1447 | ; Production Value: "upload_progress_" 1448 | ; http://php.net/session.upload-progress.prefix 1449 | ;session.upload_progress.prefix = "upload_progress_" 1450 | 1451 | ; The index name (concatenated with the prefix) in $_SESSION 1452 | ; containing the upload progress information 1453 | ; Default Value: "PHP_SESSION_UPLOAD_PROGRESS" 1454 | ; Development Value: "PHP_SESSION_UPLOAD_PROGRESS" 1455 | ; Production Value: "PHP_SESSION_UPLOAD_PROGRESS" 1456 | ; http://php.net/session.upload-progress.name 1457 | ;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS" 1458 | 1459 | ; How frequently the upload progress should be updated. 1460 | ; Given either in percentages (per-file), or in bytes 1461 | ; Default Value: "1%" 1462 | ; Development Value: "1%" 1463 | ; Production Value: "1%" 1464 | ; http://php.net/session.upload-progress.freq 1465 | ;session.upload_progress.freq = "1%" 1466 | 1467 | ; The minimum delay between updates, in seconds 1468 | ; Default Value: 1 1469 | ; Development Value: 1 1470 | ; Production Value: 1 1471 | ; http://php.net/session.upload-progress.min-freq 1472 | ;session.upload_progress.min_freq = "1" 1473 | 1474 | [Assertion] 1475 | ; Switch whether to compile assertions at all (to have no overhead at run-time) 1476 | ; -1: Do not compile at all 1477 | ; 0: Jump over assertion at run-time 1478 | ; 1: Execute assertions 1479 | ; Changing from or to a negative value is only possible in php.ini! (For turning assertions on and off at run-time, see assert.active, when zend.assertions = 1) 1480 | ; Default Value: 1 1481 | ; Development Value: 1 1482 | ; Production Value: -1 1483 | ; http://php.net/zend.assertions 1484 | zend.assertions = -1 1485 | 1486 | ; Assert(expr); active by default. 1487 | ; http://php.net/assert.active 1488 | ;assert.active = On 1489 | 1490 | ; Throw an AssertationException on failed assertions 1491 | ; http://php.net/assert.exception 1492 | ;assert.exception = On 1493 | 1494 | ; Issue a PHP warning for each failed assertion. (Overridden by assert.exception if active) 1495 | ; http://php.net/assert.warning 1496 | ;assert.warning = On 1497 | 1498 | ; Don't bail out by default. 1499 | ; http://php.net/assert.bail 1500 | ;assert.bail = Off 1501 | 1502 | ; User-function to be called if an assertion fails. 1503 | ; http://php.net/assert.callback 1504 | ;assert.callback = 0 1505 | 1506 | ; Eval the expression with current error_reporting(). Set to true if you want 1507 | ; error_reporting(0) around the eval(). 1508 | ; http://php.net/assert.quiet-eval 1509 | ;assert.quiet_eval = 0 1510 | 1511 | [mbstring] 1512 | ; language for internal character representation. 1513 | ; This affects mb_send_mail() and mbstring.detect_order. 1514 | ; http://php.net/mbstring.language 1515 | ;mbstring.language = Japanese 1516 | 1517 | ; Use of this INI entry is deprecated, use global internal_encoding instead. 1518 | ; internal/script encoding. 1519 | ; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*) 1520 | ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. 1521 | ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding 1522 | ;mbstring.internal_encoding = 1523 | 1524 | ; Use of this INI entry is deprecated, use global input_encoding instead. 1525 | ; http input encoding. 1526 | ; mbstring.encoding_traslation = On is needed to use this setting. 1527 | ; If empty, default_charset or input_encoding or mbstring.input is used. 1528 | ; The precedence is: default_charset < intput_encoding < mbsting.http_input 1529 | ; http://php.net/mbstring.http-input 1530 | ;mbstring.http_input = 1531 | 1532 | ; Use of this INI entry is deprecated, use global output_encoding instead. 1533 | ; http output encoding. 1534 | ; mb_output_handler must be registered as output buffer to function. 1535 | ; If empty, default_charset or output_encoding or mbstring.http_output is used. 1536 | ; The precedence is: default_charset < output_encoding < mbstring.http_output 1537 | ; To use an output encoding conversion, mbstring's output handler must be set 1538 | ; otherwise output encoding conversion cannot be performed. 1539 | ; http://php.net/mbstring.http-output 1540 | ;mbstring.http_output = 1541 | 1542 | ; enable automatic encoding translation according to 1543 | ; mbstring.internal_encoding setting. Input chars are 1544 | ; converted to internal encoding by setting this to On. 1545 | ; Note: Do _not_ use automatic encoding translation for 1546 | ; portable libs/applications. 1547 | ; http://php.net/mbstring.encoding-translation 1548 | ;mbstring.encoding_translation = Off 1549 | 1550 | ; automatic encoding detection order. 1551 | ; "auto" detect order is changed according to mbstring.language 1552 | ; http://php.net/mbstring.detect-order 1553 | ;mbstring.detect_order = auto 1554 | 1555 | ; substitute_character used when character cannot be converted 1556 | ; one from another 1557 | ; http://php.net/mbstring.substitute-character 1558 | ;mbstring.substitute_character = none 1559 | 1560 | ; overload(replace) single byte functions by mbstring functions. 1561 | ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), 1562 | ; etc. Possible values are 0,1,2,4 or combination of them. 1563 | ; For example, 7 for overload everything. 1564 | ; 0: No overload 1565 | ; 1: Overload mail() function 1566 | ; 2: Overload str*() functions 1567 | ; 4: Overload ereg*() functions 1568 | ; http://php.net/mbstring.func-overload 1569 | ;mbstring.func_overload = 0 1570 | 1571 | ; enable strict encoding detection. 1572 | ; Default: Off 1573 | ;mbstring.strict_detection = On 1574 | 1575 | ; This directive specifies the regex pattern of content types for which mb_output_handler() 1576 | ; is activated. 1577 | ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml) 1578 | ;mbstring.http_output_conv_mimetype= 1579 | 1580 | [gd] 1581 | ; Tell the jpeg decode to ignore warnings and try to create 1582 | ; a gd image. The warning will then be displayed as notices 1583 | ; disabled by default 1584 | ; http://php.net/gd.jpeg-ignore-warning 1585 | ;gd.jpeg_ignore_warning = 0 1586 | 1587 | [exif] 1588 | ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. 1589 | ; With mbstring support this will automatically be converted into the encoding 1590 | ; given by corresponding encode setting. When empty mbstring.internal_encoding 1591 | ; is used. For the decode settings you can distinguish between motorola and 1592 | ; intel byte order. A decode setting cannot be empty. 1593 | ; http://php.net/exif.encode-unicode 1594 | ;exif.encode_unicode = ISO-8859-15 1595 | 1596 | ; http://php.net/exif.decode-unicode-motorola 1597 | ;exif.decode_unicode_motorola = UCS-2BE 1598 | 1599 | ; http://php.net/exif.decode-unicode-intel 1600 | ;exif.decode_unicode_intel = UCS-2LE 1601 | 1602 | ; http://php.net/exif.encode-jis 1603 | ;exif.encode_jis = 1604 | 1605 | ; http://php.net/exif.decode-jis-motorola 1606 | ;exif.decode_jis_motorola = JIS 1607 | 1608 | ; http://php.net/exif.decode-jis-intel 1609 | ;exif.decode_jis_intel = JIS 1610 | 1611 | [Tidy] 1612 | ; The path to a default tidy configuration file to use when using tidy 1613 | ; http://php.net/tidy.default-config 1614 | ;tidy.default_config = /usr/local/lib/php/default.tcfg 1615 | 1616 | ; Should tidy clean and repair output automatically? 1617 | ; WARNING: Do not use this option if you are generating non-html content 1618 | ; such as dynamic images 1619 | ; http://php.net/tidy.clean-output 1620 | tidy.clean_output = Off 1621 | 1622 | [soap] 1623 | ; Enables or disables WSDL caching feature. 1624 | ; http://php.net/soap.wsdl-cache-enabled 1625 | soap.wsdl_cache_enabled=1 1626 | 1627 | ; Sets the directory name where SOAP extension will put cache files. 1628 | ; http://php.net/soap.wsdl-cache-dir 1629 | 1630 | ; RPM note : cache directory must be owned by process owner 1631 | ; for mod_php, see /etc/httpd/conf.d/php.conf 1632 | ; for php-fpm, see /etc/php-fpm.d/*conf 1633 | soap.wsdl_cache_dir="/tmp" 1634 | 1635 | ; (time to live) Sets the number of second while cached file will be used 1636 | ; instead of original one. 1637 | ; http://php.net/soap.wsdl-cache-ttl 1638 | soap.wsdl_cache_ttl=86400 1639 | 1640 | ; Sets the size of the cache limit. (Max. number of WSDL files to cache) 1641 | soap.wsdl_cache_limit = 5 1642 | 1643 | [sysvshm] 1644 | ; A default size of the shared memory segment 1645 | ;sysvshm.init_mem = 10000 1646 | 1647 | [ldap] 1648 | ; Sets the maximum number of open links or -1 for unlimited. 1649 | ldap.max_links = -1 1650 | 1651 | [mcrypt] 1652 | ; For more information about mcrypt settings see http://php.net/mcrypt-module-open 1653 | 1654 | ; Directory where to load mcrypt algorithms 1655 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) 1656 | ;mcrypt.algorithms_dir= 1657 | 1658 | ; Directory where to load mcrypt modes 1659 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) 1660 | ;mcrypt.modes_dir= 1661 | 1662 | [dba] 1663 | ;dba.default_handler= 1664 | 1665 | [curl] 1666 | ; A default value for the CURLOPT_CAINFO option. This is required to be an 1667 | ; absolute path. 1668 | ;curl.cainfo = 1669 | 1670 | [openssl] 1671 | ; The location of a Certificate Authority (CA) file on the local filesystem 1672 | ; to use when verifying the identity of SSL/TLS peers. Most users should 1673 | ; not specify a value for this directive as PHP will attempt to use the 1674 | ; OS-managed cert stores in its absence. If specified, this value may still 1675 | ; be overridden on a per-stream basis via the "cafile" SSL stream context 1676 | ; option. 1677 | ;openssl.cafile= 1678 | 1679 | ; If openssl.cafile is not specified or if the CA file is not found, the 1680 | ; directory pointed to by openssl.capath is searched for a suitable 1681 | ; certificate. This value must be a correctly hashed certificate directory. 1682 | ; Most users should not specify a value for this directive as PHP will 1683 | ; attempt to use the OS-managed cert stores in its absence. If specified, 1684 | ; this value may still be overridden on a per-stream basis via the "capath" 1685 | ; SSL stream context option. 1686 | ;openssl.capath= 1687 | 1688 | ; Local Variables: 1689 | ; tab-width: 4 1690 | ; End: 1691 | -------------------------------------------------------------------------------- /etc/www.conf.erb: -------------------------------------------------------------------------------- 1 | [global] 2 | error_log = <%= ENV['OPENSHIFT_PHP_LOG_DIR'] %>/php/error.log 3 | 4 | [www] 5 | listen = <%= ENV['OPENSHIFT_PHP_DIR'] %>/run/php-fpm.sock 6 | 7 | pm = dynamic 8 | pm.max_children = 50 9 | pm.start_servers = 5 10 | pm.min_spare_servers = 5 11 | pm.max_spare_servers = 35 12 | 13 | access.log = <%= ENV['OPENSHIFT_PHP_LOG_DIR'] %>/php/access.log 14 | 15 | php_admin_value[error_log] = <%= ENV['OPENSHIFT_PHP_LOG_DIR'] %>/php/error.log 16 | php_admin_flag[log_errors] = on 17 | 18 | php_value[session.save_handler] = files 19 | php_value[session.save_path] = <%= ENV['OPENSHIFT_DATA_DIR'] %>/php-session 20 | 21 | clear_env = no 22 | -------------------------------------------------------------------------------- /hooks/publish-http-url: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Exit on any errors 4 | set -e 5 | 6 | # Get gear ip address. 7 | if ! gip=$(facter ipaddress); then 8 | gip=$(python -c "import socket; print socket.gethostbyname('$(hostname)')") 9 | fi 10 | 11 | # 12 | # Publish this gear's HTTP URL/endpoint. 13 | # 14 | echo "${OPENSHIFT_GEAR_DNS}|${gip}:${OPENSHIFT_PHP_PROXY_PORT}" -------------------------------------------------------------------------------- /lib/composer: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # You can now directly use `composer install` 4 | # This is just a backward compatibility support. 5 | function install_dependencies() { 6 | echo "Installing dependencies..." 7 | cd $1; composer install 8 | } 9 | -------------------------------------------------------------------------------- /lib/util: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | function _run_template() { 4 | for conf in $@; do 5 | [ -e "$conf" ] || continue 6 | /usr/bin/oo-erb "$conf" > "${conf%.erb}" 7 | done 8 | } 9 | 10 | function build_config() { 11 | echo "Building server configuration files..." 12 | _run_template ${OPENSHIFT_PHP_DIR}/etc/*.erb 13 | 14 | echo "Building nginx configuration..." 15 | _run_template ${OPENSHIFT_REPO_DIR}/config/nginx.d/*.erb 16 | 17 | echo "Building php-fpm configuration..." 18 | _run_template ${OPENSHIFT_REPO_DIR}/config/php.d/*.erb 19 | } 20 | -------------------------------------------------------------------------------- /metadata/managed_files.yml: -------------------------------------------------------------------------------- 1 | processed_templates: 2 | - 'bin/**/*.erb' 3 | - 'env/**/*.erb' 4 | - 'hooks/**/*.erb' 5 | - 'lib/**/*.erb' 6 | - 'metadata/**/*.erb' 7 | - 'versions/**/*.erb' 8 | -------------------------------------------------------------------------------- /metadata/manifest.yml: -------------------------------------------------------------------------------- 1 | Name: nginx-php7 2 | Cartridge-Short-Name: PHP 3 | Display-Name: Nginx and PHP 7 4 | Description: "PHP 7 on OpenShift" 5 | License: "The PHP License, version 3.0" 6 | License-Url: http://www.php.net/license/3_0.txt 7 | Vendor: PHP Group 8 | Cartridge-Version: 1.9.0 9 | Cartridge-Vendor: pinodex 10 | Version: '7' 11 | Versions: ['1.11.6', '7.0.13', '1.2.4'] 12 | Categories: 13 | - service 14 | - php 15 | - nginx 16 | - web_framework 17 | Website: http://php.net 18 | Cart-Data: 19 | - Key: OPENSHIFT_TMP_DIR 20 | Type: environment 21 | Description: "Directory to store application temporary files." 22 | - Key: OPENSHIFT_REPO_DIR 23 | Type: environment 24 | Description: "Application root directory where application files reside. This directory is reset every time you do a git-push" 25 | - Key: OPENSHIFT_PHP_PORT 26 | Type: environment 27 | Description: "Internal port to which the web-framework binds to." 28 | - Key: OPENSHIFT_PHP_IP 29 | Type: environment 30 | Description: "Internal IP to which the web-framework binds to." 31 | - Key: OPENSHIFT_APP_DNS 32 | Type: environment 33 | Description: "Fully qualified domain name for the application." 34 | - Key: OPENSHIFT_APP_NAME 35 | Type: environment 36 | Description: "Application name" 37 | - Key: OPENSHIFT_DATA_DIR 38 | Type: environment 39 | Description: "Directory to store application data files. Preserved across git-pushes. Not shared across gears." 40 | - Key: OPENSHIFT_APP_UUID 41 | Type: environment 42 | Description: "Unique ID which identified the application. Does not change between gears." 43 | - Key: OPENSHIFT_GEAR_UUID 44 | Type: environment 45 | Description: "Unique ID which identified the gear. This value changes between gears." 46 | Provides: 47 | - nginx-1.9 48 | - nginx 49 | - php-7.0 50 | - php 51 | Publishes: 52 | publish-http-url: 53 | Type: "NET_TCP:httpd-proxy-info" 54 | publish-gear-endpoint: 55 | Type: "NET_TCP:gear-endpoint-info" 56 | Subscribes: 57 | set-env: 58 | Type: "ENV:*" 59 | Required: false 60 | set-mysql-connection-info: 61 | Type: "NET_TCP:db:mysql" 62 | Required : false 63 | set-postgres-connection-info: 64 | Type: "NET_TCP:db:postgres" 65 | Required : false 66 | set-doc-url: 67 | Type: "STRING:urlpath" 68 | Required : false 69 | Scaling: 70 | Min: 1 71 | Max: -1 72 | Endpoints: 73 | - Private-IP-Name: IP 74 | Private-Port-Name: PORT 75 | Private-Port: 8080 76 | Public-Port-Name: PROXY_PORT 77 | Mappings: 78 | - Frontend: "" 79 | Backend: "" 80 | Options: { websocket: true } 81 | - Frontend: "/health" 82 | Backend: "" 83 | Options: { health: true } 84 | - Private-IP-Name: FPM_IP 85 | Private-Port-Name: FPM_PORT 86 | Private-Port: 9000 87 | -------------------------------------------------------------------------------- /template/.openshift/action_hooks/deploy: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Deploying..." 4 | build_config 5 | 6 | # Uncomment the following line to use Composer and automatically install dependencies on deploy. 7 | # 8 | #cd $OPENSHIFT_REPO_DIR; composer install 9 | -------------------------------------------------------------------------------- /template/.openshift/markers/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/template/.openshift/markers/.gitkeep -------------------------------------------------------------------------------- /template/config/nginx.d/default.conf.erb: -------------------------------------------------------------------------------- 1 | server { 2 | root <%= ENV['OPENSHIFT_REPO_DIR'] %>/www; 3 | listen <%= ENV['OPENSHIFT_PHP_IP'] %>:<%= ENV['OPENSHIFT_PHP_PORT'] %>; 4 | server_name <%= ENV['OPENSHIFT_APP_DNS'] %>; 5 | index index.php index.html index.htm <%= ENV['NGINX_EXTRA_INDEX'] %>; 6 | 7 | set_real_ip_from <%= ENV['OPENSHIFT_PHP_IP'] %>; 8 | real_ip_header X-Forwarded-For; 9 | 10 | # avoid caching by proxies 11 | add_header Cache-Control private; 12 | 13 | location ~ \.php$ { 14 | try_files $uri =404; 15 | fastcgi_pass unix:<%= ENV['OPENSHIFT_PHP_DIR'] %>/run/php-fpm.sock; 16 | fastcgi_index index.php; 17 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 18 | include fastcgi_params; 19 | include openshift_params; 20 | 21 | # uncomment to export all environment variables to fastcgi 22 | #include <%= ENV['OPENSHIFT_REPO_DIR'] %>/config/nginx.d/export_env; 23 | } 24 | 25 | # avoid unnecessary log 26 | location = /favicon.ico { 27 | access_log off; 28 | log_not_found off; 29 | } 30 | 31 | location = /robots.txt { 32 | access_log off; 33 | log_not_found off; 34 | } 35 | 36 | # Handle any other URI 37 | location / { 38 | try_files $uri $uri/ =404; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /template/config/nginx.d/export_env.erb: -------------------------------------------------------------------------------- 1 | <% 2 | ENV.each do |name, value| 3 | puts "fastcgi_param #{name} '#{value}';" unless name.start_with?("OPENSHIFT_"); 4 | end 5 | %> -------------------------------------------------------------------------------- /template/config/php.d/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/template/config/php.d/.gitkeep -------------------------------------------------------------------------------- /template/config/php.d/extensions.ini: -------------------------------------------------------------------------------- 1 | extension=apcu.so 2 | extension=bcmath.so 3 | extension=bz2.so 4 | extension=calendar.so 5 | extension=ctype.so 6 | extension=curl.so 7 | extension=dom.so 8 | extension=exif.so 9 | extension=fileinfo.so 10 | extension=ftp.so 11 | extension=gd.so 12 | extension=gettext.so 13 | extension=gmp.so 14 | extension=iconv.so 15 | extension=imagick.so 16 | extension=imap.so 17 | extension=intl.so 18 | extension=json.so 19 | extension=mbstring.so 20 | extension=mcrypt.so 21 | extension=mysqli.so 22 | extension=pdo.so 23 | extension=pdo_mysql.so 24 | extension=pdo_pgsql.so 25 | extension=pdo_sqlite.so 26 | extension=pgsql.so 27 | extension=phar.so 28 | extension=posix.so 29 | extension=shmop.so 30 | extension=simplexml.so 31 | extension=soap.so 32 | extension=sockets.so 33 | extension=sqlite3.so 34 | extension=sysvmsg.so 35 | extension=sysvsem.so 36 | extension=sysvshm.so 37 | extension=tidy.so 38 | extension=tokenizer.so 39 | extension=xmlreader.so 40 | extension=xml.so 41 | extension=xmlwriter.so 42 | extension=xsl.so 43 | extension=wddx.so 44 | extension=zip.so 45 | #extension=mongodb.so 46 | -------------------------------------------------------------------------------- /template/www/index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Welcome to OpenShift 6 | 7 | 58 | 59 | 60 |
61 |
62 |
63 | OpenShift Logo 64 |
65 |

Welcome!

66 |

You are running PHP

67 |
68 |
69 |

What's next?

70 |

Make changes to this website by editing the files inside www/ of your repository.

71 |

Commit your changes after, then push to the remote repository.

72 |
$ git commit -a -m "Some commit message"
73 | $ git push origin master
74 |

More

75 | 80 |
81 |
82 | 83 | -------------------------------------------------------------------------------- /template/www/static/openshift-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/template/www/static/openshift-logo.png -------------------------------------------------------------------------------- /usr/bin/build_config: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | function _run_template() { 4 | for conf in $@; do 5 | [ -e "$conf" ] || continue 6 | /usr/bin/oo-erb "$conf" > "${conf%.erb}" 7 | done 8 | } 9 | 10 | echo "Building server configuration files..." 11 | _run_template ${OPENSHIFT_PHP_DIR}/etc/*.erb 12 | 13 | echo "Building nginx configuration..." 14 | _run_template ${OPENSHIFT_REPO_DIR}/config/nginx.d/*.erb 15 | 16 | echo "Building php-fpm configuration..." 17 | _run_template ${OPENSHIFT_REPO_DIR}/config/php.d/*.erb 18 | -------------------------------------------------------------------------------- /usr/bin/composer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/bin/composer -------------------------------------------------------------------------------- /usr/bin/manifest.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import sys 4 | import yaml 5 | 6 | prefix = sys.argv[2] 7 | 8 | with open(sys.argv[1], 'r') as manifest_file: manifest = yaml.load(manifest_file) 9 | 10 | output = prefix + 'VERSION=' + manifest['Cartridge-Version'] + '\n'; 11 | output += prefix + 'NGINX_VERSION=' + manifest['Versions'][0] + '\n'; 12 | output += prefix + 'PHP_VERSION=' + manifest['Versions'][1] + '\n'; 13 | output += prefix + 'COMPOSER_VERSION=' + manifest['Versions'][2]; 14 | 15 | print output -------------------------------------------------------------------------------- /usr/bin/php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/bin/php -------------------------------------------------------------------------------- /usr/bin/service: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # This is a psuedo /usr/sbin/service 4 | # 5 | # Usage: 6 | # $ service 7 | 8 | source $OPENSHIFT_CARTRIDGE_SDK_BASH 9 | 10 | name=$1 11 | action=$2 12 | 13 | function_name="${name}_${action}" 14 | 15 | function kill_process() { 16 | if [ -f "$1" ]; then 17 | pid=`cat "$1" 2>/dev/null` 18 | fi 19 | 20 | if [ -n "$pid" ]; then 21 | if kill -0 $pid > /dev/null 2>&1; then 22 | client_message "Killing process ${pid}" 23 | kill $pid 24 | wait_for_stop $pid 25 | fi 26 | fi 27 | 28 | if [ -f "$1" ]; then 29 | rm -f "$1" 30 | fi 31 | } 32 | 33 | # Service start and stop functions 34 | 35 | function php-fpm_start() { 36 | echo "Starting php-fpm..."; 37 | 38 | if [ ! -f $PHP_FPM_PID_FILE ]; then 39 | php-fpm -g ${PHP_FPM_PID_FILE} -y ${PHP_FPM_CONFIG_FILE} -D 40 | echo "php-fpm has started" 41 | else 42 | echo "php-fpm is already running" 43 | fi 44 | } 45 | 46 | function php-fpm_stop() { 47 | echo "Stopping php-fpm..."; 48 | kill_process $PHP_FPM_PID_FILE 49 | } 50 | 51 | function php-fpm_restart() { 52 | php-fpm_stop; php-fpm_start 53 | } 54 | 55 | function php-fpm_configtest() { 56 | php-fpm -y ${PHP_FPM_CONFIG_FILE} -t 57 | } 58 | 59 | function nginx_start() { 60 | echo "Starting nginx..." 61 | 62 | if [ ! -f $NGINX_PID_FILE ]; then 63 | nginx -c ${NGINX_CONFIG_FILE} >> $OPENSHIFT_PHP_LOG_DIR/nginx/stdout.log 2>&1 64 | 65 | echo "nginx has started" 66 | else 67 | echo "nginx is already running" 68 | fi 69 | } 70 | 71 | function nginx_stop() { 72 | echo "Stopping nginx..."; 73 | kill_process $NGINX_PID_FILE 74 | } 75 | 76 | function nginx_restart() { 77 | nginx_stop; nginx_start 78 | } 79 | 80 | function nginx_configtest() { 81 | nginx -c ${NGINX_CONFIG_FILE} -t 82 | } 83 | 84 | # Functions caller 85 | 86 | if $(declare -f -F $function_name > /dev/null); then 87 | eval ${function_name} 88 | else 89 | echo "Invalid service name and/or action" 90 | fi 91 | -------------------------------------------------------------------------------- /usr/bin/update: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Updater script for this cartridge 4 | 5 | MANIFEST_URL="http://cartreflect-claytondev.rhcloud.com/github/pinodex/openshift-cartridge-nginx-php7" 6 | MANIFEST_PARSER="${OPENSHIFT_PHP_DIR}usr/bin/manifest.py" 7 | MANIFEST_LOCAL="${OPENSHIFT_PHP_DIR}metadata/manifest.yml" 8 | 9 | function check() { 10 | echo "Checking for updates..." 11 | 12 | # Get remote cartridge version 13 | wget -q -O /tmp/manifest_latest.yml $MANIFEST_URL 14 | eval $(python $MANIFEST_PARSER /tmp/manifest_latest.yml 'REMOTE_') 15 | 16 | # Get local cartridge version 17 | LOCAL_VERSION=$(cat "${OPENSHIFT_PHP_DIR}etc/cartridge_version") 18 | 19 | if [ "$LOCAL_VERSION" != "$REMOTE_VERSION" ]; then 20 | echo "Version ${REMOTE_VERSION} is available:" 21 | echo " > Nginx ${REMOTE_NGINX_VERSION}" 22 | echo " > PHP ${REMOTE_PHP_VERSION}" 23 | echo " > Composer ${REMOTE_COMPOSER_VERSION}" 24 | echo "Run \`update install\` to install updates." 25 | 26 | echo $REMOTE_VERSION > /tmp/update_version 27 | else 28 | echo "Your cartridge is up to date." 29 | fi 30 | } 31 | 32 | function install() { 33 | if [ ! -f /tmp/update_version ]; then 34 | echo "No updates available." 35 | echo "Please run \`update check\` to check for updates" 36 | 37 | return 0 38 | fi 39 | 40 | CARTRIDGE_VERSION=$(cat /tmp/update_version) 41 | URL="https://github.com/pinodex/openshift-cartridge-nginx-php7/archive/${CARTRIDGE_VERSION}.tar.gz" 42 | 43 | echo "You are updating to version ${CARTRIDGE_VERSION}." 44 | echo "Make sure you have a backup just in case something gets wrong." 45 | 46 | read -p "Proceed? [Y/n]: " 47 | 48 | if [[ $REPLY =~ ^[Yy]$ ]]; then 49 | echo "Downloading ${CARTRIDGE_VERSION}.tar.gz..." 50 | curl $URL -L > "/tmp/cartridge-${CARTRIDGE_VERSION}.tar.gz" --progress-bar 51 | 52 | echo "Extracting ${CARTRIDGE_VERSION}.tar.gz..." 53 | 54 | if [ -d "/tmp/${CARTRIDGE_VERSION}" ]; then 55 | rm -rf "/tmp/${CARTRIDGE_VERSION}" 56 | fi 57 | 58 | mkdir "/tmp/${CARTRIDGE_VERSION}" 59 | tar -xf "/tmp/cartridge-${CARTRIDGE_VERSION}.tar.gz" -C "/tmp/${CARTRIDGE_VERSION}" --strip-components=1 60 | 61 | echo "Preparing to apply update..." 62 | 63 | service php-fpm stop 64 | service nginx stop 65 | 66 | # Delete old rollback files 67 | rm -rf "${OPENSHIFT_PHP_DIR}.rollback" 68 | 69 | # Backup for rollback then delete 70 | mkdir "${OPENSHIFT_PHP_DIR}.rollback" 71 | cp -r "${OPENSHIFT_PHP_DIR}usr/" "${OPENSHIFT_PHP_DIR}.rollback/" 72 | cp "${OPENSHIFT_PHP_DIR}etc/cartridge_version" "${OPENSHIFT_PHP_DIR}.rollback/" 73 | 74 | rm -rf "${OPENSHIFT_PHP_DIR}usr/" 75 | 76 | echo "Applying update..." 77 | cp -r "/tmp/${CARTRIDGE_VERSION}/usr/" $OPENSHIFT_PHP_DIR 78 | 79 | echo "Finishing update..." 80 | echo $CARTRIDGE_VERSION > "${OPENSHIFT_PHP_DIR}etc/cartridge_version" 81 | 82 | service php-fpm start 83 | service nginx start 84 | 85 | echo "Cleaning up..." 86 | rm "/tmp/cartridge-${CARTRIDGE_VERSION}.tar.gz" 87 | rm -rf "/tmp/${CARTRIDGE_VERSION}" 88 | rm -f /tmp/update_source_url /tmp/update_CARTRIDGE_VERSION 89 | 90 | echo "Update complete!" 91 | version 92 | fi 93 | } 94 | 95 | function rollback() { 96 | if [ ! -d "${OPENSHIFT_PHP_DIR}.rollback" ]; then 97 | echo "Rollback files is not available" 98 | 99 | return 0 100 | fi 101 | 102 | ROLLBACK_VERSION=$(cat "${OPENSHIFT_PHP_DIR}.rollback/cartridge_version") 103 | 104 | echo "This action will revert your cartridge to ${ROLLBACK_VERSION}" 105 | read -p "Proceed? [Y/n]: " 106 | 107 | if [[ $REPLY =~ ^[Yy]$ ]]; then 108 | echo "Preparing for rollback" 109 | 110 | service php-fpm stop 111 | service nginx stop 112 | 113 | echo "Reverting to previous version..." 114 | 115 | rm -rf "${OPENSHIFT_PHP_DIR}usr/" 116 | cp -r "${OPENSHIFT_PHP_DIR}.rollback/usr/" $OPENSHIFT_PHP_DIR 117 | cp "${OPENSHIFT_PHP_DIR}.rollback/cartridge_version" "${OPENSHIFT_PHP_DIR}etc/cartridge_version" 118 | 119 | echo "Finishing process..." 120 | 121 | service php-fpm start 122 | service nginx start 123 | 124 | echo "Cleaning up..." 125 | rm -rf "${OPENSHIFT_PHP_DIR}.rollback" 126 | 127 | echo "Revert completed" 128 | fi 129 | } 130 | 131 | case "$1" in 132 | check) check;; 133 | install) install;; 134 | rollback) rollback;; 135 | *) check 136 | esac 137 | -------------------------------------------------------------------------------- /usr/bin/version: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo -e "Cartridge version: `cat ${OPENSHIFT_PHP_DIR}etc/cartridge_version`\n" 4 | 5 | nginx -v 6 | echo 7 | 8 | php --version 9 | echo 10 | 11 | composer --version 12 | echo 13 | -------------------------------------------------------------------------------- /usr/lib64/ld-linux-x86-64.so.2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/ld-linux-x86-64.so.2 -------------------------------------------------------------------------------- /usr/lib64/libc.so.6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libc.so.6 -------------------------------------------------------------------------------- /usr/lib64/libcom_err.so.2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libcom_err.so.2 -------------------------------------------------------------------------------- /usr/lib64/libcrypt.so.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libcrypt.so.1 -------------------------------------------------------------------------------- /usr/lib64/libcrypto.so.10: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libcrypto.so.10 -------------------------------------------------------------------------------- /usr/lib64/libdl.so.2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libdl.so.2 -------------------------------------------------------------------------------- /usr/lib64/libedit.so.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libedit.so.0 -------------------------------------------------------------------------------- /usr/lib64/libfreebl3.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libfreebl3.so -------------------------------------------------------------------------------- /usr/lib64/libgcc_s.so.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libgcc_s.so.1 -------------------------------------------------------------------------------- /usr/lib64/libgssapi_krb5.so.2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libgssapi_krb5.so.2 -------------------------------------------------------------------------------- /usr/lib64/libk5crypto.so.3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libk5crypto.so.3 -------------------------------------------------------------------------------- /usr/lib64/libkeyutils.so.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libkeyutils.so.1 -------------------------------------------------------------------------------- /usr/lib64/libkrb5.so.3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libkrb5.so.3 -------------------------------------------------------------------------------- /usr/lib64/libkrb5support.so.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libkrb5support.so.0 -------------------------------------------------------------------------------- /usr/lib64/libm.so.6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libm.so.6 -------------------------------------------------------------------------------- /usr/lib64/libncurses.so.5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libncurses.so.5 -------------------------------------------------------------------------------- /usr/lib64/libnsl.so.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libnsl.so.1 -------------------------------------------------------------------------------- /usr/lib64/libpthread.so.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libpthread.so.0 -------------------------------------------------------------------------------- /usr/lib64/libresolv.so.2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libresolv.so.2 -------------------------------------------------------------------------------- /usr/lib64/librt.so.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/librt.so.1 -------------------------------------------------------------------------------- /usr/lib64/libselinux.so.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libselinux.so.1 -------------------------------------------------------------------------------- /usr/lib64/libssl.so.10: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libssl.so.10 -------------------------------------------------------------------------------- /usr/lib64/libstdc++.so.6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libstdc++.so.6 -------------------------------------------------------------------------------- /usr/lib64/libtinfo.so.5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libtinfo.so.5 -------------------------------------------------------------------------------- /usr/lib64/libxml2.so.2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libxml2.so.2 -------------------------------------------------------------------------------- /usr/lib64/libz.so.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/libz.so.1 -------------------------------------------------------------------------------- /usr/lib64/php/modules/apcu.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/apcu.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/bcmath.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/bcmath.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/bz2.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/bz2.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/calendar.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/calendar.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/ctype.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/ctype.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/curl.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/curl.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/dom.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/dom.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/exif.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/exif.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/fileinfo.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/fileinfo.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/ftp.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/ftp.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/gd.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/gd.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/gettext.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/gettext.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/gmp.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/gmp.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/iconv.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/iconv.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/imagick.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/imagick.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/imap.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/imap.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/intl.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/intl.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/json.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/json.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/mbstring.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/mbstring.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/mcrypt.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/mcrypt.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/mongodb.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/mongodb.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/mysqli.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/mysqli.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/pdo.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/pdo.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/pdo_mysql.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/pdo_mysql.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/pdo_pgsql.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/pdo_pgsql.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/pdo_sqlite.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/pdo_sqlite.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/pgsql.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/pgsql.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/phar.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/phar.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/posix.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/posix.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/shmop.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/shmop.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/simplexml.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/simplexml.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/soap.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/soap.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/sockets.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/sockets.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/sqlite3.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/sqlite3.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/sysvmsg.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/sysvmsg.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/sysvsem.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/sysvsem.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/sysvshm.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/sysvshm.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/tidy.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/tidy.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/tokenizer.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/tokenizer.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/wddx.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/wddx.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/xdebug.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/xdebug.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/xml.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/xml.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/xmlreader.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/xmlreader.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/xmlwriter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/xmlwriter.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/xsl.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/xsl.so -------------------------------------------------------------------------------- /usr/lib64/php/modules/zip.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/lib64/php/modules/zip.so -------------------------------------------------------------------------------- /usr/sbin/nginx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/sbin/nginx -------------------------------------------------------------------------------- /usr/sbin/php-fpm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pinodex/openshift-cartridge-nginx-php7/c73367e77cfb88b089403c27927ff25f2ec08bed/usr/sbin/php-fpm --------------------------------------------------------------------------------