【发布时间】:2021-05-28 04:08:39
【问题描述】:
Apache httpd 在root 用户下运行良好。当我使用oracle 用户运行 apache 时,它无法运行并出现以下错误:
$ id
uid=600000014(oracle) gid=63855(oinstall)
oracle@myhost:...ache/2.4.43/https-api11/bin$ ls -ltr apachectl
-rwxr-xr-x 1 oracle oinstall 3509 Nov 10 05:09 apachectl
./apachectl -k start
(13)Permission denied: AH00072: make_sock: could not bind to address 10.23.52.219:443
no listening sockets available, shutting down
AH00015: Unable to open logs
$ telnet 10.23.52.219 443
Trying 10.23.52.219...
telnet: Unable to connect to remote host: Connection refused
oracle@myhost:...ache/2.4.43/https-vwsapi11/bin$ nslookup 10.23.52.219
216.51.23.10.in-addr.arpa name = myhost.myshop.com.
oracle@myhost:...ache/2.4.43/https-api11/bin$ telnet myhost.myshop.com 443
Trying 10.23.52.219...
telnet: Unable to connect to remote host: Connection refused
以下是 httpd.conf 中的一些条目
Listen 8080
User oracle
Group oinstall
ServerAdmin weblogic@myshop.com
ServerName myhost.myshop.com
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf
# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf
最后在extra/httpd-ssl.com
SSLSessionCache "shmcb:/u/home/apache/2.4.43/https-api11/logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300
<VirtualHost myhost.myshop.com:443>
DocumentRoot "/u/home/apache/2.4.43/https-api11/htdocs"
ServerName myhost.myshop.com
SSLEngine on
<Directory "/u/home/apache/2.4.43/https-api11/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
CustomLog "/u/home/apache/2.4.43/https-api11/logs/ssl_request_log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
ProxyPass /manager/ http://myhost.myshop.com:8443/manager/
ProxyPassReverse /manager/ http://myhost.myshop.com:8443/manager/
ProxyPass /api/ http://myhost.myshop.com:8443/api/ timeout=600
ProxyPassReverse /api/ http://myhost.myshop.com:8443/api/ timeout=600
SetEnv nokeepalive ssl-unclean-shutdown
</VirtualHost>
如果以上信息不够,我会分享整个配置。
请建议我如何让 apache httpd 与用于复制(安装)它的用户 oracle 用户一起运行。
【问题讨论】:
标签: apache permissions root httpd.conf user-permissions