环境详细信息:
Server: Amazon ec2 Linux
Web Server: Apache
Web Framework: Django with mod_wsgi
下面是我在mysql_err.log文件中找到的。
The InnoDB memory heap is disabled
120823 3:21:40 InnoDB: Mutexes and rw_locks use GCC atomic builtins
120823 3:21:40 InnoDB: Compressed tables use zlib 1.2.3
120823 3:21:40 InnoDB: U
我正面临着一个奇怪的问题。当我通过与之相连的域访问我的服务器的可访问的目录时。上面写着:-
Not Found
The requested URL / was not found on this server.
当我在我的服务器上运行这个命令时(通过putty),它会显示很少的进程it来证明Apache服务器正在运行(更正我)。
root@...:~# pgrep apache
4733
13505
13506
13507
13508
13686
14199
17672
但是,当我运行这个命令时,它会说httpd:无法识别的服务
root@...:~# service httpd status
这建议使用以下命令来调试Apache:
httpd -t -c httpd.conf
然而,在我的Mac上用Apache版本: Apache/2.4.10 (Unix)运行它,我得到:
$ httpd -t -c /etc/apache2/httpd.conf
AH00526: Syntax error on line 1 of -c/-C directives:
Invalid command '/etc/apache2/httpd.conf', perhaps misspelled or defined by a module not included in the ser
默认情况下,git instaweb使用的是lighttpd web服务器,而在OSX Leopard服务器上,默认的是apache2。
将以下内容添加到.git/config中:
[instaweb]
local = true
httpd = apache2 -f
port = 4321
modulepath = /usr/libexec/apache2
运行'git instaweb‘的结果是:
apache2 not found.
Install apache2 or use --httpd to specify another httpd daemon.
我应该如何设置.g
#!/bin/bash
# Apache Process Monitor
# Restart Apache Web Server When It Goes Down
# -------------------------------------------------------------------------
# Copyright (c) 2003 nixCraft project <http://cyberciti.biz/fb/>
# This script is licensed under GNU GPL version 2.0 or above
# -------
我似乎无法让我的虚拟主机工作:
我将/etc/apache2/user/scottr.conf设置为:
<Directory "/Users/scottr/Sites/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
然后,将我的/etc/apache2/extra/设置为:
<VirtualHost *:80>
我的知识是非常基础的。但是我有一项特殊的任务来运行Apache。
FreeBSD 8.1
首先,当我尝试执行命令时:
#apachectl start
是一个错误:
[warn](2) No such file or directory: Failed to enable the 'httpready' AcceptFilter
[warn](2) No such file or directory: Failed to enable the 'dataready' AcceptFilter
然后我添加到/boot/loader.conf文件中:
accf_ht
我的问题
是否有人链接到Apache2.2的CentOS源代码包,如果是的话,我遗漏了什么特殊的说明吗?
摘要
我试图在AWS Linux AMI上安装Apache2.2,具体的AMI ID如下所示:
Amazon Linux 2 AMI (HVM), SSD Volume Type - ami-0d1000aff9a9bad89
由于yum在Apache2.4之前不支持任何内容,所以我需要从Apache网站下载我的2.2版本并从源代码构建它。
我还知道,由于我运行的是CentOS,我应该安装'httpd‘版本,而不是'apache2’
第1部分:使用yum安装httpd有效,
我读了很多关于这方面的问题,但我找不到解决方案。大概一个月前,我安装了一个名为WAMP的程序,只是为了试用一下。当我卸载它并尝试安装Apache时,它告诉我路径错误。我尝试了所有的方法,如果我的问题的答案太简单了,我很抱歉,但我不能单独解决这个问题。以下是XAMPP在控制台中的输出:
Apache Service detected with wrong path
Change XAMPP Apache and Control Panel settings or
Uninstall/disable the other service manually first
Found Path: "