wamp

windows wamp加载Phalcon

二次信任 提交于 2019-12-30 00:55:18
我的环境是64位的 Win7,Wampserver2.4 集成包(Apache 2.4.4,php5.4.12,MySQL 5.0.10)。 安装 Phalcon 也极其简单,只需要下载一个文件(php_phalcon.dll), 要以 phpinfo() 里面“Architecture”属性为准! 下载地址是 http://phalconphp.com/download。把php_phalcon.dll 解压出来放在 {WampServer安装目录}\bin\php\php5.4\ext 目录下面, 然后修改php.ini文件 PHP.ini配置文件增加参数“extension=php_phalcon.dll”, 然后重启 Apache 服务就好了, 重启后用phpinfo查看是否安装成功。 如果服务器报 500 internal server error, 一般就是 Phalcon 版本和环境不统一。 比如“Phalcon 1.1.0 - Windows x86 for PHP 5.4.0 NTS (VC9)”, 就是给32位系统(x86)用的,对应的PHP版本是5.4.0(只要是5.4就可以,比如5.4.1也行)。 NTS是非线性安全的,如果你的phpinfo()显示“Thread Safety”是“enable”的状态, 那么你需要下载不带“NTS”这个标志的。“VC9

windows 下安装memcache拓展

我们两清 提交于 2019-12-30 00:51:20
Windows下安装memcached (linux 接下来会继续 学习) 以管理员身份进入CMD 模式,具体方法:C:/windows/system32 管理员身份打开cmd.exe memcached -d install memcached -d start 运行 services.msc ,搜索memcached 服务已启动,则开启成功 或者 telnet localhost 11211 查看是否能正常连接。 1.下载php_memcache.dll 拓展包 网址:http://www.jb51.net/softs/392873.html 2.根据电脑配置选择拓展文件 我的电脑是 win 64 ,如果是wamp集成环境,根据集成环境的配置选择(如果电脑为64位,但集成环境是32位,则需要安装 添加32位拓展文件); ps: 关于文件选择:ts是指线程安全、nts是指线程不安全; 可以在phpinfo中的查找 Thread Safety项,若是enabled则为线程安全。可以在phpinfo中的查找 Thread Safety项,若是enabled则为线程安全。 3.php_memcache.dll 文件复制到php/ext 中,增加php.ini 配置(wamp集成环境中需要修改apache下的php.ini) extension=php_memcache.dll ; 4

Wamp server 2.5 wrong page redirection

做~自己de王妃 提交于 2019-12-30 00:41:38
问题 I installed wamp server 2.5 with PHP 5.5. Now, when i try to access my project pages from the front page(wamp home page), it redirect to a wrong url and shows google cannot find this page. The problem definition is I enter to wamp using http://localhost There I have many project. Suppose I click on sample_project Then the page redirects to sample_projects/ And Google Chrome displays the error chrome cannot find this webpage There are two fields are swown red marks in my wamp PHP extensions

wamp 安装redis扩展

可紊 提交于 2019-12-30 00:21:05
phpredis扩展下载地址 http://windows.php.net/downloads/pecl/snaps/redis/ 1.选择redis DLL文件扩展 phpinfo 查看VC版本 还有系统位数 再进行下载 所以选择上面这个 选择ts就行 2. 将下载好的php_redis.dll放入E:\wamp64\bin\php\php5.6.25\ext文件夹中,然后再E:\wamp64\bin\apache\apache2.4.23\bin\php.ini添加代码: extension=php_redis.dll 重启服务器 3.再打开phpinfo 就有了redis扩展 安装redis服务 https://github.com/MSOpenTech/redis/releases 下载zip文件后解压到创建的文件夹E:\redis 将这个文件夹地址 E:\redis 放到环境变量Path中 然后CMD命令行 这个时候可以写php文件进行测试 创建redis_connect.php <?php //连接本地的 Redis 服务 $redis = new \Redis(); $redis->connect('127.0.0.1', 6379); echo "Connection to server sucessfully"; //查看服务是否运行 echo "Server

Wamp Server isn't executing php code

点点圈 提交于 2019-12-29 06:24:08
问题 My php code is not executed when I access the root directory with http://localhost:8080/sample.html The code I want to run is: <?php phpinfo(); ?> and I tried also the following: Restarted all services several times including putting Wamp Server online Changing the listening port in httpd.conf to 8080 and configuring Skype to accept 80 and 443 ports Could it be that some firefox extensions are blocking php-execution? All I get is the php code exactly like I wrote it. 回答1: You're trying to

Wamp Server: Multiple Virtual Hosts are not working on Windows

安稳与你 提交于 2019-12-29 04:50:26
问题 I have two virtual hosts on windows(for example: test1.dev and test2.dev). But it always load content of test1.dev for both virtual hosts. Following are my files: hosts: 127.0.0.1 localhost 127.0.0.1 test1.dev 127.0.0.1 test2.dev httpd.conf: <IfModule ssl_module> SSLRandomSeed startup builtin SSLRandomSeed connect builtin </IfModule> Include "c:/wamp/alias/*" <VirtualHost 127.0.0.1> ServerName test1.dev DocumentRoot "C:\wamp\www\test1\public" </VirtualHost> <VirtualHost 127.0.0.1> ServerName

command line locally using wamp

我们两清 提交于 2019-12-29 04:01:39
问题 When referring to this post here: http://net.tutsplus.com/tutorials/javascript-ajax/start-using-html5-websockets-today/ it tells you to run php -q path\to\server.php from shell using XAMPP, is there an alternative for WAMP? 回答1: It might be useful to register php.exe as an ENVIRONMENT VARIABLE so the command line can recognize the 'php' command instead of needing to enter the full path '\wamp\bin\php\php5.3.8\php' as the command. To do this, you can follow the steps outlined on this page:

ThinkPHP环境搭建(wamp)

末鹿安然 提交于 2019-12-28 16:04:45
ThinkPHP环境搭建(wamp) 1.配置php环境变量 在环境变量中添加PHP的目录地址 成功设置好环境变量后,打开控制台,输入php -v,会显示相应版本信息 2.开启相关php扩展 extension=php_openssl.dll extension=php_pdo_mysql.dll extension=php_mbstring.dll extension=php_fileinfo.dll extension=php_curl.dll extension=php_gd2.dll extension=php_soap.dll extension=php_mysqli.dll extension=php_sockets.dll 开启后,输入php -m显示可用模块 3.安装composer 安装地址:[composer](https://www.phpcomposer.com/) 下载完成后,将composer.phar文件放到相应版本php的根目录 输入 echo @php "%~dp0composer.phar" %*>composer.bat 创建bat文件 输入composer确认是否安装成功 然后切换composer镜像地址 composer config -g repo.packagist composer https://镜像地址(这里建议使用阿里云镜像)

CURL for WAMP

懵懂的女人 提交于 2019-12-28 07:00:53
问题 I’m new to PHP and I’m trying to learn how to parse information, I’m trying to use CURL but I’m not able to install it on my desktop WAMP on Windows Vista. How do I install CURL? 回答1: There seems to be a bug somewhere. If you are experiencing this on Windows 7 64 bit then try installing Apache addon version 2.2.9 and PHP addon version 5.3.1 and switching to those in WAMP and then activating the CURL extension. That worked for me. You can download it from http://www.wampserver.com/en/. 回答2:

CURL for WAMP

烈酒焚心 提交于 2019-12-28 07:00:01
问题 I’m new to PHP and I’m trying to learn how to parse information, I’m trying to use CURL but I’m not able to install it on my desktop WAMP on Windows Vista. How do I install CURL? 回答1: There seems to be a bug somewhere. If you are experiencing this on Windows 7 64 bit then try installing Apache addon version 2.2.9 and PHP addon version 5.3.1 and switching to those in WAMP and then activating the CURL extension. That worked for me. You can download it from http://www.wampserver.com/en/. 回答2: