wamp

“Premature end of data” error with PHP

本秂侑毒 提交于 2019-11-29 04:28:54
I've just started using WAMP for a PHP project and I get the next errors related with this line of code: $link=mysql_connect("localhost","myuser","mypas"); I read that I had to do the SET PASSWORD again with my old password, but it still does not work after restarting all services. I am using PHP 5.3.4 and MySQL 5.1.53 Any help? THANKS Warning: mysql_connect() [function.mysql-connect]: Premature end of data (mysqlnd_wireprotocol.c:554) in C:\wamp\www\CDE\includes\baseDatos.php on line 5 Call Stack 1 0.0002 667312 {main}( ) ..\index.php:0 2 0.0008 682416 include( 'C:\wamp\www\CDE\includes

WAMP Curl installation

与世无争的帅哥 提交于 2019-11-29 04:11:26
I have uncomment the following from the php.ini file ;extension=php_bz2.dll extension=php_curl.dll ;extension=php_dba.dll Also ,I have copied the php_curl.dll to windows\system32 and restart the apache server. I am testing the follwoing script <?php $curl_handle=curl_init(); curl_setopt($curl_handle,CURLOPT_URL,'http://example.com'); curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2); curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1); $buffer = curl_exec($curl_handle); curl_close($curl_handle); if (empty($buffer)) { print "Sorry, example.com are a bunch of poopy-heads.<p>"; } else { print

WampServer : Your Port 80 is actually used by Microsoft-HTTPAPI/2.0

橙三吉。 提交于 2019-11-29 02:21:07
I've uninstalled my WampServer 2.5 and installed version 3.0 But apache service isn't running and tray icon is orange... Clicking on test port 80 gave me the following cmd output : ***** Test which uses port 80 ***** ===== Tested by command netstat filtered on port 80 ===== Test for TCP Your port 80 is used by a processus with PID = 4 The processus of PID 4 is 'System' Session: Services The service of PID 4 for 'System' is 'N/A' *** ERROR *** This service IS NOT from Wampserver - Should be: 'wampapache' Test for TCPv6 Your port 80 is used by a processus with PID = 4 The processus of PID 4 is

Setting up Python on Windows/ Apache?

北战南征 提交于 2019-11-29 01:44:44
问题 I want to get a simple Python "hello world" web page script to run on Windows Vista/ Apache but hit different walls. I'm using WAMP. I've installed mod_python and the module shows, but I'm not quite sure what I'm supposed to do in e.g. http.conf (things like AddHandler mod_python .py either bring me to a file not found, or a forbidden, or module not found errors when accessing http://localhost/myfolder/index.py). I can get mod_python.publisher to work but do I "want" this/ need this? Can

配置虚拟域名 (wamp)

流过昼夜 提交于 2019-11-29 00:00:01
1、打开 wamp->apache->httpd-vhosts.conf 文件 出大问题,我一旦给这个 .conf 文件加上中文注释,apache就起不来???? 2、打开 C:\Windows\System32\drivers\etc\hosts 文件 3、重启wamp,浏览器输入地址 www.yxyun.com 搞定!! 来源: https://www.cnblogs.com/yxyun/p/11433471.html

All localhost pages via WAMP blocked?

大憨熊 提交于 2019-11-28 23:28:56
I've been trying to fix a weird 403 Forbidden error I get when I try to go to one of my pages via WAMP on the localhost. After adding a rule to open up port 80 via Windows Firewall, which apache uses, I notice that this does NOT fix my problem and instead gives me a 403 forbidden for ALL my pages via localhost. Removing the rule I just made (which caused this to begin with) does not fix it. Disabling Windows Firewall does not fix it. Restarting my computer does not fix it. Any ideas? EDIT2: I AM able to go to localhost/phpmyadmin for whatever that's worth. EDIT3: The contents of my httpd.conf:

How to use “mysql2” gem in Rails 3 application on Windows 7?

和自甴很熟 提交于 2019-11-28 23:25:54
问题 I try to install the mysql2 gem on Windows 7 32-bit. I run: gem install mysql2 and I get the following error: ERROR: Error installing mysql2: The 'mysql2' native gem requires installed build tools. Please update your PATH to include build tools or download the DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit' Any ideas what could cause this error, and how to solve this ? UPDATE I did everything as

how to setup built-in webserver in PhpStorm

非 Y 不嫁゛ 提交于 2019-11-28 23:16:43
Set up: 1) OS - Win 8.1 2) WAMP 3) PhpStorm 7.1.3 I have been working on Dreamweaver for quite a long time and recently I ditched it because of its limited features. Setting up a local env using Dreamweaver is fairly simple and I had no problem with it. So I installed PhpStorm thinking it would quite easy to run my PHP web app in the same way when I was using DW, but When I try to run my web app in PhpStorm using its built-in webserver I get 502 Bad Gateway error, What I did is simply import the folder (which is in www directory) in PhpStorm and try to run it on browser, but I couldn't get it

Cannot load modules/mod_ssl.so into server

扶醉桌前 提交于 2019-11-28 22:50:37
问题 I'm trying to set SSL to my localhost server with WAMP. (https://localhost) I followed this Youtube course: https://www.youtube.com/watch?v=TH6evGKgy20 But finally, I got this error by running "httpd -t" command in Apache folder: D:\Programs\wamp3\bin\apache\apache2.4.17\bin> httpd -t httpd: Syntax error on line 173 of D:/Programs/wamp3/bin/apache/apache2.4.17/conf/h ttpd.conf: Cannot load modules/mod_ssl.so into server: The operating system cannot run %1. What's the problem? 回答1: The problem

wamp server does not start: Windows 7, 64Bit

匆匆过客 提交于 2019-11-28 22:26:47
问题 I am trying to install wamp server (following is the exact setup name) on windows 7, 64Bit OS. But it never starts, icon stays in orange color meaning some services did not start. wampserver2.2e-php5.3.13-httpd2.2.22-mysql5.5.24-x64 I did not find any solution. No skype, port 80 is not in use. In windows services, when I try to start wampapache service manually, it throws following error: Windows could not start the wampapache service on Local Computer. Error 1053: The service did not respond