Apache出现的问题

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/thinkcg/article/details/84927637
C:\Users\thinkcg>httpd
(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。  : AH00072: make_sock: could not bind to address [::]:443
(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。  : AH00072: make_sock: could not bind to address 0.0.0.0:443
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs

启动时,提示443端口被占用

解决办法:

1. C:\Apache24\bin>netstat -a -o

活动连接

  协议  本地地址          外部地址        状态           PID
  TCP    0.0.0.0:135            activate:0             LISTENING       400
  TCP    0.0.0.0:443            activate:0             LISTENING       8140
  TCP    0.0.0.0:445            activate:0             LISTENING       4
  TCP    0.0.0.0:902            activate:0             LISTENING       3976
  TCP    0.0.0.0:912            activate:0             LISTENING       3976
  TCP    0.0.0.0:3306           activate:0             LISTENING       4952
  TCP    0.0.0.0:5040           activate:0             LISTENING       12876
  TCP    0.0.0.0:6691           activate:0             LISTENING       4760
  TCP    0.0.0.0:7516           activate:0             LISTENING       4876
  TCP    0.0.0.0:49664          activate:0             LISTENING       672

2. C:\Apache24\bin>tasklist|findstr "8140"
vmware-hostd.exe              8140 Services                   0     47,532 K

可以看出是vmware虚拟机软件占用了

点【更改设置】后再点【禁用共享】,就可以修改端口号了,这里改为442

3. 运行httpd -k start启动Apache服务

展开阅读全文

Apache run aps.net 出现问题

09-09

参照http://blog.csdn.net/qdzx2008/archive/2006/02/07/593987.aspx文章后出现的问题:rnrn问题1: size=18px]如果对httpd.conf文件添加aps.net的配置,重启后就会失败,只有把这段配置重新删除后才能启动[/size]。rn下面是我的配置:rn#--------------------------------------------------------------------------rn#asp.netrnrn  LoadModule aspdotnet_module "modules/mod_aspdotnet.so"rnrn  AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj \rnrn  licx rem resources resx soap vb vbproj vsdisco webinfornrn  rnrn  # Mount the ASP.NET example applicationrnrn  AspNetMount /active "C:/Program Files/Apache Group/Apache2/htdocs/active"rnrn  # Map all requests for /active to the application filesrnrn  Alias /active "C:/Program Files/Apache Group/Apache2/htdocs/active"rnrn  # Allow asp.net scripts to be executed in the active examplernrn  rnrnrn  Options FollowSymlinks ExecCGIrnrn  Order allow,denyrnrn  Allow from allrnrn  DirectoryIndex Default.htm Default.aspxrnrn  rnrn  # For all virtual ASP.NET webs, we need the aspnet_client filesrnrn  # to serve the client-side helper scripts.rnrn  AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) \rnrn  "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"rnrn   rnrn  "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">rnrn  Options FollowSymlinksrnrn  Order allow,denyrnrn  Allow from allrnrn  rnrn   rn#--------------------------------------------------------------------------rnrn问题2:如果我把apache关闭后,重启就会出现这样的错误:rnC:\Program Files\Apache Group\Apache2\bin>apache -k startrnSyntax error on line 960 of C:/Program Files/Apache Group/Apache2/conf/httpd.conrnf:rnInvalid command '\xa1\xa1\xa1\xa1LoadModule', perhaps mis-spelled or defined byrna module not included in the server configurationrnrn---rn问题3:在active下放.aspx文件,就会现实源码。rnrn我想应该是我的配置文件没有写好,所以才会现实源码,但是我不知道我的配置文件错在哪里。rnrn请各位大侠指点... 论坛

apache soap配置出现问题,高分求救

07-30

我下载了tomcat4.0.4,soap2.0和xerces1.2.1在进行admin的deploy时,提示:rnorg.apache.jasper.JasperException: Unable to compile class for JSPrnE:\programs\jakarta-tomcat-4.0.4\work\Standalone\localhost\apache-soap\admin\deploy$jsp.java:6: Package org.apache.soap.util not found in import.rnimport org.apache.soap.util.*;rn我的classpath是这样设置的:rnclasspath=E:\programs\soap-2_0\lib\soap.jar;E:\programs\xerces-1_2_1\xerces.jar;E:\programs\jakarta-tomcat-4.0.4\common\lib\mail.jar;E:\programs\jakarta-tomcat-4.0.4\common\lib\activation.jar;E:\programs\JBuilder6\jdk1.3.1\jre\lib\rt.jar;E:\programs\JBuilder6\lib\jbcl.jar;E:\programs\JBuilder6\lib\dx.jar;E:\programs\JBuilder6\lib\beandt.jar;E:\programs\JBuilder6\lib\dbswing.jar;E:\programs\JBuilder6\jdk1.3.1\jre\lib\i18n.jar;E:\programs\JBuilder6\jdk1.3.1\jre\lib\jaws.jar;E:\programs\JBuilder6\jdk1.3.1\jre\lib\sunrsasign.jar;E:\programs\JBuilder6\jdk1.3.1\lib\dt.jarset;E:\programs\JBuilder6\jdk1.3.1\lib\htmlconverter.jar;E:\programs\JBuilder6\jdk1.3.1\lib\tools.jar;;E:\programs\jakarta-tomcat-4.0.4\common\lib\servlet.jar;rnrn而且我写了一个test.java能够正确运行,test.java源程序如下:rnimport org.apache.soap.server.*; rnimport org.apache.soap.util.*; rnimport org.apache.soap.util.xml.*; rnrnpublic class testrn static public void main(String[] args)rn rn System.out.print("ok");rn rnrnrn请各位大侠帮忙看一下是啥问题,谢谢! 论坛

Linux下 apache 集成 php 出现问题

07-13

操作系统rnFedora Core 4rnrn安装步骤:rnrnApache:rn# tar xvzf httpd-2.0.54.tar.gzrn# cd httpd-2.0.54rn# ./configure --prefix=/usr/local/httpd2 --enable-module=sorn# makern# make installrnrn察看编译进apache的模块:rn# /usr/local/httpd2/bin/httpd -lrnCompiled in modules:rncore.crnmod_access.crnmod_auth.crnmod_include.crnmod_log_config.crnmod_env.crnmod_setenvif.crnprefork.crnhttp_core.crnmod_mime.crnmod_status.crnmod_autoindex.crnmod_asis.crnmod_cgi.crnmod_negotiation.crnmod_dir.crnmod_imap.crnmod_actions.crnmod_userdir.crnmod_alias.crnmod_so.crnrn------------------------------------------------------------------------------------rnrn安装PHPrn# cd /usr/localrn# tar -zxvf php-5.0.4.tar.gzrn# mv php-5.0.4 php5rn# cd php5/rn# ./configure --with-apxs2=/usr/local/httpd2/bin/apxs --enable-track-vars --enable-ftprn# makern# make installrn# cp php.ini-dist /usr/local/lib/php.inirnrn在httpd.conf头部添加:rnAddType application/x-httpd-php .phprnAddType application/x-httpd-php-source .phpsrnAddType application/x-httpd-php .php3rnrn重新启动Apachern# /etc/rc.d/init.d/httpd restartrn的时候出错:rnSyntax error on line 1038 of /usr/local/httpd2/conf/httpd.conf:rnCannot load /usr/local/httpd2/modules/libphp5.so into server: /usr/local/httpd2/ modules/libphp5.so: cannot restore segment prot after reloc: Permission deniedrnrnrn/usr/local/httpd2/conf/httpd.confrn1038行的内容为: LoadModule php5_module modules/libphp5.sorn将这一行的注释就没有问题rnrn/usr/local/httpd2/modules/libphp5.so 文件也存在, 就是不知道为什么不能加载!rnrn----------------------------------------------------------------------------rnrn诚请高手帮忙,谢谢!~rn 论坛

没有更多推荐了,返回首页