[Gentoo] Apache 2.2 升級到 Apache 2.4 的問題.

除了要在 “/etc/portage/package.unmask” 加上
[TEXT]
www-servers/apache
app-admin/apache-tools
[/TEXT]

以便升級以外..

另外, 在 /etc/apache2/httpd.conf
加上
[TEXT]
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule unixd_module modules/mod_unixd.so
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
[/TEXT]

從檔案 /etc/apache2/vhosts.d/00_default_vhost.conf 內移除
[TEXT]
# Use name-based virtual hosting.
NameVirtualHost *:80
[/TEXT]

從檔案 /etc/apache2/modules.d/00_mod_mime.conf 內移除
[TEXT]
# DefaultType: the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, “text/plain” is
# a good value. If most of your content is binary, such as applications
# or images, you may want to use “application/octet-stream” instead to
# keep browsers from trying to display binary files as though they are
# text.
DefaultType text/plain
[/TEXT]

修改檔案, /etc/apache2/modules.d/40_mod_ssl.conf
[TEXT]
#SSLMutex file:/var/run/ssl_mutex
Mutex sysvsem default
[/TEXT]

Ref Bug 410607

On this day..

Comments

comments

Related Posts

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>