通过webmin / virtualmin启动apache时权限被拒绝

时间:2016-05-24 02:07:35

标签: php apache centos webmin virtualmin

我正在尝试通过webmin和putty启动我的Apache服务器,但我得到了相同的错误代码。

Apache在我们重新启动VPS之前运行得非常好,现在所有服务都已启动,除了Apache。

我们正在运行CentOS,我们得到的主要错误发布在下面:

May 23 21:56:47 www.mydomain.com httpd [6234]:AH00526:/etc/httpd/conf/httpd.conf第373行的语法错误:

May 23 21:56:47 www.mydomain.com httpd [6234]:Wrapper /home/mydomain/fcgi-bin/php5.fcgi无法访问:(13)权限被拒绝

Line 373: FCGIWrapper /home/vps78446/fcgi-bin/php5.fcgi .php
Line 374: FCGIWrapper /home/vps78446/fcgi-bin/php5.fcgi .php5

我尝试过编辑权限,查看php5.fcgi调用的文件以及我在互联网上找到的任何其他内容。

getent passwd return:

root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin sync:x:5:0:sync:/sbin:/bin/sync shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown halt:x:7:0:halt:/sbin:/sbin/halt mail:x:8:12:mail:/var/spool/mail:/sbin/nologin operator:x:11:0:operator:/root:/sbin/nologin games:x:12:100:games:/usr/games:/sbin/nologin ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin nobody:x:99:99:Nobody:/:/sbin/nologin avahi-autoipd:x:170:170:Avahi IPv4LL Stack:/var/lib/avahi-autoipd:/sbin/nologin dbus:x:81:81:System message bus:/:/sbin/nologin polkitd:x:999:998:User for polkitd:/:/sbin/nologin rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/sbin/nologin rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin postfix:x:89:89::/var/spool/postfix:/sbin/nologin chrony:x:998:996::/var/lib/chrony:/sbin/nologin sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin systemd-bus-proxy:x:997:994:systemd Bus Proxy:/:/sbin/nologin systemd-network:x:996:993:systemd Network Management:/:/sbin/nologin apache:x:48:48:Apache:/usr/share/httpd:/sbin/nologin webalizer:x:67:67:Webalizer:/var/www/usage:/sbin/nologin dovecot:x:97:97:Dovecot IMAP server:/usr/libexec/dovecot:/sbin/nologin dovenull:x:995:992:Dovecot's unauthorized user:/usr/libexec/dovecot:/sbin/nologin mysql:x:27:27:MariaDB Server:/var/lib/mysql:/sbin/nologin mailman:x:41:41:GNU Mailing List Manager:/usr/lib/mailman:/sbin/nologin postgres:x:26:26:PostgreSQL Server:/var/lib/pgsql:/bin/bash named:x:25:25:Named:/var/named:/sbin/nologin saslauth:x:994:76:Saslauthd user:/run/saslauthd:/sbin/nologin clamupdate:x:993:991:Clamav database update user:/var/lib/clamav:/sbin/nologin Kalgon:x:500:500::/home/Kalgon:/bin/sh vitalitygaming:x:502:502:Main Site:/home/vitalitygaming:/bin/sh vps78446:x:503:502:Main Site:/home/vps78446:/bin/sh scgaminguser.vitalitygaming:x:506:502:SCGamingUser:/home/vitalitygaming/homes/scgaminguser:/bin/false development.vitalitygaming:x:507:502:Development:/home/vitalitygaming/homes/development:/dev/null dadenz.vitalitygaming:x:508:502:Dennis:/home/vitalitygaming/homes/dadenz:/dev/null

感谢任何帮助!

P.S。这是我第一次使用StackOverflow,很抱歉,如果我做错了什么!

1 个答案:

答案 0 :(得分:0)

你可以给我们这些文件的权限, 打开终端输入cd /home/vps78446/fcgi-bin/然后输入ls -la
发布结果:

编辑: 运行下面的命令

sudo chown -R www-data:www-data /home/vps78446/fcgi-bin

尝试在那之后运行Apache