由买买提看人间百态

topics

全部话题 - 话题: httpd
1 2 3 4 5 下页 末页 (共5页)
r*****r
发帖数: 397
1
【 以下文字转载自 Linux 讨论区,原文如下 】
发信人: ruisher (aa), 信区: Linux
标 题: start apache server , httpd? apachectl?
发信站: Unknown Space - 未名空间 (Wed Sep 22 23:42:02 2004) WWW-POST
Kind of confuse.There are two httpd.conf file,
one is in /etc/httpd/conf/httpd.conf
one is in /usr/loca/apache2/conf/httpd.conf
which one should I configure, or both?
When I try to start the apache server, what's the difference between
apachectl start
httpd start?
Looks when I start with httpd, it fails and told me can't bind to the a
c***c
发帖数: 21374
2

系统默认的Apache配置文件,一般情况下都是自动启动(默认安装如此)
这个配置文件没启用
httpd是服务,apachectl是启动httpd服务的文件名称
你是不是自己又安装了一次apache?
cgi目录随便指定,在httpd.conf里面设置久可以了
a******i
发帖数: 30
3
mysqld cannot start with httpd. If I start httpd first, mysqld will say cannot ind socket
if I start mysqld first, httpd will refuse connection. What is the problem
do I need do something to open port 3306? or there is other problem. Thanks a lot.
v****r
发帖数: 158
4
来自主题: BuildingWeb版 - httpd, php under RH8.0
I didn't modify any config file,it work well.
check /etc/httpd/conf/httpd.conf to find if exist module of php3 php4.
r*****r
发帖数: 397
5
Hi, you are right.
I checked
$ /usr/local/apache2/bin/httpd -v
Server version: Apache/2.0.50
Server built: Sep 7 2004 23:50:34
$ /usr/sbin/httpd -v
Server version: Apache/2.0.40
Server built: Sep 4 2002 17:20:34
Is there any trouble?How can I uninstall one of them?How can I fix the
problem?
Thanks very much.
address,
I*****y
发帖数: 6402
6
来自主题: StartUp版 - httpd question
this can be done by setting up virtual host in your httpd.conf file.
bz
发帖数: 1770
7
来自主题: StartUp版 - httpd question
could you give samples for http://www.xyz.com and http://www.123.com
my httpd.conf looks like
Listen 80
NameVirtualHost *:80

ServerAdmin w*******[email protected]
DocumentRoot /var/www/html/xyz
ServerName http://www.xyz.com
ErrorLog logs/xyz.com-error_log
CustomLog logs/xyz.com-access_log common


ServerAdmin w*******[email protected]
DocumentRoot /var/www/html/123
ServerName http://www.123.com
ErrorLog logs/123.com-error_log
r****y
发帖数: 26819
8
来自主题: BuildingWeb版 - 他的httpd.conf
#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs-2.0/> for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been wa
h***u
发帖数: 214
9
来自主题: BuildingWeb版 - httpd, php under RH8.0
did nay body have try php under rh8.0?
I just installed RH 8.0, choose install httpd and php packages. but the php
not work.
when try phpinfo(), the browser give me a blank page.
I have check php.net, they say it is a server configuration problem.
did anyone know how to slove it?
Thank you
k***a
发帖数: 233
10
目前无法正确显示中文
无权修改httpd.conf
但是可以改.htaccess
请问在.htaccess写些什么
目前在.htaccess里有这些内容
j***y
发帖数: 2074
11
Hi, ktoya:
Why not add a line like the following:

into your web page .html file?
I have played with apache a little bit, but don't know how to
change httpd.conf to make gb2312 as default.
All my chinese pages contain the above line, and they can display correctly.
Btw, you may also post your question to "Programming" board. There are
many high hands in that board. It seems few ppl come here. :)
r*****r
发帖数: 397
12

Maybe, how can I get rid one ?At first, I installed as a general user, then i
reinstalled as root.I guess.Is there any trouble?
Now, when I want to httpd start, I got the error,
(98)Address already in use: make_sock: could not bind to address 127.0.0.1:80
no listening sockets available, shutting down
But when I ps -ef |grep apache, there is no process. What's wrong?
address,
r*****r
发帖数: 397
13
When I downloaded the tar file and I installed from source, it automaically
goes to /usr/local/apache2 directory.
The older version goes to /etc/httpd, I guess somebody else installed it in
the lab. It's build from rpm, if I rm the rpm, is there any trouble?
Or maybe better to remove my own version, I just worried i installed from
source, may not easy to uninstall.
D******y
发帖数: 3780
14
if CentOS, run
service httpd reload
s**********i
发帖数: 711
15

what do you mean httpd will refuse connection?
a******i
发帖数: 30
16
That means if I try to connect to my computer through http, connection will be refused
. Or in another word, I can not connect to my computer through http even I did
start httpd. Anyway, I work the problem out now. That is one small problem in my
MySQL configuration. Thanks anyway.
x****n
发帖数: 1
17
来自主题: Unix版 - httpd loadmodule 问题
各位:
我在IBM HTTP 1.3.6 (running on NT 4.0)中使用loadmodule来加
入一个module.
在 httpd.conf 中加入了如下行:
LoadModule anon_auth_module modules/ApacheModuleAuthAnon.dll
启动http server
出错,错误代码1067。文件ApacheModuleAuthAnon.dll
在子目录 modules 下。
请高手指点,不胜感谢。
h*n
发帖数: 14
18
来自主题: Unix版 - httpd loadmodule 问题
I would suppose your http server is actually apache.
Search the following line in your httpd.conf
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
d*****r
发帖数: 39446
19
【此篇文章是由自动发信系统所张贴】
httpd 已经成为本俱乐部的正式成员, 特此通知.
c********l
发帖数: 8138
20
发信人: coupondeal (Coupon Deal), 信区: Programming
标 题: 安装web.py小记
发信站: BBS 未名空间站 (Mon Mar 25 17:38:56 2013, 美东)
周末的时候在家里闲得无聊,于是想体验一把Python的web server。本来以为,无非是
手动地实现一个类似于WAMP的功能,应该花不了太长时间。但最后的事实是:各种问题
不断,插曲实在太多,花费了偶大半天的时间,于是把安装经验分享在网上,希望后来
人少走弯路。
web.py在安装之前,需要有几个dependency: web server, Python, CGI/WSGI module,
Database, Database driver/adaptor.
第一步:web server
web.py的官方页面上说既可以用LightTPD也可以用Apache,考虑到Apache更普遍,平时
也经常用Apache,于是决定使用Apache。在官网上找到Apache 2.4 for windows x64下
载,安装,设端口为4567,最后start。发现:在服务器本... 阅读全帖
c********l
发帖数: 8138
21
来自主题: Programming版 - 安装web.py小记
周末的时候在家里闲得无聊,于是想体验一把Python的web server。本来以为,无非是
手动地实现一个类似于WAMP的功能,应该花不了太长时间。但最后的事实是:各种问题
不断,插曲实在太多,花费了偶大半天的时间,于是把安装经验分享在网上,希望后来
人少走弯路。
web.py在安装之前,需要有几个dependency: web server, Python, CGI/WSGI module,
Database, Database driver/adaptor.
第一步:web server
web.py的官方页面上说既可以用LightTPD也可以用Apache,考虑到Apache更普遍,平时
也经常用Apache,于是决定使用Apache。在官网上找到Apache 2.4 for windows x64下
载,安装,设端口为4567,最后start。发现:在服务器本地访问http://localhost:4567/时,一切OK。但是如果用远程机器上的浏览器访问http://my.server.com:4567/时,浏览器会长时间显示空白页面,最后超时报错。一开始怀疑可能是路由器没有... 阅读全帖
r****y
发帖数: 26819
22
我在win32平台下,用apache2.0.40和php最新的,可能是4。2。2,按照一般网站上说
的办法:
apache成功建立以后,将php.ini-dist改名php.ini,然后将php.ini和php4ts.dll考
到win2000系统目录下的system和system32下,最后修改apache的httpd.conf文件:
添加:
LoadModule php4_module c:/pgp/sapi/php4apache.dll
AddType application/x-httpd-php .php4
ScriptAlias /php4/ "c:/php"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
重起apache,但是报错失败。第一句LoadModule就有问题。
在网上查了一些,都说Apache2和php4整合有一些问题。
请教有经验的大侠。
谢谢!
c*****s
发帖数: 214
23
来自主题: BuildingWeb版 - [转载] apache mod_jk.so 问题
【 以下文字转载自 Linux 讨论区,原文如下 】
发信人: cyclops (编程浪子), 信区: Linux
标 题: apache mod_jk.so 问题
发信站: Unknown Space - 未名空间 (Fri Jan 28 00:58:28 2005) WWW-POST
我试图把 apache 2.0.40 和tomcat 5.0.28用mod_jk 1.2.6连接起来
在httpd.conf里加入LoadModule jk_module module/mod_jk.so后启动httpd时得到这个错

Cannot load /etc/httpd/modules/mod_jk.so into server:
/etc/httpd/modules/mod_jk.so: undefined symbol: apr_filepath_name_get
毫无头绪。
我试着装了apr 1.1.0 ,没用。
会是什么原因?谢了先。
c*****s
发帖数: 214
24
来自主题: Java版 - [转载] apache mod_jk.so 问题
【 以下文字转载自 Linux 讨论区,原文如下 】
发信人: cyclops (编程浪子), 信区: Linux
标 题: apache mod_jk.so 问题
发信站: Unknown Space - 未名空间 (Fri Jan 28 00:58:28 2005) WWW-POST
我试图把 apache 2.0.40 和tomcat 5.0.28用mod_jk 1.2.6连接起来
在httpd.conf里加入LoadModule jk_module module/mod_jk.so后启动httpd时得到这个错

Cannot load /etc/httpd/modules/mod_jk.so into server:
/etc/httpd/modules/mod_jk.so: undefined symbol: apr_filepath_name_get
毫无头绪。
我试着装了apr 1.1.0 ,没用。
会是什么原因?谢了先。
a**********0
发帖数: 422
25
来自主题: JobHunting版 - 发个我总结的unix常用命令
The Unix Commands
其实就是攒了一下网上的资料
# Create a new tar archive.
# the folder dirname/ is compressed into archive_name.tar
tar cvf archive_name.tar dirname/
# Extract from an existing tar archive
tar xvf archive_name.tar
# View an existing tar archive
tar tvf archive_name.tar
# Search for a given string in a file (case in-sensitive search).
grep -i "the" demo_file
# Print the matched line, along with the 3 lines after it.
grep -A 3 -i "example" demo_text
# Search for a given string in all files recur... 阅读全帖
s*******e
发帖数: 1269
26
来自主题: BuildingWeb版 - PHP apache 配置问题
我测试
phpinfo();
?>
不行
apache ke可以运行
winxp
apache
PHp 4.2.2
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php4
ScriptAlias /php4/ "c:/php"
Action application/x-httpd-php "/php/php.exe"
AddType application/x-httpd-php .php
多谢拉!
c***c
发帖数: 21374
27
来自主题: BuildingWeb版 - Apache 1.3.33 + PHP 4.3.10 @ Redhat 9???
确认你修改的httpd.conf就是你的apache所用的那个
很多linux的版本默认已经安装了一个apache /etc/httpd
如果你自己再装一个(一般/usr/local/apache2),那么要修改的httpd.conf是前者而不
是后者
j*********g
发帖数: 3826
28
来自主题: BuildingWeb版 - 请教有关iframe的问题
新手赶鸭子上架做javascript,现在有个问题请教。
一个设备的网页,由外层的页面和内嵌的一个iframe组成。里层的iframe网页由和外层
不同的httpd管,request是由外层的httpd forward进去的。
外层的session timeout之后会回到login界面要求重新登录,所以这个时候如果点一下
里层的refresh 按钮,结果是登录界面给嵌套到iframe里去了。
我的想法是,有没有可能在iframe窗口的javascript里见到登录界面以后,调用某个函
数,让整个浏览器窗口返回到登录界面,而不是iframe里。我想过改外层的httpd,做一
个可以嵌在iframe里的登录窗口,然后从那个窗口重定向到iframe应该显示的内容,但
是这样就导致其它页面和带iframe的页面外观不一样,所以不能使用。
我正在读javascript的教程,还没有发现有解决方案,请教这里的高手,能不能点拨一
二?
t*********e
发帖数: 630
29
来自主题: Java版 - 15 high-impact Apache projects
1. Cassandra
The Cassandra database serves as a "scalable system of record" in the big
data world, says Jonathan Ellis, vice president of the Cassandra project.
Apache received the project from Facebook, which open-sourced Cassandra in
2008. Whereas Hadoop undertakes data analysis, Cassandra provides a data
store for applications, often highly scalable ones on the Web. Netflix, for
example, runs many Cassandra clusters, Ellis says.
2. Cordova
Giving Apache prominence in mobile computing, Cordova... 阅读全帖
B*********s
发帖数: 292
30
来自主题: Linux版 - dd-wrt的web interface不见了
我用的是mini+usb版本,接着打印机,工作都很好。前天想把web interface转到HTTPS
上面,把http 80端口留出来。可是选择了之后按apply,就再也连不上web interface
了,用http或者https都说连接不到服务器。路由器的功能都很好,也能telnet上去。
用ps看,没有 httpd -S 了。
应该如何启动web interface呢?执行httpd -S,没有任何反应;ps |grep httpd也是
空的。
重启动过,还是一样。
除了重新灌dd-wrt,还有什么办法?谢谢。
L****i
发帖数: 94
31
来自主题: Programming版 - SVN的安装和配置问题
想的用一个portable的版本控制软件,看了一下SVN感觉应该可以,想把它用在XAMPP上,
按照下面的说明
http://svnbook.subversion.org.cn/nightly/svn.serverconfig.httpd.html#svn.serverconfig.httpd.basic
在xampp目录下创建了一个svn_root子目录,在httpd.conf里加上了
LoadModule dav_svn_module modules/mod_dav_svn.so

DAV svn
SVNParentPath /xampp/svn_root

设置好xampp后,启动apache。用svnadmin创建一个test后,用FireFox可以看到
http://localhost/svn/test/
但是用svn ls http://localhost/svn/test/ 出错。
svn: PROPFIND request failed on '/svn/test'
svn: PROPFIND
k*****y
发帖数: 221
32
Faint, I found it for you. hehe
Windows2000下安装Apache PHP4 MySQL
X-Powered-By: PHP/4.0.1pl2
Content-type: text/html
标题:Windows2000下安装Apache+PHP4+MySQL
作者:大金刚
电邮:c*****[email protected]
内容:一、 安装APACHE1.3.9(配置conf目录下的httpd.conf文件)
1.#BindAddress * 改为 BindAddress 127.0.0.1
#Servername new.host.name 改为 Servername localhost
2.让你的APACHE来支持PHP4. 加上下面这么几句:
ScriptAlias /php4/ "C:/php4/"
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php3
AddType applica
t****r
发帖数: 106
33
来自主题: UESTC版 - some basic question about Apache
Dear all,
When I run Perl program in "cgi-bin" directory,
I always get "Internal Server Error". I am running
apache 1.3 with default setting.
Could anyone give me some help how to modify
/etc/httpd/conf/httpd.conf
to let me run CGI successfully?
thanks
t****r
发帖数: 106
34
来自主题: BuildingWeb版 - 如何设定http://www.XXX.edu/~user网页
First, the web server should be set to enable User
directory.
ask administrator, normally, httpd.conf enable user dir as
default.
then create a dir with the same name as indicated in
httpd.conf, e.g public_html
ask your administrator or problem manager for detail.
Good luck
r***t
发帖数: 78
35
来自主题: BuildingWeb版 - 紧急请教,初级问题。
各位,我在win2000 server上有微软自己的IIS, 可是我又安装了
一 java web server
使用servlet, 请问一机子上同时安装2个web server会有冲突么?
安装后,不能同时运行
这两个web server么?
另一问题, 我安装完sun javawebserver后, 运行httpd后,虽
http://localhost:8080
能正常显示index.html(这时我已经关闭了微软的IIS),
但是http://localhost:9090不能
显示,运行httpd时说,9090已经在使用。可是不进入administrato
r tool,在哪里更改
port number呢?
谢谢。
g****r
发帖数: 88
36
来自主题: BuildingWeb版 - 建个人主页的一个问题
download the Apache server from its website.
then install it.
read the httpd.conf in its /conf/ directory,
that's the configuration file.
(most time you don't need change anything in this file)
then put all your pages into the /htdocs/,
rename the first page to index.html or index.html.html.
(that's wierd? then you can get your own configuration
via changing httpd.conf)
I suppose your PC is a NT one. then set Apache server
as the service in NT. This is the last step.
(if win9x, then run as a con
y***i
发帖数: 92
37
Hi:
I have found the following error in my apache server's
error_log
file.
[Mon Feb 12 15:10:35 2001] [error] [client XXX.XXX.XXX.XXX]
Symbolic link not allowed: /home/httpd/cgi-bin/tmpfiles/
Please tell me how to solve this problem? urgent.
BTW, the "tmpfiles" directory is only a link to any other
directory in order to protect the data.
I use " ln -s /data/tmpfiles tmpfiles" command under
/home/httpd/cgi-bin directory.
Thanks a lot
Appreciate your help, tommy.
Yanzi
m*******e
发帖数: 119
38
来自主题: BuildingWeb版 - questions about php
Do you have this line in your apache configuration file?
AddType application/x-httpd-php .php
You need to tell apache to treat your file as a php file, not a unknown file
format. For example, if you file has extension as index.phtml, that you should
tell apache:
AddType application/x-httpd-php .phtml

to
build
w*******w
发帖数: 18
39
来自主题: BuildingWeb版 - 关于php的问题
我是这样装php的:
1. unzip to c:\php
2. using Apache,so php4apache.dll is copied to c:\php下
3. copy c:\php\dlls to c:\windows\system32下
4. move c:\php\mibs to c:\usr\mibs
5. setup php.ini in c:\windows
6. edit php.ini
extension_dir = c:/php/extensions
doc_root = "c:/program files/apache group/apache/htdocs"
7. add php to Apache configuration
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action Application/x-httpd-php "php/php.exe"
还有什么要设的?
tx.

t*****t
发帖数: 72
40
来自主题: BuildingWeb版 - apache问题请教
【 以下文字转载自 Linux 讨论区 】
发信人: tecplot (_____), 信区: Linux
标 题: apache问题请教
发信站: BBS 未名空间站 (Tue Aug 23 14:42:09 2005), 转信
我原来的计算机上系统自带的Apache在下面这个目录:
/usr/sbin, 开的服务进程叫 httpd-perl
后来我自己又安装了Apache2在 /usr/local/apache2
所有的设置文件都在这个目录底下。我可以通过stop
httpd-perl, 再用apachectl start启动新的apache2。
我现在希望Linux启动的时候直接运行我自己安装的apache2
而不是系统原来的那个,请教如何设置?多谢
我的系统是Mandrake 10.0.....
h******y
发帖数: 173
41
来自主题: BuildingWeb版 - 一个文件权限的问题
搞定,十分感谢!
(是FollowSymLinks,在/etc/httpd/conf/httpd.conf中设置)

security
l*******9
发帖数: 177
42
There is one damn easy way to do this, as long as you can control
your httpd.conf or .htaccess, add just four lines:
AuthType basic
AuthName "pswd protect region"
AuthUserFile /path/to/htpswd
Require valid-user
in /path/to/my_protected_dir/.htaccess or in

....

of your httpd.conf....then in your shell, type
htpasswd -c /path/to/htpswd yellowchild
to generate username-password pairs...
This is by far the easiest way to fit your needs..
Other way
l*******9
发帖数: 177
43
来自主题: BuildingWeb版 - 菜鸟再问:php如何判断页面过期

这个,sever侧的cron job可以制定个固定的时间同时删除,是针对site-width
的所有sessions,无论是 file-based 的或是 DB-based,脚本都不难,且不需要
用到 httpd 的资源
过期cookie则是针对每个访问者,得用 httpd 资源,两者并不完全等同。。
c***c
发帖数: 21374
44
来自主题: BuildingWeb版 - problem: apache web server
不同的linux配置文件位置不同
一般说在/etc/apache 或者/etc/httpd
找httpd.conf这个文件
f*********e
发帖数: 8453
45
来自主题: BuildingWeb版 - 怎么在Apache tomcat6下装php5?
准备学习一下php。我的机器是xp pro sp2 updated,
装了apache tomcat6。下载了一个php5.2.5 installer。
运行以后让我选apache module,选了2.0.X以后继续,
结果到最后总是说找不到httpd.conf。我到我apachetomcat6
目录下确实也找不到这个文件。跑网上随便搜了一下,
说是apache和tomcat整合以后出的版本根本就没有httpd.conf
这个文件。那我该怎么配置呢?
c***c
发帖数: 21374
46
来自主题: BuildingWeb版 - 刚买了个空间 问一下
这叫虚拟主机
一般说来如下2步:
1。在你的域名注册商那里修改域名的A纪录,把他们都指向到你的IP
2。在你的服务器修改Apache httpd.conf
http://httpd.apache.org/docs/2.0/vhosts/examples.html
如果你是shared hosting AND 如果你的plan允许你有多个域名,那个在你的控制
面板就应该有说明。一般说来,大致是要把域名的主目录设置分别为/aaa 和 /bbb
如果你的域名注册不是在lunarpages,你要去域名注册商那里把DNS修改成lunarpages
的DNS

面。
s****y
发帖数: 983
a***t
发帖数: 39
48

visit
All the information has been kept in the web server log file. I assume you are
using Apace, it's usually /var/log/httpd-access.log, or whatever you defined
in httpd.conf.
You can write your own script to parse this file in order to get the info you
want, or you can install some software like Webalizer to generate some graphic
type reports.
b**r
发帖数: 352
49
来自主题: Linux版 - busybox ined problem
inetd,telnetd, so as ftpd,httpd are all busybox functions.
telnetd will work itself, but looks like inetd is not spawning it.
curiously, both ftpd and httpd work properly.

connections
1 2 3 4 5 下页 末页 (共5页)