`
szzhi
  • 浏览: 76411 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

windows7下按照apache,php,mysql那些事(不断更新)

    博客分类:
  • win7
 
阅读更多

Apache http://www.apache.org   Apache服务器  httpd-2.2.22-win32-x86-no_ssl

Php      http://www.php.net         PHP语言 php-5.3.17-Win32-VC9-x86.msi

Mysql   http://www.oracle.com     数据库

Netbeans http://www.oracle.com 开发工具IDE netbeans-7.2-ml-php-windows

 

 

手动添加apache服务出现以下问题

(OS 5)拒绝访问。  : Failed to open the WinNT service manager

 

 

win7下安装apache 2.2的注意点
在WIN7下,当安装apache 2.2时,安装后用httpd -k install时,会出现如下错误:
OS5>拒绝访问. : Failed to open the WinNT service manager

解决方法为:
软件安装时与windows7的“用户账户控制”(UAC)冲突,只要先关 闭UAC

(控制面板--用户账户和家庭里面有“更改用户账户控制设置”,改成从不通知,完成后重启)

再安装就没问题了,安装完后可以再修改回来。

 

----------------------------------------------------------

手动添加apache服务

cmd命令 打开 apache安装目录。 cd bin/httpd -k install

 

------------------------------------------------------------

More information (should be hidden on production server):
DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead

 

这是一个协调世界时(UTC) 的问题,简单的解决方案

打开php.ini

date.timezone = "Asia/Shanghai"

把时区设置为亚洲上海 就可以了。记得要把前面的注释去掉噢。

 

 

--------------------------------------------------------------- 

 

系统搭配完毕,暂时没有出现什么问题,如果有遇到问题,我会继续更新。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics