- 追加された行はこの色です。
- 削除された行はこの色です。
[[FrontPage]]
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*Apache22 が自動起動しなくなった [#pe9fccc1]
手動起動(apachectl start)は出来る。がいわゆるrebootで起動に失敗する・・・ことがある。
上手く起動出来ることもあって、以下はそのときのエラーログ。
[Mon Oct 07 06:54:12 2013] [notice] caught SIGTERM, shutting down
[Mon Oct 07 06:55:08 2013] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Oct 07 06:55:08 2013] [notice] mod_python: Creating 8 session mutexes based on 256 max processes and 0 max threads.
[Mon Oct 07 06:55:08 2013] [notice] mod_python: using mutex_directory /tmp
[Mon Oct 07 06:55:08 2013] [error] (17)File exists: mod_python: Failed to create global mutex 2 of 8 (/tmp/mpmtx9482).
[Mon Oct 07 06:55:08 2013] [error] mod_python: We can probably continue, but with diminished ability to process session locks.
[Mon Oct 07 06:55:08 2013] [error] mod_python: Hint: On Linux, the problem may be the number of available semaphores, check 'sysctl kernel.sem'
PHP Deprecated: Comments starting with '#' are deprecated in /usr/local/etc/php/extensions.ini on line 44 in Unknown on line 0
[Mon Oct 07 06:55:11 2013] [notice] Digest: generating secret for digest authentication ...
[Mon Oct 07 06:55:11 2013] [notice] Digest: done
[Mon Oct 07 06:55:12 2013] [notice] Apache/2.2.25 (FreeBSD) mod_python/3.3.1 Python/2.7.5 SVN/1.8.3 PHP/5.4.20 mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 configured -- resuming normal operations
http://jfut.integ.jp/2007/06/10/mod_python-failed-to-create-global-mutex%E3%81%B8%E3%81%AE%E5%AF%BE%E5%BF%9C/
* portupgrade -r php5-5.4.19 2013/10/07 [#ofd65f3a]
FreeBSD blackcube2 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #0: Mon Sep 9 21:34:37 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
なマシンで、
portupgrade -r php5-5.4.19
したら、Apache22 が起動しなくなった。
といういつものアレ。w
原因は、いつものアレ。なので、対処法は、
/usr/local/etc/php/extensions.ini
#extension=recode.so
いつもの、こいつをコメントアウトでOK
でもなんで?
*portupgrade php5-5.2.9 [#me8bb75f]
Affected package: php5-5.2.10
Type of problem: php5 -- Multiple security issues.
Reference: <http://portaudit.FreeBSD.org/437a68cf-b752-11de-b6eb-00e0815b8da8.html>
1 problem(s) in your installed packages found.
You are advised to update or deinstall the affected package(s) immediately.
k222# portupgrade php5-5.2.9
k222# apachectl restat
[Tue Oct 13 05:39:48 2009] [notice] SIGHUP received. Attempting to restart
[Tue Oct 13 05:39:49 2009] [error] python_init: Python version mismatch, expected '2.5.2', found '2.5.4'.
[Tue Oct 13 05:39:49 2009] [error] python_init: Python executable found '/'.
[Tue Oct 13 05:39:49 2009] [error] python_init: Python path being used '/usr/local/lib/python25.zip:/usr/local/lib/python2.5/:/usr/local/lib/python2.5/plat-freebsd7:/usr/local/lib/python2.5/lib-tk:/usr/local/lib/python2.5/lib-dynload'.
[Tue Oct 13 05:39:49 2009] [notice] mod_python: Creating 8 session mutexes based on 256 max processes and 0 max threads.
[Tue Oct 13 05:39:49 2009] [notice] mod_python: using mutex_directory /tmp
[Tue Oct 13 05:39:49 2009] [notice] Digest: generating secret for digest authentication ...
[Tue Oct 13 05:39:49 2009] [notice] Digest: done
[Tue Oct 13 05:39:50 2009] [notice] Apache/2.2.13 (FreeBSD) mod_ssl/2.2.13 OpenSSL/0.9.8e DAV/2 PHP/5.2.11 with Suhosin-Patch mod_python/3.3.1 Python/2.5.4 SVN/1.6.4 configured -- resuming normal operations
k222# portupgrade subversion-1.6.4
k222# apachectl restart
[Wed Oct 14 04:15:08 2009] [warn] module dav_module is already loaded, skipping
で、エラーの内容は変わらない
k222# portupgrade ja-trac-0.11.3
*www.smb.net [#z98c7ee3]
Downloading fresh database.
auditfile.tbz 57 kB 82 kBps
New database installed.
Database created: Thu Oct 15 03:10:01 JST 2009
Checking for packages with security vulnerabilities:
Affected package: phpMyAdmin-3.2.0.1
Type of problem: phpmyadmin -- XSS and SQL injection vulnerabilities.
Reference: <http://www.FreeBSD.org/ports/portaudit/4769914e-b844-11de-b159-0030843d3802.html>
Affected package: php5-5.2.9
Type of problem: php5 -- Multiple security issues.
Reference: <http://www.FreeBSD.org/ports/portaudit/437a68cf-b752-11de-b6eb-00e0815b8da8.html>
2 problem(s) in your installed packages found.
You are advised to update or deinstall the affected package(s) immediately.
-- End of security output --
ということで、
portupgrade php5-5.2.9
したら、PHPが、こけました。
94 14:33 reboot
95 14:35 screen
96 5:17 apachectl restart
97 5:19 apachectl restart
98 5:26 apachectl restart
99 14:37 screen -r
100 11:09 screen
101 11:53 top
102 11:54 cat /var/log/all.log
103 5:06 portaudit -Fda
104 5:06 portupgrade php5-5.2.9
105 5:13 portaudit -Fda
106 5:13 apachectl restart
107 5:13 cat /var/log/httpd-error.log
108 5:14 portaudit -Fda
109 5:14 portupgrade phpMyAdmin-3.2.0.1
110 5:19 locate jpeg
111 5:20 portupgrade jpeg-6b_7
112 5:21 apachectl restart
113 5:21 cat /var/log/httpd-error.log
114 5:25 locate php
115 8:10 cat /var/log/httpd-error.log
116 8:10 pwd
117 8:11 php -v
118 8:11 locate phpMyAdmin
119 8:12 locate phpmyadmin
120 8:12 cd /usr/ports/databases/phpmyadmin
121 8:12 make install
122 8:32 cd /usr/local/etc/php
123 8:32 ll
124 8:32 cp extensions.ini extensions.ini-double
125 10:16 history
----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);
blackcube# history
111 5:44 cp *.* ../20060613
112 5:44 ll
113 5:44 apachectl restart
114 5:45 cat /var/log/httpd-error
115 5:45 cat /var/log/httpd-error.log
116 5:45 apachectl restart
117 5:45 cat /var/log/httpd-error.log
118 5:47 ll
119 5:47 cd ../
120 5:47 ll
121 5:47 mv 20060613 20060613-NG
122 5:47 apachectl restart
123 5:47 cat /var/log/httpd-error.log
124 5:49 apachectl restart
125 5:49 cat /var/log/httpd-error.log
126 5:57 apachectl restart
127 5:57 cat /var/log/httpd-error.log
128 5:59 pnp -v
129 5:59 php -v
130 5:59 php -v
131 6:01 php -v
132 6:01 php -v
133 6:01 apachectl restart
134 6:01 apachectl restart
135 6:01 php -v
136 6:13 pwd
137 6:13 ll
138 6:14 mv 20060613 20060613_dist
139 6:14 mv 20060613-NG 20060613
140 6:14 php -v
141 6:15 locate php5
142 6:16 cd /usr/ports/lang/php5
143 6:16 ll
144 6:16 make install
145 6:19 make deinstall
146 6:19 make reinstall
147 6:19 php -v
148 6:20 apachectl restart
149 6:20 locate php5-extensions
150 6:21 portinstall lang/php5-extensions
151 6:21 portinstall lang/php5-extensions
152 6:21 portupgrade php5-extensions-1.3
153 6:21 pwd
154 6:22 ../php5-extensions
155 6:22 ll
156 6:22 make install
157 6:22 make reinstall
158 6:22 make deisntall
159 6:22 make deinstall
160 6:22 make reinstall
161 6:22 php -v
162 6:22 apa
163 6:23 apachectl restart
164 6:25 php -v
165 6:25 pwd
166 6:26 make showconfig
167 6:26 cd ../php-extensios
168 6:26 cd ../
169 6:26 ll
170 6:26 cd php5-extensions
171 6:26 ll
172 6:26 make showconfig
173 6:27 make reinstall
174 6:28 make deinstall
175 6:28 makereinstall
176 6:28 maek reinstall
177 6:28 make reinstall
178 6:29 make reinstall
179 6:30 make reinstall
180 6:31 make reinstall
181 6:32 make reinstall
182 6:33 make reinstall
183 6:33 make reinstall
184 6:34 make reinstall
185 6:38 make reinstall
186 6:40 php -v
187 6:40 apachectl restart
188 6:43 portinstall converters/php5-mbstring
189 6:44 c
100 11:53 screen
101 5:50 cd /usr/ports/lang/php5
102 5:50 ll
103 5:51 show config
104 5:51 make showconfig
105 5:52 pwd
106 5:55 locate pdre
107 5:55 locate pcre
108 5:56 portupgrade php5-pcre-5.2.9
109 6:00 cd /usr/ports/devel/php5-pcre
110 6:00 ll
111 6:00 make deinstall
112 6:00 make reinstall
113 6:06 cd /usr/local/etc/php
114 6:06 ll
115 6:06 cp extensions.ini extensions.ini-dist
116 6:24 pwd
117 6:24 ll
118 6:24 cd /usr/local/lib/php/20060613
119 6:24 ll
120 6:24 cd .,.
121 6:24 cd ../
122 6:24 ll
123 6:25 mv 20060613 20060613_NP
124 6:29 cd /usr/ports/archivers/php5-bz2
125 6:29 make deinstall
126 6:29 cd /usr/ports/textproc/php5-ctype
127 6:30 make deinstall
128 6:31 cd /usr/ports/devel/php5-pcre
129 6:31 make deinstall
130 6:32 cd /usr/ports/textproc/php5-simplexml
131 6:32 make deinstall
132 6:32 cd /usr/ports/devel/php5-spl
133 6:33 make deinstall
134 6:33 cd /usr/ports/sysutils/pecl-fileinfo
135 6:33 make deinstall
136 6:34 cd /usr/ports/security/php5-filter
137 6:34 make deinstall
138 6:37 cd /usr/ports/www/php5-session
139 6:38 make deinstall
140 6:43 cd /usr/ports/converters/php5-mbstring
141 6:43 make reinstall
142 6:45 locate mcrypt
143 6:46 portinstall security/mcrypt
144 6:46 portinstall security/php5-mcrypt
145 6:47 cd /usr/ports/security/php5-mcrypt
146 6:47 make deinstall
147 6:47 make reinstall
148 6:48 make reinstall
149 6:48 locate
150 6:49 locate mysql
151 6:50 cd /usr/ports/databases/php5-mysqli
152 6:50 make install
153 6:51 locate pdf
154 6:52 locate mcrypt
155 6:52 cd /usr/ports/security/php5-mcrypt
156 6:52 make insta
157 6:53 make install
158 6:53 pwd
159 6:53 make install
160 6:53 make reinstall
161 6:53 make deinstall
162 6:53 make reinstall
163 6:53 locate openssl
164 6:54 locate php5-openssl
165 6:54 cd /usr/ports/security/php5-openssl
166 6:54 make install
167 6:54 php -v
168 6:55 locate php-5 mysqli
169 6:55 cd /usr/ports/databases/php5-mysqli
170 6:55 make install
171 6:55 make deinstall
172 6:55 make reinstall
173 6:55 php -v
174 6:56 locate php5-sqlite
175 6:56 cd /usr/ports/databases/php5-sqlite
176 6:56 make deinstall
177 6:56 make reinstall
178 6:57 locate php5-mysql
179 6:57 cd /usr/ports/databases/php5-mysql
180 6:57 make deinstall
181 6:57 make reinstall
182 6:58 php -v
183 6:58 locate php5-pdf
184 6:59 php -v
185 7:00 locate pdf.so
186 7:02 cd /usr/ports/databases/
187 7:02 ll
188 7:03 locate php5-
189 10:29 history