.._________________________________________________________________________________________
.. xampp setup.txt 260416_152019
.__________________________________________________________________________________________
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
https://www.apachefriends.org/jp/index.html にアクセス 「Windows向け」をクリック ローカルに xampp-windows-x64-8.1.2-0-VS16-installer.exe がダウンロードされ、 https://www.apachefriends.org/jp/download_success.html が表示される。 xampp-windows-x64-8.1.2-0-VS16-installer.exe を実行。 https://bitnami.com/stack/xampp?utm_source=bitnami&utm_medium=installer&utm_campaign=XAMPP%2BInstaller これだけで8分ちかくかかる finishとでる コントロールパネルが表示される apacheのstartをおす 先にブラウザを立ち上げておく adminを押す - http://localhost/dashboard/ XAMPP Apache + MariaDB + PHP + Perl が表示される Mysqlのstartを押す - http://localhost/phpmyadmin/ phpMyAdmin が立ち上がる |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
[php.ini] * max_execution_time = 120 max_execution_time = 300 * memory_limit = 512M memory_limit = -1 * post_max_size = 40M post_max_size = 256M include_path = \xampp\php\PEAR include_path = C:\pleiades\xampp\php\PEAR extension_dir = "\xampp\php\ext" extension_dir = "C:\pleiades\xampp\php\ext" upload_tmp_dir = "\xampp\tmp" upload_tmp_dir = "C:\pleiades\xampp\tmp" * upload_max_filesize = 40M upload_max_filesize = 256M * error_log="\xampp\php\logs\php_error_log" error_log="C:\pleiades\xampp\php\logs\php_error.log" * ;sendmail_path = sendmail_path = "\"C:\pleiades\xampp\sendmail\sendmail.exe\" -t" browscap = "\xampp\php\extras\browscap.ini" browscap = "C:\pleiades\xampp\php\extras\browscap.ini" session.save_path = "\xampp\tmp" session.save_path = "C:\pleiades\xampp\tmp" curl.cainfo = "\xampp\apache\bin\curl-ca-bundle.crt" curl.cainfo = "C:\pleiades\xampp\apache\bin\curl-ca-bundle.crt" openssl.cafile = "\xampp\apache\bin\curl-ca-bundle.crt" openssl.cafile = "C:\pleiades\xampp\apache\bin\curl-ca-bundle.crt" zend_extension = "\xampp\php\ext\php_xdebug.dll" zend_extension = "C:\pleiades\xampp\php\ext\php_xdebug.dll" [my.ini] rootパスワードを設定しなければ変化なし [mysqld] port= 3306 ↓ [mysqld] collation_server = utf8_general_ci character_set_server=utf8 port= 3306 [sendmail.ini] smtp_server=mail.mydomain.com smtp_server=smtp.lolipop.jp smtp_port=25 smtp_port=465 auth_username= auth_password= auth_username=member@example.com auth_password=*************** force_sender= force_sender=member@example.com [apahche conf] |
http-ssl.conf
httpd-vhost.conf
を更新
openssl-san.cnf を新規作成
keyとcrtにkeyを装備
Mail
Net
Mail.php を Pearにコピー
Perl
lib/Jcodeフォルダ
lib/Jcode.pm をコピー
.._________________________________________________________________________________________
.. xamppインストール方法(1).txt 260416_152019
.__________________________________________________________________________________________
|
1 2 3 4 5 6 |
RewriteCond %{HTTP_HOST} !^example\.com$ [NC] RewriteCond %{HTTP_REFERER} ^https://example\.com [NC] RewriteRule (.*) https://example.com/$1 [R=301,L] RewriteCond %{HTTP_HOST} !^www.example\.com$ [NC] RewriteCond %{HTTP_REFERER} ^https://www.example\.com [NC] RewriteRule (.*) https://www.example.com/$1 [R=301,L] |
.._________________________________________________________________________________________
.. xampp入れ直し 差異.txt 260416_152019
.__________________________________________________________________________________________
———————————————————–
php/php.ini
;extension=php_openssl.dll
↓
extension=php_openssl.dll
———————————————————–
phpMyadmin/config.inc.php
$cfg[‘Servers’][$i][‘password’] = ”;
↓
$cfg[‘Servers’][$i][‘password’] = ‘********’;
—————————–
最下行に追加
/**
* maximum execution time in seconds (0 for no limit)
*
* @global integer $cfg[‘ExecTimeLimit’]
*/
$cfg[‘ExecTimeLimit’] = 6000;
———————————————————–
sendmail/sendmail.ini
smtp_ssl=auto
↓
;smtp_ssl=auto
smtp_ssl=tls
———————————————————–
apache/conf/ssl.crt/my-server.crt
apache/conf/ssl.key/my-server.key
mysql/data
xampp入れ直し 差異2
php.ini
バージョンアップではパス指定に”C:”が省かれているが
zend_extension = “c:\pleiades\xampp\php\ext\php_xdebug.dll”
ははぶくとエラーになる
max_execution_time = 300
memory_limit = 256M
post_max_size = 256M
upload_max_filesize = 256M
;extension=php_imagick.dll
date.timezone = Asia/Tokyo
;SMTP = localhost
;smtp_port = 25
date.timezone=Asia/Tokyo
—————————————————————————–
sendmail.ini
smtp_server=smtp.gmail.com
smtp_port=587
;smtp_ssl=auto
smtp_ssl=tls
auth_username=*******@gmail.com
auth_password=********
force_sender=*******@gmail.com
.._________________________________________________________________________________________
.. ローカル環境でのSSLの実現方法.txt 260416_152019
.__________________________________________________________________________________________
今日はローカル環境でのSSLのやり方についてご紹介します。
openssl-san.cnf とテキストエディタを開いて openssl-san.append.cnf をコピペ追加
|
1 2 3 4 5 6 7 8 9 |
[ SAN ] subjectAltName = @alt_names [ alt_names ] DNS.1 = local.localhost DNS.2 = local.wp1 DNS.3 = local.wp2 DNS.4 = local.wp3 DNS.5 = local.wp4 DNS.6 = local.wp5 |
こんなふうに追加していきます。
つづいて gitbashを開きます。
そして、以下のようなコマンドを入力します。
|
1 |
openssl req -newkey rsa:4096 -keyout my-server.key -x509 -nodes -out my-server.crt -subj "//CN=localhost" -reqexts SAN -extensions SAN -config openssl-san.cnf -days 3650 |
これで、
my-server.crt と
my-server.key
というファイルが出来上がります。
これを、該当ディレクトリに移動します。
crtとkeyを該当ディレクトリにコピー
my-server.crt をダブルクリック。後は解説サイトのやり方
hostsには以下のようにしておきます
場所は C:\Windows\System32\drivers\etc にあります。
|
1 2 |
# wp1 127.0.0.1 local.wp1 |
httpd-ssl.conf
|
1 2 3 4 5 6 7 8 |
# wp1 <VirtualHost *:443> DocumentRoot "/var/www/wp1" ServerName local.wp1 SSLEngine on SSLCertificateFile "conf/ssl.crt/my-server.crt" SSLCertificateKeyFile "conf/ssl.key/my-server.key" </VirtualHost> |
.._________________________________________________________________________________________
.. localhost の ssl化の方法.txt 260416_152019
.__________________________________________________________________________________________
opensslはconfじゃなくてcnfとやり方
openssl-san.cnf とテキストエディタを開いて openssl-san.append.cnf をコピペ追加
gitbash
openssl req -newkey rsa:4096 -keyout my-server.key -x509 -nodes -out my-server.crt -subj “//CN=localhost” -reqexts SAN -extensions SAN -config openssl-san.cnf -days 3650
crtとkeyを該当ディレクトリにコピー
my-server.crt をダブルクリック。後は解説サイトのやり方
chrome設定→プライバシートセキュリティ→セニュリティ→」証明書の管理
「先に削除しておく」では検索窓を使う
解説サイト
apache & DB & chrome再起動だけではダメで、PCそのものの再起動が必要だった
.._________________________________________________________________________________________
.._________________________________________________________________________________________
.. Apache起動でエラー.txt 260416_152019
.__________________________________________________________________________________________
15:56:18 [Apache] Attempting to start Apache app…
15:56:18 [Apache] Status change detected: running
15:56:25 [Apache] Status change detected: stopped
15:56:25 [Apache] Error: Apache shutdown unexpectedly.
15:56:25 [Apache] This may be due to a blocked port, missing dependencies,
15:56:25 [Apache] improper privileges, a crash, or a shutdown by another method.
15:56:25 [Apache] Press the Logs button to view error logs and check
15:56:25 [Apache] the Windows Event Viewer for more clues
15:56:25 [Apache] If you need more help, copy and post this
15:56:25 [Apache] entire log window on the forums
SSLを設定し直したら治った
.._________________________________________________________________________________________
.. http error 500 このページは動作していません.txt 260416_152019
.__________________________________________________________________________________________
php.ini
error_log=”C:\pleiades\xampp\php\logs\php_error_log”
ディレクトリがないと生成してくれない
