CONTENTS


Lastmodified 2022-06-28 (火) 17:11:07


mod_ssl.so 腐る その後

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235173 を参考にして、

portupgrade -rf apr-1.7.0.1.6.1_2

してから、

portupgrade -rf apache24-2.4.54

してみたら、232KBのmod_ssl.so が再生成され、apache が正常起動した。

 mod_ssl.so 腐る

2022/05/30 Apache24をportupgrade したところ、

httpd: Syntax error on line 148 of /usr/local/etc/apache24/httpd.conf: Can't locate API module structure `ssl_module' in file /usr/local/libexec/apache24/mod_ssl.so: Undefined symbol "ssl_module"

というエラーで、起動しなくなった。

正確には、HTTPSでは起動できなくなっていたと言うべきか?

ともかく、このエラーは他の所でも起こっているようで、未解決の /usr/local/libexec/apache24/mod_ssl.soのコンパイルエラーというコトのようだ。

 SOLVED

取り敢えず、別のサーバで正常動作している mod_ssl と入れ換えると、正常起動する

# apachectl restart
Performing sanity check on apache24 configuration:
Syntax OK
Stopping apache24.
Waiting for PIDS: 26394.
Performing sanity check on apache24 configuration:
Syntax OK
Starting apache24.

[1/1] Deinstalling apache24-2.4.53_2...
[1/1] Deleting files for apache24-2.4.53_2: 100%
You may need to manually remove /usr/local/etc/apache24/extra/httpd-default.conf if it is no longer needed.
You may need to manually remove /usr/local/etc/apache24/extra/httpd-info.conf if it is no longer needed.
You may need to manually remove /usr/local/etc/apache24/extra/httpd-mpm.conf if it is no longer needed.
You may need to manually remove /usr/local/etc/apache24/extra/httpd-ssl.conf if it is no longer needed.
You may need to manually remove /usr/local/etc/apache24/httpd.conf if it is no longer needed.
===>  License APACHE20 accepted by the user
===>   apache24-2.4.53_2 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by apache24-2.4.53_2 for building

portupgrade -r --batch apache24-2.4.39_1

すると、

eval: /usr/local/bin/nm: not found

というエラーでストップする。

原因は、/usr/local/bin/nm の実体が無いため。

/usr/bin/nm は存在するため、

# cp /usr/bin/nm /usr/local/bin/ 

として、upgrade

Apache24

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                      H E A D S - U P
2014-07-13:
  The default version was changed from www/apache22 to www/apache24,
  pre-build apache modules will also reflect this!

  In case ports are build by yourself and apache22 is required
  use the following command to keep apache22 as default

  echo "DEFAULT_VERSIONS+=apache=2.2" >> /etc/make.conf

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

埋め込み cgiが動作しない

/usr/local/etc/apache24 コメントを外すヨロシ

<IfModule !mpm_prefork_module>
	LoadModule cgid_module libexec/apache24/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
	LoadModule cgi_module libexec/apache24/mod_cgi.so
</IfModule>

joomla3

/usr/local/etc/apache24/Includes/Joomla3.conf

こちらだとOK

### Add the AcceptPathInfo directive only for Apache 2.0.30 or later.
 Alias /joomla /usr/local/www/joomla3/
 AcceptPathInfo On
 <Directory "/usr/local/www/joomla3/">
     AllowOverride None
     Order Allow,Deny
     Allow from all
     Require all granted
     #Order Allow,Deny
     #Allow from all
 </Directory>

こちらは、NG。インストール中にMySQLと接続できない風味。

### Add the AcceptPathInfo directive only for Apache 2.0.30 or later.
 Alias /joomla /usr/local/www/joomla3/
 AcceptPathInfo On
 <Directory /usr/local/www/joomla3>
     AllowOverride None
     Require all granted
     #Order Allow,Deny
     #Allow from all
 </Directory>

root@g7:/usr/ports/www/mod_python3 # make install
===>  ap24-mod_python-3.3.1_3 is marked as broken: : Error from bsd.apache.mk. apache24 is installed
(or APACHE_PORT is defined) and port requires apache22 at most.
*** [install] Error code 1

Stop in /usr/ports/www/mod_python3.

Total access 3066:本日 2:昨日 1

Counter: 3066, today: 2, yesterday: 1

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-06-28 (火) 17:11:07