请教关于Apache的一个简单配置问题 回wubai250(wubai) : 没用啊,我用了默认的安装路径: C:\Program Files\Apache Group 发现最终的安装路径是: C:\Program Files\Apache Group\Apache2 还是运行不了啊! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ServerName http://localhost:80改为ServerName http://127.0.0.1:80如可以了则你的localhost命名未生效 安装路径:安装的时候,选择:D:\就OK了,但最好把IIS改成8080,让APACHE是80 你那个ServerName http://127.0.0.1:80 不需要加那个http://吧还有就是如果是80端口被占用了,你可以找到那个Listen,然后加上listen 127.0.0.1:4000(我这里设置的是4000端口) ,然后找到#NameVirtualHost 在下面加上<VirtualHost 1270.0.1:4000> ServerAdmin [email protected] DocumentRoot "你的这个站点的路径" ServerName hostname DirectoryIndex index.htm index.php ErrorLog logs/www.xjrcw.com-error_log CustomLog logs/www.xjrcw.com_log common</VirtualHost>就可以了阿 server name localhostbindaddress 127.0.0.1port 要和你的iis不同最好的是把iis 给停了!!! No installed service named "Apache2".说明是Apache2服务没起来运行D:\apache\Apache2\apache -k install 我也是在配制APACHE+PHP的时候出现这个错误提示!!! 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 application/x-httpd-php4 .php4 --Action application/x-httpd-php4 "/php4/php.exe" 3.增加默认启动文档: DirectoryIndex index.html DirectoryIndex index.htm DirectoryIndex index.php DirectoryIndex index.php3 DirectoryIndex index.php4 二、php4安装(php-4.0.2pl2-Win32.zip) 1. 将软件包解压到c:\php4下。 (php安装目录可以随便,不过最好把目录名字改为php4)2. 再将目录下的所有dll文件拷到c;\winnt\system32下,不要覆盖已有的dll文件。将目录下的php.exe和php.ini-dist两个文件拷到c:\winnt下; update问题 高手指点 php 做个简单点的文件上传功能 大家帮我看哈这个输出是什么?谢谢 关于iframe的使用请教。 请问php如何判断一个指定目录里是空文件夹,前提是这个目录已经存在了 最令PHP初学者头痛的十四个问题 求一个关于连接地址参数的正则 使用mail()时出现以下提示 如何解决 网页的自动刷新 cookie不发送过来 50分问个简单问题。 请问,表单文本框值的提取。
改为
ServerName http://127.0.0.1:80如可以了则你的localhost命名未生效
还有就是如果是80端口被占用了,你可以找到那个Listen,然后加上
listen 127.0.0.1:4000(我这里设置的是4000端口) ,然后找到
#NameVirtualHost
在下面加上
<VirtualHost 1270.0.1:4000>
ServerAdmin [email protected]
DocumentRoot "你的这个站点的路径"
ServerName hostname
DirectoryIndex index.htm index.php
ErrorLog logs/www.xjrcw.com-error_log
CustomLog logs/www.xjrcw.com_log common
</VirtualHost>
就可以了阿
bindaddress 127.0.0.1
port 要和你的iis不同
最好的是把iis 给停了!!!
说明是Apache2服务没起来
运行D:\apache\Apache2\apache -k install
#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 application/x-httpd-php4 .php4
--Action application/x-httpd-php4 "/php4/php.exe"
DirectoryIndex index.html
DirectoryIndex index.htm
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.php4
1. 将软件包解压到c:\php4下。 (php安装目录可以随便,不过最好把目录名字改为php4)
2. 再将目录下的所有dll文件拷到c;\winnt\system32下,不要覆盖已有的dll文件。将目录下的php.exe和php.ini-dist两个文件拷到c:\winnt下;