Apache2.4系 Directoryのアクセス設定に変更があり注意が必要!
アクセス許可の設定の書き方が違うので注意
修正前(2.2など)
<Directory "/home/www">
Order allow,deny
Allow from all
</Directory>
修正後
<Directory "/home/www">
Require all granted
</Directory>
これでOK!
アクセス許可の設定の書き方が違うので注意
修正前(2.2など)
<Directory "/home/www">
Order allow,deny
Allow from all
</Directory>
修正後
<Directory "/home/www">
Require all granted
</Directory>
これでOK!
気づいたら、1年ぶりの更新だった(汗)
さてさて、開発環境のLAMPを最新版にバージョンアップしてみたら、
PDO経由でのMySQLへのアクセスが遅い遅い、従来の10倍ぐらい時間がかかっている!!!
調べてみたら、PDOのConnectionで遅い。。。。はて?
環境は以下
旧:Apache2.2,MySQL5.1,PHP5.2
新:Apache2.4,MySQL5.5,PHP5.4
どうやら、接続時の文字列を「localhost」にしていたのだが、DNSの名前解決で遅延しているらしい、これを「127.0.0.1」とIP指定してあげたらもとの速度に戻った。
ググるとVista,Win7,Win8で起きるらしい
なんでだ。。。hostにも「localhost 127.0.0.1」と設定したのにダメ
ネットワークのIP6も使用禁止にしたのに
本当の解決方法を知りたい。
Aipoさんを使用させてもらっています。ありがとうございます。
Aipo 5.0系から6.1へバージョンアップでうまくいかなかったので覚書
うちの環境はApache別サーバー&SSL必須にしているため
httpd.conf内が以下のようになっています。
(VHOSTの443内に記述)
<Location "/aipo"/>
ProxyPass "ajp://localhost:8009/aipo"
</Location/>
インストール直後にどうやら以下のファイル
vi /usr/local/aipo/tomcat/conf/server.xml
↓ここがコメント化されているので
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
↓コメントカットし、変更してあげる
<Connector port="8009" protocol="AJP/1.3" redirectPort="443" />
これでOK!
久しぶりにAccess触ったら嵌ったので・・・・
なんだこのVBA関数は・・・まともに動かん
'*******************************************************************************************
'注意!!!!!!!!!
'AccessのRound,Int,FIx関数はバグっているので、自ら作成する!
'*******************************************************************************************
'切り上げ
Public Function com_RoundUp(X As Currency, S As Integer) As Currency
Dim W As Currency
W = 10 ^ Abs(S)
If S > 0 Then
com_RoundUp = Int(X * W + 0.999) / W
Else
com_RoundUp = Int(X / W + 0.999) * W
End If
End Function
'切り捨て
Public Function com_RoundDown(X As Currency, S As Integer) As Currency
Dim W As Currency
W = 10 ^ Abs(S)
If S > 0 Then
com_RoundDown = Int(X * W) / W
Else
com_RoundDown = Int(X / W) * W
End If
End Function
'四捨五入
Public Function com_Round(X As Currency, S As Integer) As Currency
Dim t As Integer
t = 10 ^ Abs(S)
If S > 0 Then
com_Round = Int(X * t + 0.5) / t
Else
com_Round = Int(X / t + 0.5) * t
End If
End Function
MSからGetだけ。。。ど(^^;)