OSSに関するセキュリティ・ツールの使い方・脆弱性等を紹介しています。 SELinux/Capability/AntiVirus/SCAP/SIEM/Threat Intelligence等。
AmazonLinux2でNginx+PHP7.3をインストールする。ついでにOPcacheとAPCuもnginxAWSEC2PHP7 EC2インスタンス(AmazonLinux2)にNginx + php7.3の環境(OPcacheとAPCuも)を作成したので残しておきます。 参考になれば幸いです。 EC2環境 Amazon Linux 2 AMI (HVM) SSD Volume Type ami-0f9ae750e8274075b EC2準備 まず AmazonLinux2 のインスタンスを立ち上げる セキュリティグループの設定でssh(22),http(80)を適宜、許可する SSHログイン
再度の考察Apache+mod_phpは、単純にリクエスト数が多くなった時の性能劣化が一番早かったです。 前回の考察でも述べた通りで、Apacheの各リクエストがmod_phpを読み込んで動いているため、単純にリソースの消費が激しいです。 実際のVM内ではApacheが落ちてしまっていました。 それ以外の構成は、だいたい同じオーダーの性能でしたがNginxに静的ファイルを処理させる構成はやはり良いですね。 Availabiltyが100%なのは、Apache(mpm_event)だけですが、これは処理性能がNginxに比べて少し遅かったためファイルディスクリプタがギリギリ枯渇しなかったためです。 逆にいうと、Nginxは数を大量にさばけるので、きちんとOS側の設定もしないと勿体無いですね。
PHP7.1, TCPDF6.2で試しました。 "require": { "php": "^7.1.3", "tecnickcom/tcpdf": "^6.2" }, TCPDFにはフォント追加用のtcpdf_addfont.phpというツールが付属しています。これを利用します。 vendor配下にファイルができるため、composer install/updateの後にコマンドを実行するのがよさそうです。 コマンドの確認 php tcpdf_addfont.php --help フォントインストール php tcpdf_addfont.php -b -t CID0JP -f 32 -i ipaexm.ttf >>> Converting fonts for TCPDF: *** Output dir set to /Path/To/fonts/ +++ OK : /Path/To/ipa
PHP 8から、PHPは「PHP」と「P++」という2つの言語を提供するようになる というキャッチーな紹介をするP++: 静的型付けをめざすPHPという記事がそれなりに話題になり、このニュースは目覚しく革新的な内容で、多くのひとの目を引き付けました。 これは早まった理解であり、ほとんど誤報と言ってもいい内容でした。2019年8月15日には提案者本人も、少くとも「P++」の計画を短期的に実現するととは非現実的であり時期尚早であることを認めています。 この記事では、PHP開発の現状、なぜ野心的なP++計画が提案され、事実上撤回されたかの経緯について紹介します。 [中立性のための表示] この記事の著者@tadsanはPHPの静的解析を強く推進する立場です。 PHPゆるふわCI入門 PHP型検査・夢と理想と現実) 三行で要約 PHPはバージョンを経るごとに「歴史的経緯」による負債が削ぎ落されてきた
はじめに 皆様こんにちは。OPTiM新卒1年目エンジニアの青木です。 前回は早押しボタンなんかを作っていました。 tech-blog.optim.co.jp 今回は、PHP フレームワークの Laravel を、PostgreSQL と Vue.js と組み合わせて作成する TODO アプリを通して紹介します。 このフレームワークらはこちらの記事でも密かに利用しています。 tech-blog.optim.co.jp OPTiMではあまり利用されていませんが、一部のアプリケーションで実利用されている箇所もございます。 PHPは昔のイメージからかなり避けられていていますが...今のPHPとそのフレームワークはすごく発展していてとても使いやすいので是非使っていただきたい!という気持ちがあります。 ですが、現状はあまり利用していただけなくて個人的には悲しい気持ちでいっぱいです。 そんなPHPですが
redisをphpから使っています。 $redis = new Redis(); $redis->connect('127.0.0.1', 6379); のようにredisにセッションを行うとき、phpプログラムが読み出される度にセッションは多くなっていきます。つまりアクセスが多いサイトでこのphpプログラムを実行する形ではセッション数がシステムキャパを超える可能性があります。 Redisとphpのセッションを張ったままで、新たに来たリクエストについては前に張ったセッションで行うという対応も聞いたことがあります。 実際どのような実装になるのでしょうか?もしくは別の方法もご存知であればご教示お願いします。
Structuring the Docker setup for PHP Projects ... folder structure, Dockerfile templates and general fundamentals Posted by Pascal Landau on 2019-05-20 10:00:00 This tutorial is outdated! Some concepts are still valid, but I strongly recommend following the updated version of this article at Docker from scratch for PHP 8.1 Applications in 2022 In this part of my tutorial series on developing PHP o
GWいかがでしたでしょうか? 私はひたすらに「何もしないぞ!」を徹底した結果、漫画を読んで「色々な世界を旅して」「色々な出会いと別れを繰り返して」過ごしました。 その中でも、「子供はわかってあげない」を久しぶりに読み返し、 人は教わったことなら教えられるんだよ からの 僕は誰にも教わってないんだ。・・・だから教えるのが難しいの当たり前なんだなって思って・・・少し楽になったかな というくだりにグッと来ました。 「教えられることがある」や「教えてくれる」というのは、それだけで尊いものだな〜というリスペクトを忘れないようにしようと思うのと同時に、自分や他人の「持てるもの・持てないものを見極めて、許したり奮ったりしてけたらな」とも思いました。 なんにせよ、他人に教えられる人はすごい!🎉 子供はわかってあげない(上) (モーニング KC) さて、こんにちは、サーバーサイドやっております 金城 (@
@tomzoh さん、 @cakephper さんと 独立したコアレイヤパターン、PHPerKaigi 2019、PHPカンファレンス福岡 2019 などについて話しました。 公開収録 PHP カンファレンス福岡 2019 独立したコアレイヤパターン 長谷川さんが見た独立したコアレイヤパターン レイヤ間のコード比率 自分たちのコードに適用してみる トランザクションの実装 リファクタリングのデモ 天然ものと養殖もの 市川さんが見た独立したコアレイヤパターン インターフェイスが特別なものか 生存者バイアス 誰もが適用できるか CandyCane Laravel JP Conference に参加して Laravel コミュニティ フレームワークのイベント スタンプラリー PhperKaigi 2019 種を拾いに行く エースコンバット 7 がすごい Show notes PHPerKaigi
このたび生まれて初めて本を出版することになりました! 『TECHNICAL MASTER はじめてのPHPプロフェッショナル開発 PHP7対応』というタイトル(以下、プロフェッショナル本)で2019年2月26日(火)に秀和システムさんから発売されます。 会社の同僚と書いたので、是非買ってください!(石直球) しかし「せっかく買ったのに思ってたんと全然違うやんけ!」となるのも申し訳ないので、プロフェッショナル本がどういう本なのか簡単に紹介したいと思います。 プロフェッショナル本の概要 一言で言うと プログラミングの入門書を読み終えた人が、実際の開発現場で活躍するために必要なアレコレをPHPを題材に解説している本 です。ボリュームは実質390ページほどになります。中身は導入編、入門編、実践編、発展編の4つのパートで構成されています。 最初の導入編では昨今のPHPとそれを取り巻くエコシステムを紹
たぶん月刊PHPニュース 2019年2月1日号 インフィニットループ仙台支社のプログラマー、いがらしです。 PHP 界隈の気になったことをまとめ、月一くらいで宮城県仙台市からお送りします。 前回に引き続き、主に最近 GitHub で見かけて気になった PHP プロジェクトや、PHP の言語開発者メーリングリストである internals の議論などをつまみ食いして紹介します。 ※ なお、画像のPHP ロゴは作者の Colin Viebrock さんによってリリースされ、CC BY-SA 4.0 でライセンスされているものです。 GitHub で見かけたプロジェクト https://github.com/bmitch/churn-php PHPファイルをコミット数と循環的複雑度を元にスコア付けし、リファクタリングの対象を提案してくれる静的解析ツール https://github.com/ph
以前のエントリで調査したcurlのバージョンの違いについてその後色々調べたので結果をまとめてみる。 おさらい CentOS4系 curl 7.12 CentOS5系 curl 7.15 サーバの移行を行ったところ、curlの通信に著しい遅延が発生した。具体的に言うと1回の通信で2秒かかる。 前回の対策としてはとりあえずCentOS4系のSRPMを持ってきてビルドし、バージョンをダウングレードして対応した。 調査 実は前回のエントリでは環境を正確に書ききっていなかったorz。 今回調査を続けた結果以下の環境でのみこの2秒遅延が起こることが判明した。 環境 curl 7.13以降 POSTデータが1024バイト以上 Poundサーバ経由したときのみ 前回は単純にcurlのバージョンのみが問題だと思って色々調べたんだけど、他のサーバのログや環境を比較しているうちに上記の条件が確認できた。 確認し
✨がついているものは明示的に 6.x 対応確認済み 何もついていないものは,ほぼそのまま読めるはず 🔥がついているものはおそらく 8.x 対応必須 👀は再チェック(2021 作業用) ソースコードリーディング 【Laravel】サービスコンテナ・サービスプロバイダ・ファサード・契約に関する補足資料 ✨ 【Laravel】 Eloquent ソースコードリーディング 第1回 - モデルの取得 👀 第2回 - リレーションの取得 👀 【Laravel】 キュー・イベント・ブロードキャストに関する補足とフロントエンドへの導入 👀 【Laravel】 Redis Queue Worker のソースコードリーディング 👀 【Laravel】 認証や認可に関する補足資料 🔥 👀 【Laravel】 通知に関する補足と拡張の手引き 👀 レシピ・ノウハウなど データベース全般 【Lara
アップデート :この記事の第一稿を投稿してから数時間後、PHPのベンチマークが機能していないことに気付きました。ですから万全を期すため、PHPとRustの双方のバージョンを更新しました。変更箇所は、GitHub(最後にリンクあり)にまとめて載せてあります。 昨年10月、私は Etsy の とある同僚 と、どうやったらPHPやRuby、Pythonといったインタプリタ型言語で今よりずっと簡単にエクステンションが書けるかについて議論しました。うまく書けない原因の1つとして、エクステンションは概してCで書かれますが、Cに長けているのでなければ自信を持ってコードを書くのは難しい、といったことなどを話しました。 あれ以来、私はずっとRustでエクステンションを書く方法を模索し、ここ数日は実際にあれこれ試してみました。そして今朝、ついにうまくいったのです。 Cに埋め込んだRustをPHPで実行 私の基
PHP Benchmarks: Real-World Speed Tests for Versions 8.1, 8.2, and 8.3 PHP is one of the most-used server-side programming languages, powering about 76% of active websites. Every year, we release our in-depth performance benchmarks for various PHP frameworks to see how different PHP versions stack up against each other. In December 2023, we benchmarked PHP 8.1, 8.2, and 8.3 across 11 content manage
はじめに この記事は CodeIgniter Advent Calendar 2017 5日目です。 4日目の記事は自分が投稿した『プロファイラを外部ファイル出力できるようにする』でした。 ■ load->view でビューファイルからビューを呼び出す ビュー — CodeIgniter 3.2.0-dev ドキュメント <pre> _________ .___ .___ .__ __ \_ ___ \ ____ __| _/ ____ | | ____ ____ |__|_/ |_ ____ _______ / \ \/ / _ \ / __ | _/ __ \ | | / ___\ / \ | |\ __\_/ __ \ \_ __ \ \ \____( <_> )/ /_/ | \ ___/ | | / /_/ >| | \| | | | \ ___/ | | \/ \______
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く