全文検索:
- 83 PHP複数バージョンを共存
- ode> ==== php7.1が利用したい場合 ==== <code|.htaccess> <FilesMatch "\.php$"> SetHandler x-httpd-php71 </FilesMatch> </code> ==== php5.6が利用したい場合 ==== <code|.htaccess> <FilesMatch "\.php$"> SetHandler x-httpd-php56 </FilesMatch> </code> ==== 何も指定しない場合 ==== .htaccessに何も設定
- 32 CentOS5でTLS1.2 Apache PHP
- ode> xml/apr_xml.c:35:19: error: expat.h: No such file or directory xml/apr_xml.c:66: error: expected sp... enable-setenvif \ --enable-authn-alias \ --enable-file-cache \ --enable-disk-cache \ --enable-mem-cache ... xt \ --with-curl=/opt/curl-7.58.0 \ --with-config-file-path=/opt/php-5.6.13/etc/ \ --with-config-file-scan-dir=/opt/php-5.6.13/etc/php.d \ --with-mcrypt # wg
- 82 CentOS 5.8 + Apache 2.2 + PHP 5.3 + suPHP 0.7.1
- min_uid=500 min_gid=100 ; Security options allow_file_group_writeable=false allow_file_others_writeable=false allow_directory_group_writeable=false allow_dir... <code> # This is the Apache server configuration file providing suPHP support. # It contains the config... ine off #</IfModule> # To use suPHP to parse PHP-Files AddHandler x-httpd-php .php AddHandler x-httpd-p
- 33 PHP56 fsockopenでエラー
- errstr); </code> ===== 対応方法 ===== default_cert_fileを調べて、CA証明書を用意しておく。 <code> # ln -s /etc/pki/tls/cer... sl-1.0.2r/ssl/cert.pem </code> ==== default_cert_fileの確認 ==== <code> # /opt/php-5.6.13/bin/php -r "prin... get_cert_locations());" Array ( [default_cert_file] => /opt/openssl-1.0.2r/ssl/cert.pem [default_cert_file_env] => SSL_CERT_FILE [default_cert_dir] => /
- 01 .htaccess
- SetEnvIf で設定する。 <code console> # cat .htaccess <FilesMatch ".*"> <Limit POST> ... #_____ALLOW_CIDR_LIST# </Limit> </FilesMatch> </code> {{tag>basic認証 .htaccess}}
- 04 .htaccess で制限時間設定
- %{REQUEST_URI} .* [NC] RewriteRule ^(.*)$ - [F] <Files ~ "^qe19ay6g96xxrh_20180220.tar.gz$"> AuthUserfi... d-user satisfy any order allow,deny deny from all </Files> </code> {{tag>.htaccess mod_rewrite}}
- 15 CentOS6 suPHP7.2
- cript ;chroot=/mychroot ; Security options allow_file_group_writeable=false allow_file_others_writeable=false allow_directory_group_writeable=false allow_dir
- 17 Nginx FastCGI Cache
- stcgi_index index.php; fastcgi_param SCRIPT_FILENAME $request_filename; include fastcgi_params; ### 以下の設定を追加 ### set $do_no
- mod_rewrite
- プページ表示 RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.*$ / [L] ===== RewriteRuleのフラグ ===== ^
- 84 PHP アクセラレータ
- ブル(キャッシュするスクリプト)の最大数。 設定できる値は 200 〜 100000 までの値。 opcache.max_accelerated_files=4000 </code> {{tag>php}}