xampp安装注意事项。
最近想在学习 python + flask建设小网站,需要用到mySQL,网上推荐XAMPP ,安装过程遇到几个问题,通过网上寻找解决方法,终于解决了。
一、安装第一步Warning.
提示信息:Warning Important! Because an activated User Account Control (UAC) on yourystem some functions of XAMPP are possibly restricted With UACplease avoid to install XAMPP to C: \Program Files(x86)(missing writpermissions). Or deactivate UAC with msconfig after this setup
这个warning提示用户不能把C: \Program Files(x86)作为安装目录,应为(x86)的括号识别为中文字符,只要我们在后面把安装目录改变到无中文安装路径即可。
二、安装error.
提示信息:1.Windows 找不到文件 '-n'.请确定文件名是否正确后,再试一次。
2.Problem running post-install step Installation may not complete correctlyInstallation failed (php. exe). Perhaps you have to install the MicrosoftVisual C++ 2008 Redistributable package. After that please execute thesetup xampp bat in the xampp folder manually.
该提示网上的说法主要是缺少安装的包,但是发现我本来的电脑就具有Microsoft Visual C++ 2008 Redistributable Package (x86),不过还是试了解决办法。
1.遇到这两个错误,继续安装,
2.安装完成,检查Apache 、MySQL 是否可以正常启动。通常情况下会提示
故障描述:
12:15:46 [mysql] Attempting to start MySQL app...
12:15:47 [mysql] Status change detected: running
12:15:47 [mysql] Status change detected: stopped
12:15:47 [mysql] Error: MySQL shutdown unexpectedly.
12:15:47 [mysql] This may be due to a blocked port, missing dependencies,
12:15:47 [mysql] improper privileges, a crash, or a shutdown by another method.
12:15:47 [mysql] Press the Logs button to view error logs and check
12:15:47 [mysql] the Windows Event Viewer for more clues
12:15:47 [mysql] If you need more help, copy and post this
12:15:47 [mysql] entire log window on the forums
3.完成后下载Microsoft Visual C++ 2008 Redistributable Package (x86),可以到这里下载:http://download.csdn.net/detail/hqocshheqing/9479606,然后安装;
4. 双击xampp安装目录下的setup_xampp.bat文件,
5. 最后运行安装目录下的xampp-control.exe文件,此时启动Apache 、 MySQL就可以成功了。