全文検索:
- CentOS5.2でApache2.2インストール
- tar.gz # cd httpd-2.2.9 # ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite=shared... ode> ===== 起動スクリプト用意 ===== <code console> # cp /usr/local/src/httpd-2.2.14/build/rpm/httpd.init /etc/... sole> # vi /etc/init.d/httpd 54 #apachectl=/usr/sbin/apachectl 55 apachectl=/usr/local/apache2/bin/apachectl 56 #httpd=${HTTPD-/usr/sbin/htt
- 31 CentOS5 でTLS1.2
- 26 Feb 2019 </code> === Pathを通す === <code> # mv /usr/bin/openssl /usr/bin/openssl.bak # ln -s /opt/openssl-1.0.2r/bin/openssl /usr/bin/openssl # echo '/opt/openssl-1.0.2r/lib' > /e... /libz.so.1 (0x0000003d00400000) libidn.so.11 => /usr/lib64/libidn.so.11 (0x00000036ef000000) librt.so
- 15 CentOS6 suPHP7.2
- oreconf --force --install ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --with-apr=/usr/bin/apr-1-config \ --with-apxs=/usr/sbin/apxs \ --with-apache-user=apache \ --with-setid-mode=owner \ ... false ;PATH environment variable env_path="/bin:/usr/bin" ;Umask to set, specify in octal notation um
- 32 CentOS5でTLS1.2 Apache PHP
- /apr_xml.lo] Error 1 make[1]: Leaving directory `/usr/local/src/apr-util-1.6.1' make: *** [all-recursiv... init.d/httpd-2.2.24 60,62c60,62 < httpd=${HTTPD-/usr/sbin/httpd} < pidfile=${PIDFILE-/var/log/httpd/${... 9.2 \ --prefix=/opt/php-5.6.13 \ --with-zlib-dir=/usr \ --with-mysql=/usr \ --with-libdir=lib64 \ --enable-mbstring \ --with-openssl \ --with-openssl-dir=/
- 82 CentOS 5.8 + Apache 2.2 + PHP 5.3 + suPHP 0.7.1
- tar.gz # cd suphp-0.7.1 # ./configure --with-apr=/usr/bin/apr-1-config # make # make install </code> === /usr/local/etc/suphp.conf === <code> [global] logfile... fo webserver_user=apache docroot=/ env_path=/bin:/usr/bin umask=0022 min_uid=500 min_gid=100 ; Securit... dlers] ;Handler for php-scripts ;x-httpd-php=php:/usr/bin/php x-httpd-php="php:/usr/bin/php-cgi" ;Hand
- 14 Let's Encrypt無料のSSL証明書
- <code> # curl https://dl.eff.org/certbot-auto -o /usr/bin/certbot-auto # chmod 700 /usr/bin/certbot-auto </code> ===== 証明書作成 ===== <code> # certbot-auto ce... or> <code> 0 0 * * * scl enable python27 'bash /usr/bin/certbot-auto renew --post-hook "/sbin/service... 「python-virtualenv」「python-pip」が無いためのエラー === /usr/bin/certbot-auto: line 583: virtualenv: command n
- mod_suphp
- たファイルなど、600→644へ umask=0022 ;x-httpd-php=php:/usr/bin/php ↓ x-httpd-php="php:/usr/bin/php-cgi" # vi /etc/httpd/conf.d/suphp.conf suPHP_Engin... 。 <code> # vi /etc/suphp.conf ;x-httpd-php=php:/usr/bin/php-cgi ↓ x-httpd-php="php:/usr/bin/php-cgi" </code> ===== セッション関係のエラー ===== suphpによって書き
- 21 グラフ描写(gnuplot)
- tar.gz # cd gnuplot-5.0.6 # ./configure --prefix=/usr/local --with-gd=/usr/lib64/libgd.so # make && make install </code> ==== 使い方 ==== これで、image.pngというファ... 下記を環境変数を設定してあげるとフォントが綺麗になる。 export GDFONTPATH=/usr/share/fonts/vlgothic/ export GNUPLOT_DEFAULT_GD
- 83 PHP複数バージョンを共存
- dlers] ;Handler for php-scripts x-httpd-php="php:/usr/bin/php-cgi" x-httpd-php56="php:/usr/bin/php56-cgi" x-httpd-php71="php:/usr/bin/php71-cgi" </code> ===== 4.Apache側のsuphp.conf ===== AddH
- mod_geoip 接続元国でWebアクセスを制限
- /GeoIP.sh #! /bin/sh TMPDIR=/tmp GEODIR=/usr/local/share/GeoIP DAT=GeoIP.dat cd $TMPDIR #/usr/bin/wget http://www.maxmind.com/download/geoip/database/$DAT.gz /usr/bin/wget http://geolite.maxmind.com/download/geoi