注册 登录
编程论坛 PHP技术论坛

apache安装成功,配置后重启不成功,出现错误提示如下,如何解决?

jingjing316 发布于 2010-03-09 08:52, 3748 次点击
syntax error on line 491 of D:/phpServerd/Apache2.2/cong/httped.conf

only first PHPINDir directive honoref per configuration tree- subsequent ones  ignored


486行往下如下:
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL            行486
ScriptAlias /php/ "D:/PhpServers/PHP/"
Action application/x-httpd-php "D:/PhpServers/PHP/php-cgi.exe"
PHPIniDir "D:/PhpServers/PHP/"
LoadModule php5_module "D:/PhpServers/PHP/php5apache2_2.dll"
PHPIniDir "D:/PhpServers/PHP/"                                 行491
LoadModule php5_module "D:/PhpServers/PHP/php5apache2.dll"
PHPIniDir "D:/PhpServers/PHP/"
LoadModule php5_module "D:/PhpServers/PHP/php5apache.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
13 回复
#2
jingjing3162010-03-09 09:17
syntax error on line 383 of D:/phpServerd/Apache2.2/cong/httped.conf
AddType requires at least two arguments ,a mime type followed by one or more file extension

 #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    Addtype application/x-httpd-php.php    行383
    #
#3
jingjing3162010-03-09 14:27
安装mysql时,到了配置出现下面错误是什么原因?
the  security setting couldn't be applied
error number 1045
access denied for user 'root'@'localhost' using password yes
#4
jingjing3162010-03-09 15:10
以下是引用jingjing316在2010-3-9 14:27:55的发言:

安装mysql时,到了配置出现下面错误是什么原因?
the  security setting couldn't be applied
error number 1045
access denied for user 'root'@'localhost' using password yes
已经解决,卸载重新安装,输入原来密码的位置空着就行了。
#5
jingjing3162010-03-12 11:12
安装了phpMyadmin后,
无法加载 mcrypt 扩展,请检查您的 PHP 配置。
从网上找了n多方法都不管用,有没有遇到这种情况的,给个处理方法。
#6
jingjing3162010-03-17 10:09
学习windows系统下安装apache2.2.15+php5.2.13+mysql6.0.11过程中遇到的问题及解决方法。
首先安装apache,安装完毕后,图标显示是个绿色的小太阳,在地址栏中输入127.0.0.1,显示It Works!
根据网上的学习资料,修改目录
 DocumentRoot "D:/PhpServers/Apache2.2/htdocs"(我把apache安装到d盘的PhpServers目录下了)

 <Directory "D:/PhpServers/Apache2.2/htdocs">
在d盘PhpServers下新建文件家PHPRoot
然后将上面两个目录中的Apache2.2/htdocs更换成PHPRoot,重启apache
在地址栏输入127.0.0.1
出现错误Forbidden
You don't have permission to access / on this server.
从网上找解决办法,都不行,因此又把目录改回了原来默认的目录。(遗留问题以后再解决)
#7
jingjing3162010-03-17 15:21
配置好apache后,在地址栏输入127.0.0.1
出现index of
.0.html
.test.php
这是点击0.html,能够正常显示网页中的内容。
点击test.php,就成了下载test.php,并不显示test.php的内容,正在找解决方法。
#8
jingjing3162010-03-17 16:41
以下是引用jingjing316在2010-3-17 15:21:46的发言:

配置好apache后,在地址栏输入127.0.0.1
出现index of
.0.html
.test.php
这是点击0.html,能够正常显示网页中的内容。
点击test.php,就成了下载test.php,并不显示test.php的内容,正在找解决方法。
问题已经解决。从http://www.网站上下载PHP 5.2.13 installer 和PHP5.2.13 zip package,安装完毕后把php.in复制到C:\windows中,这时在地址栏中输入127.0.0.1/test.php,测试就成功了。
 
#9
zhuyunshen2010-03-17 16:53
好难看哦
#10
jingjing3162010-03-17 17:01
安装mysql-6.0.11完毕,进行配置是出现could not start the service mysql error:0
从网上找到解决方法如下:
运行 sc delete mysql
然后注销系统(重启最好)
然后再在mysql server  instance  config  wizard
中进行配置就成功了!
#11
外部三电铃2010-03-17 22:48
问题解决后与大家分享,精神可嘉,加精华了
#12
jingjing3162010-03-18 11:49
以下是引用jingjing316在2010-3-12 11:12:59的发言:

安装了phpMyadmin后,
无法加载 mcrypt 扩展,请检查您的 PHP 配置。
从网上找了n多方法都不管用,有没有遇到这种情况的,给个处理方法。
这个问题尚未解决,在phpmyadmin登陆界面,强行登陆(忽略无法加载 mcrypt 扩展,请检查您的 PHP 配置),会出现下面的问题“httpd.exe应用程序错误;0x007da344指令引用的0x02b3df8c”内存,该内存不能为“written”。
#13
jingjing3162010-03-18 16:46
http://docs.
php中文安装手册
#14
jingjing3162010-03-21 10:13
以下是引用zhuyunshen在2010-3-17 16:53:10的发言:

好难看哦
http://hi.baidu.com/poseidon698/blog
可以去空间看看,我正在写学习笔记呢!
1