Home  >  Article  >  Backend Development  >  windows下配置apache+php+mysql时出现问题的处理方法_php技巧

windows下配置apache+php+mysql时出现问题的处理方法_php技巧

WBOY
WBOYOriginal
2016-05-17 08:41:29700browse

windows:

安装apache,php,mysql

遇到的各种问题:

1. test.php运行不起,发现是httpd.conf中忘加AddType application/x-httpd-php .php了;

2. 设置好配置文件,发现会报一个date函数的关于时区的警告,把php中的date.timezone加上date.timezone = Asia/Shanghai;

3. 老是报Call to undefined function openssl_get_publickey,把php.ini中的extension=php_openssl.dll打开;还是报错,发现安装的是httpd-2.2.25-win32-x86-no_ssl.msi,应该安装httpd-2.2.25-win32-x86-openssl-0.9.8y.msi,重装还是有问题;在php.ini中找到extension_dir = "ext",去掉前面的分号,终于改好;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn