小编Chr*_*ian的帖子

apache2 无效命令“SSLEngine”

当我重新启动 httpd 时,出现以下错误。我错过了什么?

[root@localhost ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: Syntax error on line 22 of /etc/httpd/conf.d/sites.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
Run Code Online (Sandbox Code Playgroud)

我已经使用安装了 mod_ssl yum install mod_ssl openssh

Package 1:mod_ssl-2.2.15-15.el6.centos.x86_64 already installed and latest version
Package openssh-5.3p1-70.el6_2.2.x86_64 already installed and latest version
Run Code Online (Sandbox Code Playgroud)

我的sites.conf 看起来像这样

<VirtualHost *:80>
#    ServerName shop.itmanx.com
    ServerAdmin webmaster@itmanx.com

    DocumentRoot /var/www/html/magento
    <Directory /var/www/html>
        Options -Indexes
        AllowOverride All
    </Directory>

    ErrorLog logs/shop-error.log
    CustomLog logs/shop-access.log …
Run Code Online (Sandbox Code Playgroud)

ssl apache-httpd

133
推荐指数
4
解决办法
33万
查看次数

由于 SELinux,httpd 无法写入文件夹/文件

有谁知道哪个 sebool 允许 httpd 对 /home/user/html 进行写访问?当我禁用SELinux时echo 0 > /selinux/enforce我可以写,所以我的问题肯定与SELinux有关。我只是不知道哪个是正确的而不打开一个大洞,而谷歌也没有太大帮助。

#[/home]ls -Z
drwxr-x---. user       apache     unconfined_u:object_r:user_home_dir_t:s0 user

#sestatus -b
Policy booleans:
abrt_anon_write                             off
abrt_handle_event                           off
allow_console_login                         on
allow_cvs_read_shadow                       off
allow_daemons_dump_core                     on
allow_daemons_use_tcp_wrapper               off
allow_daemons_use_tty                       on
allow_domain_fd_use                         on
allow_execheap                              off
allow_execmem                               on
allow_execmod                               on
allow_execstack                             on
allow_ftpd_anon_write                       off
allow_ftpd_full_access                      off
allow_ftpd_use_cifs                         off
allow_ftpd_use_nfs                          off
allow_gssd_read_tmp                         on
allow_guest_exec_content                    off
allow_httpd_anon_write                      off
allow_httpd_mod_auth_ntlm_winbind           off
allow_httpd_mod_auth_pam                    off
allow_httpd_sys_script_anon_write           off
allow_java_execstack                        off
allow_kerberos                              on
allow_mount_anyfile                         on
allow_mplayer_execstack                     off
allow_nsplugin_execmem                      on
allow_polyinstantiation                     off
allow_postfix_local_write_mail_spool …
Run Code Online (Sandbox Code Playgroud)

selinux apache-httpd

39
推荐指数
2
解决办法
12万
查看次数

要求:perl(Compress::Raw::Zlib) = 2.052

我试图运行yum update但被依赖项阻止。我已经安装了其他软件包所需的 rpmforge el6。

Error: Package: perl-IO-Compress-2.052-1.el6.rfx.noarch (rpmforge-extras)
           Requires: perl(Compress::Raw::Zlib) = 2.052
           Installed: 1:perl-Compress-Raw-Zlib-2.020-127.el6.i686 (@base)
               perl(Compress::Raw::Zlib) = 2.020
           Available: perl-Compress-Raw-Zlib-2.030-1.el6.rfx.i686 (rpmforge-extras)
               perl(Compress::Raw::Zlib) = 2.030
           Available: perl-Compress-Raw-Zlib-2.033-1.el6.rfx.i686 (rpmforge-extras)
               perl(Compress::Raw::Zlib) = 2.033
           Available: perl-Compress-Raw-Zlib-2.034-1.el6.rfx.i686 (rpmforge-extras)
               perl(Compress::Raw::Zlib) = 2.034
           Available: perl-Compress-Raw-Zlib-2.035-1.el6.rfx.i686 (rpmforge-extras)
               perl(Compress::Raw::Zlib) = 2.035
           Available: perl-Compress-Raw-Zlib-2.037-1.el6.rfx.i686 (rpmforge-extras)
               perl(Compress::Raw::Zlib) = 2.037
           Available: perl-Compress-Raw-Zlib-2.051-1.el6.rfx.i686 (rpmforge-extras)
               perl(Compress::Raw::Zlib) = 2.051
           Available: perl-Compress-Raw-Zlib-2.052-1.el6.rfx.i686 (rpmforge-extras)
               perl(Compress::Raw::Zlib) = 2.052
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest …
Run Code Online (Sandbox Code Playgroud)

yum rpm version centos

5
推荐指数
1
解决办法
4147
查看次数

selinux、dovecot 和筛子

我刚刚开始学习配置 SELINUX,今天早上在我的 CentOS 6.4 x64 系统上,安装了 postfix/dovecot/mysql,我醒来发现以下 selinux 问题

found 1 alerts in /var/log/audit/audit.log
----------------------------------------------------------------------------

SELinux is preventing /usr/libexec/dovecot/lmtp from write access on the directory sieve.

*****  Plugin catchall (100. confidence) suggests    ***************************

If you believe that lmtp should be allowed write access on the sieve directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep lmtp /var/log/audit/audit.log …
Run Code Online (Sandbox Code Playgroud)

selinux centos dovecot

5
推荐指数
1
解决办法
1111
查看次数

标签 统计

apache-httpd ×2

centos ×2

selinux ×2

dovecot ×1

rpm ×1

ssl ×1

version ×1

yum ×1