60歳からITエンジニアを目指す無謀なブログ

60歳で定年し、職種を変更してIT技術者を目指すブログです。

2023-01-01から1ヶ月間の記事一覧

Apache でphp-fpm実行時のパーミッションで陥った問題

■Linuxサーバの立ち上げ初心者です。備忘録として書いています。 あるサーバで動作していたプログラムを新しく立ち上げたサーバ環境にポーティングしたところPHPプログラムが動かなくなりました。 ・新サーバは自分でAlmalinuxを初めてインストールしたとこ…

Windows11 にWSL使ってDebian Linuxをインストールして、pip3 pipenv構築まで

------------- Debian install ----------------- Windowsコマンドプロンプトにて $>wsl --install --online [ENT] NAME FRIENDLY NAMEUbuntu UbuntuDebian Debian GNU/Linuxkali-linux Kali Linux RollingSLES-12 SUSE Linux Enterprise Server v12SLES-1…

Windows11 にWSL使ってDebian Linuxをインストールして、pip3 pipenv構築まで

------------- Debian install ----------------- Windowsコマンドプロンプトにて $>wsl --install --online [ENT] NAME FRIENDLY NAMEUbuntu UbuntuDebian Debian GNU/Linuxkali-linux Kali Linux RollingSLES-12 SUSE Linux Enterprise Server v12SLES-1…

apache2 起動・停止

起動 sudo systemctl start httpd 停止 sudo systemctl stop httpd 自動起動(Boot時に自動でStartする) sudo systemctl enable httpd 即時自動起動 sudo systemctl enable --now httpd 自動起動削除 sudo systemctl disable httpd httpd 停止 sudo systemc…

bash シェルスクリプト を少し

ー--------------.bashrc file------------------------------------------- # .bashrc # Source global definitionsif [ -f /etc/bashrc ]; then . /etc/bashrcfi # User specific environmentif ! "$PATH" =~ "$HOME/.local/bin:$HOME/bin:"…

apache Basic認証 アクセス制限 .htpasswd生成

.htaccessファイルに以下を記載します。 AuthUserFile .htpasswdAuthGroupFile /dev/nullAuthName "Please enter your ID and password"AuthType Basicrequire valid-user パスワードファイル .htpasswdを生成します。 $>htpasswd -c .htpasswd ユーザー名 […

PHP フォーム変数$の受け渡し

index.htmlファイルに以下のようにフォーム入力のhtml記載をします。 <form action="confirm.php" method="post"> <table> <tr> <th><label for="last_name">Last Name<br><span>*Required</span></label></th> <td colspan="3"><input id="last_name" type="text" name="last_name" size="79" /></td> </tr> method= "post"または"get"を記載します。 このフォームをp…</table></form>

PHP フォーム変数$の受け渡し

index.htmlファイルに以下のようにフォーム入力のhtml記載をします。 <form action="confirm.php" method="post"> <table> <tr> <th><label for="last_name">Last Name<br><span>*Required</span></label></th> <td colspan="3"><input id="last_name" type="text" name="last_name" size="79" /></td> </tr> method= "post"または"get"を記載します。 このフォームをp…</table></form>