title: pgsql.so is not loaded in PHP
body: <p>I've been tasked to create a PHP app which accesses an existing PostgreSQL database. This is my first time working with Postgre, not to mention the PHP has already been installed in the Linux box on which the app is supposed to run. I have no experience setting up this stuff, I just code.</p>
  
  <p>My question is that I can't seem to get the Postgre extension working in PHP. I checked the php.ini file, there were no "extension=..." lines. So I added "extension=pgsql.so". I then checked the "extension_dir" and found that there were only 2 files in there (ldap.so, phpcups.so), I added a pgsql.so file taken from another Linux box. I restarted httpd. And it does not work. I couldn't find any "pgsql" or "postgre" in phpinfo().</p>
  
  <p>Forgive my noobness. I know too little Linux. I would really appreciate it if you can point me to the right direction.</p>
  
  <hr>
  
  <p>I used the suggestion given by number5:</p>
  
  <p>Dude, I'm on RedHat. I used the "yum" version of the command you gave, and I got this:</p>
  
  <p>[root@perseus ~]# yum install php-pgsql
  Loading "installonlyn" plugin
  Setting up Install Process
  Setting up repositories
  Could not retrieve mirrorlist <a href="http://mirrorlist.centos.org/?release=5&amp;arch=x86_64&amp;repo=extras" rel="noreferrer">http://mirrorlist.centos.org/?release=5&amp;arch=x86_64&amp;repo=extras</a> error was
  [Errno 4] IOError: 
  Error: Cannot find a valid baseurl for repo: extras</p>
  
  <hr>
  
  <p>UNFORTUNATELY, the Linux server I'm using is NOT connected to the Internet. Any other way to install?</p>