wampserver

2011年 使用最新版wampserver搭建 WAMP 平台超简单实用教程

强颜欢笑 提交于 2019-12-01 09:45:30
首先想说一下通常搭建WAMP平台的时候主要分为散装包搭建和集成包搭建过程。   散装包搭建就是把PHP,Apache,MySQL等下载下来,一个个的安装,其过程灰常的复杂,而且需要配置的系统变量和修改的文件太多,不适合新手以及对系统定制要求不高的人使用。   集成包主要是使用wampserver进行安装,该包封装较好,自动集成了以上的程序,简化了操作过程,使用起来灰常方便,官方下载地址:    http://www.wampserver.com/en/download.php   里面提供最新的版本下载,一般比中文网站上的版本要高级。下面以笔者写作日期为止的最新版本的安装过程进行演示:   1、到上述网站上下载最新的版本,本文下载到的最新版本是:WampServer2.1e-x32.exe 上图中红色框内可以看到关于wampserver内包含的组件的相关信息   2、下载完毕之后,运行安装程序。安装的过程基本上就和安装普通软件的过程一致,不确定的地方选择默认的值便可以了。   3、安装完毕后会有提示是否现在运行的选项,选择立即运行,默认情况是离线的——也就是其他主机还不可以访问你搭建的服务器,但是本机可以访问。顺便说一下,安全起见,如果仅仅是个人开发,最好是不要让服务器在线,因为诸多的安全问题。   4、打开浏览器,输入: http://localhost/

WampServer操作手册

北城以北 提交于 2019-12-01 09:44:50
1.安装 版本2.5需要安装Microsoft Visual C++ 2012 Redistributable 版本3.0.4需要安装Microsoft Visual C++ 2015 Redistributable 和 Microsoft Visual C++ 2012 Redistributable 要两个一起 2.远程访问网站 在apache的配置文件httpd.conf 找到 # onlineoffline tag - don't remove Require local 将此处修改如下 # onlineoffline tag - don't remove # Require local # Deny from all Require all granted Order Deny,Allow Allow from all 注意:上面为版本2.5,如果版本是WampServer3.0.4 在D:\wamp64\bin\apache\apache2.4.18\conf\extra(根据实际安装路径而定)\httpd-vhosts 找到Require local,并用“Require all granted”代替它 3.phpmyadmin远程访问 WampServer3.0.4账户默认root密码为空 登录后可以新建用户密码

使用WampServer快速搭建网站

岁酱吖の 提交于 2019-12-01 09:44:17
本文将介绍如何快速搭建起一个网站。 说起搭建网站,我觉得分成如下几点: 1.首先需要的是一台有着独立IP的机器。 2.在机器上配置web服务器端所需要的环境 比如需要的环境有: 1>Apache 2>MySQL 3>PHP (这也就是我在这里要介绍的W(windows)A(Apache)M(MySQL)P(PHP),在windows系统上配置web服务器) ———————————————————————————————————————————— 本文先介绍在本地搭建服务器: 1.下载WampServer 前往: http://www.wampserver.com/ 2.安装好WampServer,按照默认安装即可 3.安装完了之后运行WampServer 4.直接运行 localhost,会进入如下页面,表示你的服务器正常运行起来了 5.关于WampServer安装后的目录介绍 看目录,其中我们的站点目录就是www这个文件夹(默认的),这个默认的站点目录是可以更改的,但是一般不建议去修改。 打开 : wampserver的安装目录,打开config.inc.php文件 路径 : 盘符:\wamp64\scripts\config.inc.php 找到 : $wwwDir = $c_installDir.’/www’; (改成项目所在的目录即可,例:D:\web) 修改 :

Apache time stamp incorrect

不羁岁月 提交于 2019-12-01 07:39:17
I am using WAMP server running PHP. At a particular step I am trying to capture system time and add it to the database with the following query $strSQLInsert = "UPDATE track SET State = 'Repeat' , DateTime = '" . date("m/d/Y h:i:s a") . "', where AccID like '". $values['SampleID'] ; but the time stamp is way off than my system time. The date is okay. I googled and found out that I can update my .htaccess with this line SetEnv TZ America/Los_Angles But I couldn't find where htaccess is. How do I get the correct time stamp. Try to change the timezone in the php.ini configuration file, and then

Wampserver: problems to load php_pdo_pgsql and php_pgsql modules

大城市里の小女人 提交于 2019-12-01 06:06:10
Wampserver has a problem when loading php_pdo_pgsql and php_pgsql modules. After searching on several forums the solution is to download from http://www.bmedon.net/download.html both .dll files and overwrite the existing ones. The problem is that it didn't work! I checked all php.ini files. I followed http://diego-loquese.blogspot.com/2010/12/conectar-wampserver-con-postgresql.html instructions (which is a summary of all the forums I found). I am using WampServer 2.2 for Windows x64 with PHP 5.4.3 Olivier RICCA You have to load libpq.dll that comes with php, in the httpd.conf like this:

PHP 7.1.x - mysqli_connect Isn't Defined (Extension is turned on)

倾然丶 夕夏残阳落幕 提交于 2019-12-01 05:37:24
Background I have WAMP Server (3.0.6) installed on my Windows 10 computer. I am developing a WordPress site using a few custom MySQL tables, so I'm using $wpdb . Problem I was running on PHP 7.0.10, and everything was fine. This morning, I installed PHP 7.1.4, and suddenly I got this error: Fatal error: Uncaught Error: Call to undefined function mysql_connect() in ...\wp-includes\wp-db.php:1573 I dug into it and traced the issue back to the __construct() function, and this if statement: if ( function_exists( 'mysqli_connect' ) ) { A var_dump showed me that function_exists( 'mysqli_connect' )

PHPMailer Hangs on Send

走远了吗. 提交于 2019-12-01 04:36:29
I had successfully setup a web app using WAMPSERVER on a desktop used by a few people internally, this used PHPMailer to an internal SMTP server without encryption or authentication and it worked. That desktop crashed and I've migrated to a "new" desktop. I had an SVN setup so I was even using most of the same files and config. One difference which might matter is that the old desktop was 64-bit and the new is 32-bit. This means I'm using different versions of WAMPSERVER. The mailer just hangs. I don't get a PHP error or a PHP timeout. I just never reach the end of my script. The crazy part

WampServer中MySQL中文乱码解决

偶尔善良 提交于 2019-12-01 04:31:36
WampServer中MySQL中文乱码解决 1、修改mysql的my.ini文件: 在 [client] 下面增加 default-character-set=utf8 在 [mysqld] 下面增加: character_set_server=utf8 2、创建数据库: 示例创建数据库代码: 创建数据库php: CREATE DATABASE `php` CHARACTER SET 'utf8' COLLATE 'utf8_general_ci'; 创建表user: CREATE TABLE `user` ( `id` varchar(40) NOT NULL default '', `name` varchar(40) NOT NULL default '' )ENGINE=InnoDB DEFAULT CHARSET=utf8; 插入数据: insert into user(id,name) values(1,'大数据'); insert into user(id,name) values(2,'云计算'); insert into user(id,name)values(3,'hadoop'); insert into user(id,name)values(4,'hbase'); insert into user(id,name) values(5,'数据库'); 3

Apache time stamp incorrect

跟風遠走 提交于 2019-12-01 04:16:40
问题 I am using WAMP server running PHP. At a particular step I am trying to capture system time and add it to the database with the following query $strSQLInsert = "UPDATE track SET State = 'Repeat' , DateTime = '" . date("m/d/Y h:i:s a") . "', where AccID like '". $values['SampleID'] ; but the time stamp is way off than my system time. The date is okay. I googled and found out that I can update my .htaccess with this line SetEnv TZ America/Los_Angles But I couldn't find where htaccess is. How do

how to access phpmyadmin remotely

大兔子大兔子 提交于 2019-12-01 04:13:16
Is it possible to access phpmyadmin from outside the network? Where do I set it? I tried editing httpd.conf, and restarted all services from wampserver but it doesn't work <Directory /> Options FollowSymLinks AllowOverride None Order Allow,Deny Allow from all </Directory> Go to C:\wamp\alias and edit the file phpmyadmin # to give access to phpmyadmin from outside # replace the lines # # Order Deny,Allow # Deny from all # Allow from 127.0.0.1 # # by # # Order Allow,Deny # Allow from all G O'Rilla # Edit C:\wamp\alias\phpmyadmin.conf # Below is v3.5.1 - the current version is 4.0.4.1 Alias