请教关于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下; form提交数据的页面处理问题 Fatal error: Call to undefined method orderdetail::check_where() in on line 33 各位来帮我看看这个正常的不? 为什么分页不对呢?在别的地方是对的。 急!急!急!急!急!急!PHP5.2.13与MySQL server 5.1的连接配置问题 这种自定义 子域名怎么弄得? 谁有使用SMARTY的例子 关于读取二制流文件的问题~~ 限制页面独立运行 上传错在那? 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下;