【问题标题】:apachectl start can't find httpd but it is there?apachectl start 找不到 httpd 但它在那里?
【发布时间】:2012-05-25 06:07:59
【问题描述】:

完全是 Unix 和 Apache 世界的新手。

刚刚通过 X-Win32 SSH 在远程服务器上配置并安装了 Apache(据我所知是成功的)。

在 bin 目录中,我看到列出了“httpd”。

要启动网络服务器,我提供了有关服务器状态的说明:

从您的安装 Apache 目录类型,'./bin/apachectl start'。

但是,我收到以下错误(11-14 只是显示它在那里):

server.edu(11): ls
bin     cgi-bin conf    htdocs  icons   include libexec logs    man     proxy
server.edu(12): cd bin
server.edu(13): ls
ab              apxs            dbmmanage       htpasswd        logresolve
apachectl       checkgid        htdigest        httpd           rotatelogs
server.edu(14): cd ..
server.edu(15): ./bin/apachectl start
./bin/apachectl: apache/bin/httpd: not found
./bin/apachectl start: httpd could not be started

非常感谢任何帮助。

谢谢!

编辑 @h4b0

server.edu(98): pwd
/home/scf-25/gmcnulty/apache_1.3.42/apache

server.edu(99): ls -l bin/httpd
-rwxr-xr-x   1 gmcnulty     28880 May 24 22:12 bin/httpd

EDIT2 @h4b0

server.edu(102): ls
ab              apxs            dbmmanage       htpasswd        logresolve
apachectl       checkgid        htdigest        httpd           rotatelogs

server.edu(103): cd ../..

server.edu(104): ls
ABOUT_APACHE            NOTICE                  README                  cgi-bin                 htdocs
INSTALL                 NWGNUenvironment.inc    README-WIN.TXT          conf                    icons
LICENSE                 NWGNUhead.inc           README.configure        config.layout           logs
Makefile                NWGNUmakefile           WARNING-WIN.TXT         config.status           src
Makefile.tmpl           NWGNUtail.inc           apache                  configure

server.edu(105): ./apache/bin/apachectl start
fopen: No such file or directory
httpd: could not open error log file apache/apache/logs/error_log.
./apache/bin/apachectl start: httpd could not be started

【问题讨论】:

    标签: linux apache unix installation webserver


    【解决方案1】:
    • 检查httpd 的权限
    • apache/bin/httpd 真的存在吗?在第 11 行显示来自目录的 pwd 输出

    【讨论】:

    • 请参阅上面的编辑。 (不是 (13) 表明它在那里吗?还是我误解了?)谢谢。
    • 我想确定apache 是否是实际的目录名称。在第 14 行,转到 ../.. 并在第 15 行执行 ./apache/bin/apachectl start
    • 是的。输出不是我想要的;p 检查您的 $PATH 变量 (echo $PATH) - 如果没有 apache 目录,请添加它。我不确定是哪个 - 试试 /home/scf-25/gmcnulty/apache_1.3.42/apache/home/scf-25/gmcnulty/apache_1.3.42/apache/bin (export PATH=$PATH:[path1]:[path2])
    • 不在路径变量中,嗯.... 使用 xWin32 在 SSH 中导出是否可以使用该语法?
    猜你喜欢
    • 2013-07-29
    • 2021-01-06
    • 1970-01-01
    • 1970-01-01
    • 2015-02-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-27
    相关资源
    最近更新 更多