網頁

2013年6月27日 星期四

wampserver

在 Windows 7 安裝 WampServer


window server 2012 要安裝
Microsoft Visual C++ 2010 SP1 可轉散發套件 (x64)

wamp server install



Error MSVCR100.DLL Solution
Posted by: stevenmartin99 (Moderator)
Date: June 03, 2012 11:42AM

For Windows 32 : Be sure that you have installed the Visual C++ 2010 SP1 Redistributable Package x86
: VC10 SP1 vcredist_x86.exe >>http://www.microsoft.com/download/en/details.aspx?id=8328


For Windows 64 : Be sure that you have installed the Visual C++ 2010 SP1 Redistributable Package x64
: VC10 SP1 vcredist_x64.exe >>http://www.microsoft.com/zh-tw/download/details.aspx?id=13523


Window Server 2012






新增完成之後重新開機(不是重開Apache,要重開機)


wamp httpd conf

C:\wamp\bin\apache\apache2.4.2\conf\httpd conf


WAMP的mysql密碼設定






C:\wamp\apps\phpmyadmin4.0.4\config.inc.php 
第一次登入phpmyadmin root/ 無賬密
  
/*
 * First server
 */
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true; 


修改密碼



另:.html 內不能跑php 需 .php 或得另行處理


Server上PHP特別注意數值初始化的錯誤問題

PHP Notice: undefined index 完美解决方法

   $val = !empty($_GET[$str]) ? $_GET[$str] : null;

@SSL (https) on WAMP

如果提示错误信息如下:
Syntax error on line 76 of /etc/httpd/extra/httpd-ssl.conf:
SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).
就将/etc/httpd/extra/httpd-ssl.conf文件中的SSLSessionCache模块注释掉即可,如下所示:  
#SSLSessionCache        "shmcb:/usr/local/apache/logs/ssl_scache(512000)"
@How to find to the command prompt in Windows Server 2012 @WAMPSERVER無法正常​​啟動的解決方法(黃色圖標)【精華篇】
直接运行httpd.exe能有错误提示,从安装目录找到了E:\wampServer\bin\apache\Apache2.2.21\bin httpd.exe文件
双击,一个黑框一闪而过,啥也没看到,后来经验告诉我,应该从CMD(命令提示符启动)打开命令提示符 开始->运行->cmd
然后把httpd.exe文件拖动到cmd.exe的黑框里面

沒有留言:

張貼留言

注意:只有此網誌的成員可以留言。