wampserver

Unable to connect to PostgreSQL server

ぐ巨炮叔叔 提交于 2020-01-15 15:28:08
问题 I'm trying to connect to the PostgreSQL database of my app on Heroku: $host = "ec2-54-235-242-31.compute-1.amazonaws.com"; $username = "user"; $password = "pass"; $database = "dbname"; $port = "5432"; $dbconn = pg_connect("host=".$host." port=".$port ." dbname=".$database." user=".$username." password=".$password) or die('Could not connect: ' . pg_last_error()); but I'm getting this error: Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: FATAL: no pg_hba

Unable to connect to PostgreSQL server

▼魔方 西西 提交于 2020-01-15 15:26:04
问题 I'm trying to connect to the PostgreSQL database of my app on Heroku: $host = "ec2-54-235-242-31.compute-1.amazonaws.com"; $username = "user"; $password = "pass"; $database = "dbname"; $port = "5432"; $dbconn = pg_connect("host=".$host." port=".$port ." dbname=".$database." user=".$username." password=".$password) or die('Could not connect: ' . pg_last_error()); but I'm getting this error: Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: FATAL: no pg_hba

PHP WAMP install php_tidy

假装没事ソ 提交于 2020-01-15 10:21:57
问题 i have installed on my computer WAMP with PHP 5.2.9-2 . I want to install php_tidy and i have read some tuts over the internet and i found out that i have to uncomment this extension=php_tidy.dll in php.ini, the problem is that i can't find that line. 回答1: assuming you are on Wampserver 2.0 you just need to click on the Wampserver icon in your system tray, then go PHP > PHP extensions and click on php_tidy 来源: https://stackoverflow.com/questions/2704359/php-wamp-install-php-tidy

mysqld working but wampmysqld not starting up

落爺英雄遲暮 提交于 2020-01-15 09:10:36
问题 Following up from here: Wampserver icon not going green fully, mysql services not starting up? I can see that mysqld is working now. But wampmysqld is still not working as a service! d:\wamp\bin\mysql\mysql5.5.8\bin>mysqld.exe --console 130721 12:10:45 [Note] Plugin 'FEDERATED' is disabled. InnoDB: The InnoDB memory heap is disabled InnoDB: Mutexes and rw_locks use Windows interlocked functions InnoDB: Compressed tables use zlib 1.2.3 130721 12:10:45 InnoDB: Initializing buffer pool, size =

How to resolve mysql port 3306 error on wamp?

和自甴很熟 提交于 2020-01-15 03:37:07
问题 I am getting following error when I test mysql port 3306: ***** Test which uses port 3306 ***** ===== Tested by command netstat filtered on port 3306 ===== Port 3306 is not found associated with TCP protocol Port 3306 is not found associated with TCP protocol --- Do you want to copy the results into Clipboard? --- Type 'y' to confirm - Press ENTER to continue... I've tried many methods but it could not work. Apache is working fine but MySQL service is not able to start. Wamp icon is orange

WAMPSERVER2.2 无法启动的解决!

偶尔善良 提交于 2020-01-12 09:16:35
  这段时间在学习PHP网站建设,一直都在用WAMPServer2.2网站服务器,使用起来很方便,而且WAMPServer2.2还配置了XDEBUG调试工具,无需自己安装其他插件就可以正常使用了,一直用起来很顺手。可是今天我来到网吧上网,准备调试一个小程序,一安装WAMPServer2.2就发现安装完后无法启动了。出现状况是这样的:点击桌面WAMPServer图标准备启动网站服务器,任务栏右下角WAMPServer图标闪了一下就消失了,没能启动起来。看了一下本机电脑的端口,80和3306端口都未被占用,很是纳闷。在网上查了一下其他出现相关原因的资料,弄了好半天没能解决。于是想WAMPServer2.2版本用不了就用WAMPServer2.1试试看能不能用,天是卸载了再装上WAMPServer2.1,竟然可以正常使用,没什么毛病,我又郁闷了,WAMPServer2.1都可以使用那么怎么WAMPServer2.2用不了。于是又WAMPServer2.1卸载了装上WAMPServer2.2,一样的情况,还是启动不了。我放弃了,装备在WAMPServer2.1装上个XDEBUG插件,在装XDEBUG插件的时候才突然想起来,XDEBUG的DLL分VC6和VC9编译的,看了一下PHP.ini文件,XDEBUG配置信息如下: zend_extension = "c:/wamp/bin/php

how to allow ACCESS-CONTROL-ALLOW-ORIGIN aka cross-domain on wampserver

江枫思渺然 提交于 2020-01-10 08:24:18
问题 XMLHttpRequest cannot load https://webservice.com?param=hahah. Origin http://{domain} is not allowed by Access-Control-Allow-Origin. I get this when I try to make a webservice call through wampserver, how could I enable this on wampserver? or how may i just jsonP to obtain xml data without javascript throwing an error. 回答1: You have to enable the headers module first, like so : click on the wamp icon in your systray go to Apache > Apache modules check the option 'headers_module' And then

php问题:The requested URL /01/Untitled-2.php was not found on this server.

强颜欢笑 提交于 2020-01-10 05:23:22
php问题:The requested URL /01/Untitled-2.php was not found on this server. 出现这个问题基本上是因为你的Apache没有配置好,想要解决这个问题也是十分的简单,但是也是十分的重要,因为这将是你开始学习PHP必须要解决的问题 解决方法是打开wampserver打开Apache的httpd.conf(要想学习PHP必须要安装wampserver或者其他的软件,因为wampserver有Apache和MySQL服务,因此选择一个wampserver来代替分开的Apache和MySQL) 找到 documentroot和directory,把他们的路径修改成站点的文件位置,记住是小写的d盘,然后再找到 httpd-vhosts.conf, 同样把documentroots和directory改成站点文件,保存以后重启restart all services, 然后再刷新网页或者重新输入localhost/index.php,然后回车 这只是我们打开PHP世界的第一步,标志着我们踏入了PHP,但是我们还要再继续努力才能掌握这门语言。 来源: CSDN 作者: qq_43453283 链接: https://blog.csdn.net/qq_43453283/article/details/103914228

Wamp icon is orange

北城余情 提交于 2020-01-09 13:05:10
问题 First, I must say that I'm totally beginner. I installed Wamp server 2 verison (I have XP) but the icon is orange. I have found somewhere that problem is probably in Apache because something using port 80 (probably my skype). Does anyone know how to change that? 回答1: What worked for me: Shut down both WAMP and Skype Launch WAMP Launch Skype 回答2: Apex is spot on, I don't know how many times I forget about Skype/WAMP conflicting. As an addition to Apex's answer you can also tell Skype not to

Windows 10 PDOException with message 'could not find driver' Laravel 5.6.33 Wampserver 3.1.7 x86

本秂侑毒 提交于 2020-01-07 09:19:50
问题 I know there is a lot on this topic around StackOverflow, but my problem is that i have php extensions already uncommented, i have made the required changes to database.php and .env and i have declared and used the necessary environment path. The only thing i haven't done is install composer due to my proxy restrictions. I have a proxy that is over a kerberos windows AD, and for some reason nothing that used to work with proxy address, port and credentials (user and password) is working