General :: Trying To Test PHP Connectivity To Postgresql 8.3.9 Setup

Aug 4, 2010

I'm learning via baptism by fire method here, and need to test PHP connectivity to a local postgresql 8.3.9 setup. (CentOS 5.5 x86_64). I have got PHP and Postgres both working; I can pull up a test PHP page via web browser, and I can login to postgres via the command line. What I can't figure out is how to test PHP connectivity to the local DB.

I found this test script:
$conn = pg_connect ('dbname=template1');

Which I've named, testdb.php - when I run ./testdb.php from the CLI though, I get:
./testdb.php: line 2: ?php: No such file or directory
./testdb.php: line 3: syntax error near unexpected token '"dbname=template1"'
./testdb.php: line 3: `$database=pg_connect ("dbname=template1");'

I've seen a LOT of pages describing the internal code of the PHP file, but as a newb to this, I don't know how to execute this test. I've ran chmod 755 against the file to verify permissions, but this didnt effect the results. I've also done a "chmod +x testdb.php"
PHP 5.1.6 (cli) (built: Mar 31 2010 02:39:17)

I realized I wasn't doing this:
php testdb.php
but when I do, I get this error message now:
"PHP Fatal error: Call to undefined function pg_connect() in /var/www/html/testdb.php on line 3"

View 9 Replies


Networking :: Any Tool To Test Website With Slow Connectivity?

Mar 8, 2010

Any tool where I can test a web site with slow connectivity? E.g.:
A web server running at Location A
and from Location B want to test the web site hosted at location A with various speeds
How is the loading of the web site from location B at 256kbps, 512mbps etc..

View 6 Replies View Related

General :: Setup A Development Test Zone On A Live Apache Server?

Mar 12, 2010

I have dedicated LAMP server running and I was wondering if I am able to run a dev/testing zone on it so to speak?...That way, I can have my come back soon, site is being constructed page live, and develop elsewhere on the server. I was trying a virtualhost, but since that is name based, the web browsers don't know what to do with it. I know the safest way is to develop on this machine then move to web server but I'm just seeing if what I was trying to do is possible.

View 4 Replies View Related

OpenSUSE Network :: Xen NAT Setup In 11.2 - No Basic Connectivity?

Feb 21, 2010

I am experimenting with Xen with the standard kernel (kernel-xen package) and utilities. I already got bridged setup to work with a single domU, but found out that because of my wireless card I cannot expect bridging to work when connected wirelessly. Now I am trying a NAT setup but I cannot seem to get any network connection from the domU to the dom0 and viceversa. Comparing the network devices and routing tables of others, I cannot see any problem.

The domU runs with IP and the dom0 has a vif with IP with a default gateway of Pinging from the domU to the dom0 and viceversa does not show any traffic at all when I use tcpdump to monitor eth0 in the domU or the vif interface in dom0. It seems that basic connectivity of the vif interface and eth0 in the domU does not work. Any tips on how to debug this problem?

View 1 Replies View Related

Debian :: Virtualbox Setup - No Internet Connectivity By Default?

Jul 9, 2011

I'm coming from CentOS background and it's first time using Debian and currently stuck with setting up a working Virtualbox Debian Guest installation

Problem 1: no internet connectivity by default, but internet works fine from within the virtualbox Debian Guest OS if i use debian's internet browser

Problem 2: only internal ip works (NAT) while my 2nd host only adaptor doesn't work out of the box

With CentOS all i needed to do it get it all working was when creating new guest on Virtualbox is setup 2 NICs, first one is NAT and second one is host-only adaptor. After installation, i can connect to internet and also from host OS connect to guest CentOS via ip. But with Debian 64bit i defined both NAT and host-only adaptors, and out the box, only is defined.

Default /etc/network/interfaces
root@debian1:/etc/network# cat interfacesbackup.txt
# This file describes the network interfaces available on your system


View 1 Replies View Related

Ubuntu :: Teamspeak 3 Server Connectivity - Unable To Get Network Setup Correctly To Allow People To Connect Externally From My LAN?

Jan 21, 2011

I have Ubuntu 10.04 x86 installed, trying to get teamspeak 3 beta30.I have followed this guide:

And can not get my network setup correctly to allow people to connect externally from my LAN. I have forwarded every relevant port I could find to the computer hosting TS, I forwarded them first as their respective protocols, and then as the combined UDP/TCP. I tried Forwarding single port numbers, and then port ranges.I have also tried uninstalling selinux.I have tried connecting directly to my cable modem with the server.I had this working perfectly three months ago with all the same software, using the same guide I listed above.The only thing I can imagine has changed is my operating system itself with system updates.

My network looks like:

Comcast cable modem--->Netgear WNR3500L Router----->Ubuntu 10.04 x86 desktop edition

what else I could possibly check? I can connect to and manage the TS server fine using localhost:9987 or 192.168.1.x:9987, it just wont allow any connections from outside the network.

View 4 Replies View Related

General :: Execute Scen-20-test And Vbr-20-test In Ns-allinone-2.34?

Mar 26, 2011

I have created mobility of 20 nodes and vbr traffic using following attached script I executed the file as ns234 vbr.tcl I got the and vbr.nam but I was unable to load the graph using matlab <trgraph> I thought problem with is vbr.tcl script.

View 1 Replies View Related

Networking :: Test Lab Setup With Squid And 2 NICs

Oct 13, 2010

My current setup is a slack based distro with Squid 3.0 running in transparent mode with WCCP. Web filtering and AV scanning works great but we need to go a step further and introduce port filtering into the setup. I can easily accomplish this with iptable entries but only if I point to the proxy directly; the goal is to do this completely by interception. So far I've had no luck doing this with iptable entries or with squid ACL's and I am wondering if there's something that I am missing or just not doing correctly. So far during testing I've just been testing with common IM chat ports such as MSN and Yahoo. I am currently trying to setup a test lab with squid and 2 NICs with one NIC connected directly to the internet but this is not a route I would like to go.

View 1 Replies View Related

Slackware :: Choosing Hardware For A Test Setup?

Mar 17, 2010

I'm designing a multi-machined system that is supposed to resemble a failover redundant web&&databaseserver. I think I have the theory pretty well figured out (which means I'll run into a lot of unexpected problems )... but my concern is this:

I need some extra hardware, and I can buy three PII's for almost no money, or a couple of PIII's that cost apiece what the PII's cost in total. Is there a good reason to choose one over the other? One day in the distant future the setup will go live on x64 hardware. So I'm hoping to transport as much of the configuration of the test setup to the new setup. Would that be a concern somehow?

EDIT: Maybe I should explain, it does not really have to perform in any sense, but prove workload gets evenly distributed between two (or more) machines and that it can handle it if the plug gets pulled from a machine.

View 2 Replies View Related

Ubuntu :: Setup A Local Web Server To Test PHP Pages?

Aug 11, 2010

I have downloaded the Apache web server so I can set up a local web server to test my PHP pages. The download automatically went into the default "Downloads" folder instead of the /opt folder where the Apache instructions said to download the file to. I have tried to move the file from the Downloads folder to the /opt folder but am denied access - says I don't have enough privileges (or some such thing?). Bummer.

So I tried to use the terminal to install the file that I downloaded from Apache (following their instructions - actually copied/pasted the command line so there would be no typo problem) - no joy.

The first thing I was instructed to do was to enter the su command, which I did, and was asked for a password. I have tried every password I have ever used on this system and I receive the following:

su: Authentication failure

and it returns me to the prompt. What is my password?

I checked the archives for similar problems and came up with zero relevant hits.

View 9 Replies View Related

Hardware :: Network Printer Setup - Eth PC Only Prints Test Page

Jul 22, 2009

I have 2 pc connected to a HP officejet j6480 1 pc connect by usb the other is eth via a router. The eth pc will not print anything but a test page. It it open a print box but won't give a option to print. The other pc is also on the same router. USB print fine.

View 1 Replies View Related

Ubuntu Networking :: AR5001 Chipset - Wireless Networking Randomly Loses Connectivity And Can Not Regain Connectivity

Jun 25, 2011

Wife's laptop has AR5001 Wireless Adapter laptop model is Toshiba Satellite A215

Problem : Wireless networking randomly loses connectivity and can not regain connectivity, the only apparent solution is a full power down , this is not even certain to work. The card works under Windows, she hates Windows. (I love her for this) I know it's not faulty hardware , because it will work for days on end under Windows without problems.

Things I've tried : madwifi drivers (any and all versions available) : These increase stability of the signal and seem to delay the inevitable however it still happens. When using these drivers the only option is to unload them modprobe -r then reboot then remove them again and re add them. It makes no sense why this works, and if I don't remove them prior to rebooting it will not work.

ATH5K drivers : These are pretty much junk, results are unpredictable at best, sometimes it will work perfectly for a few hours, sometimes it will not work at all. Nothing is repeatable, I can't seem to force whatever condition is causing this. rfkill does not show the wifi being blocked (hard or soft), unblocking it anyway does nothing, only way to make this work and it's iffy is to fully power down wait 5-10 minutes turn it back on and it MAY decide to work.

Firmware update : Updated the Toshiba BIOS to the latest version of the firmware 2.0 no joy here either. Same issue both sets of drivers.

Tried different distros and kernels : I've tried Mint 9, 10 ,11 ; Ubuntu 10.10, 10.04 , 9.10 and 11.04 (which is currently installed) , Fedora and OpenSUSE. All are giving the same problems. I have also tried a slew of different kernels no joy from any of them (I'm not at the computer with the issue now I will post exactly what kernel versions I've used when I have access to the machine).

Another useful bit of information, the hard switch to disable/enable wifi WILL disable it but turning it back on does absolutely nothing. The hotkey does nothing at all. The bios does not have an option to disable or enable the wireless card.

I will also post the typical lsmod , lspci , iwconfig all that good stuff when I get back to the computer in question. I'm probably just going to buy a PC card for it and give up on that one, but this is driving me insane and I would really like to see it resolved even if I do replace the hardware.

View 3 Replies View Related

General :: Sharing Postgresql Database

Oct 1, 2010

Am using mandriva 2008 i developed one simple application using cross platform = Qt3 Database = PostgreSQL

I want to share my database over peer to peer network.

server ip =
client ip =

Now how to share data over those ip?

View 1 Replies View Related

General :: Postgresql 9 En OpenSuse 11.3 Starting Failed

Jan 8, 2011

Postgresql 9 en OpenSuse 11.3 Starting Failed


View 17 Replies View Related

General :: Uninstall Postgresql On System Redhat?

Nov 5, 2010

I want to uninstall Postgresql on LINUX redhat. I have installed it from source. how do i do it?

View 5 Replies View Related

General :: Shell Script To Back Up A Postgresql Database?

Jun 4, 2010

I need a shell script to back up and restore a postgresql database.

View 1 Replies View Related

General :: How To Start Postgresql Server Automatically When Boot?

Aug 5, 2010

I'm wondering how I start it automatically when I boot up the ubuntu 10.04? especially, when I created the user "postgres", I set a password to it. every time I issued "su - postgres" command, I need to give it a password.

View 2 Replies View Related

General :: PostgreSQL Service Failed To Start Or Stop

Jan 6, 2010

I am using RHEL 5.0. I am having problem with postgresql service it is not starting, not stopping, not restarting.

View 5 Replies View Related

Fedora Servers :: Several Postfix - Test Antivirus Scan Using Eicar Test Virus ?

Apr 8, 2009

I have installed Postfix + Amavisd-new, then I am started all services (and configured and to use amavis).

The questions are:

1) I am trying to test antivirus scan using eicar test virus


And the message is successfully delivered to mailbox with mark "CLEAN" in maillog. But I cant see any attachment using


Where is my mistake?

2) Should I update clam and how I can do it?

3) Is spamassassin enabled by default in amavis (I have started daemon)?

4) Where configuration files of spamassassin is stored?

View 1 Replies View Related

Ubuntu Installation :: Warning - Can't Create Test File /var/lib/mysql/mosty.lower-test

Mar 15, 2010

I am trying to install mysql i downloaded the binary package, i extracted it and then followed the instructions that were in the manual but i keep getting this error when running this command


scripts/mysql_install_db --basedir=/home/mosty/mysql

the error is


Installing MySQL system tables...
100315 20:07:27 [Warning] Can't create test file /var/lib/mysql/mosty.lower-test
100315 20:07:27 [Warning] Can't create test file /var/lib/mysql/mosty.lower-test


You can try to start the mysqld daemon with:

shell> /home/mosty/mysql/bin/mysqld --skip-grant &

and use the command line tool /home/mosty/mysql/bin/mysql to connect to the mysql database and look at the grant tables:

shell> /home/mosty/mysql/bin/mysql -u root mysql
mysql> show tables

View 1 Replies View Related

General :: [CentOs - Cluster Suite] Works For IP But Not For Tomcat , Postgresql / Sort It?

May 18, 2010

I have made a cluster between two server.

In luci I can see that my cluster is green and the two nodes to.
I have make an IP resource and associate it to a service : green : I can relocate the service from a node to the other one and the IP appears in the list of IP addresses

The problem is that I have made the same in order to configure tomcat and postgresql and it does not work...

I put my configuration only for ip and tomcat:

My host configuration code...

View 4 Replies View Related

General :: Share Internet Connectivity To Another NIC?

Apr 25, 2011

I would like to share my internet connectivity on eth0 with another computer on eth1.

+-----------+ +-----------+ +-----------+
| | | | | |
|ADSL Router|-------------| Computer |-------------|NFS Client |
| | eth0| |eth1 | |
| | dhcp| |static | |
+-----------+ +-----------+ +-----------+

How can i maintain this network topology and allow internet connectivity with dns across my main computer?

View 3 Replies View Related

General :: AT Command For GPRS Connectivity?

Dec 7, 2010

I read that "ATDT*99#" is used to create a GPRS connection through a GSM/GPRS modem how exactly this AT command works.

View 4 Replies View Related

General :: Wireless Connectivity To BTHomehub

Dec 28, 2010

My reinstalled OS Linux Lite ( version 1.0.9.E) connects fine with cable but Broadband BT hub does not support the protocol for wireless.Is there a Linux download which will solve this?

View 7 Replies View Related

General :: Internet Connectivity Via Dial-up Connection

Feb 17, 2009

I'm using Linux Mandrake 9.0 on my Dell 750MHz laptop. Linux is not making a dial-up connection, but modem test showed passed. Is there any utility to fix this problem. I have to often use dial-up connection.

View 1 Replies View Related

General :: No Wifi And Ethernet Connectivity On Ubuntu 9.10 / Get Those?

Jan 4, 2011

I have a Toshiba Satellite L55 S5105 Laptop with "Atheros AR8152 PCI-E fast ethernet controller"
and "Realtek RT8188CE Wireless LAN 802.11n PCI-E "

I have ubuntu9.10 running on this[dual boot].
For some reason there is no wifi and ethernet connectivity.

Are the drivers not installed? where and how do I start to troubleshoot this problem.

View 4 Replies View Related

General :: Shell Script For Testing Connectivity Via URL?

Aug 5, 2010

I have comma separated file containing 3 fields:

Example of file is

Now i want to test every URL connectivity from my server by executing it using shell script and if url gives back response it shows output as "OK" in green color and if url is not responding it shows "NOT CONNECTED" in red color.

Output will be like following:

Sony 52525 OK

View 2 Replies View Related

General :: Single Disk Space Quota Across Home Directories And Relational Databases (MySQL, PostgreSQL)?

Jun 10, 2011

Relational databases usually have their data over in /var/lib/something. Users are in /home (with data in /var/www). How can I apply a single total disk space quota across all of these independent software systems (file systems, RDBMS, etc.)?

P.S. There's a bet going on around me as to just how awesome SU is. Let's see what you've got.

View 1 Replies View Related

General :: Connectivity With Laptop Showing New Dd-wrt - Old Connection Disappeared

Oct 11, 2010

Our laptop all of a sudden will not connect with our usual wifi network connection which has disappeared & now mysteriously shows dd-wrt . It shows an internet connection has been establihed with dd-wrt but does not work.

View 1 Replies View Related

General :: JDBC Connectivity (From Java To MySQL Database)

Apr 22, 2011

I have installed open suse linux 11.3. I have mysql database and jdk How do I connect from java to mysql database?

View 2 Replies View Related

Copyrights 2005-15, All rights reserved