How to Search for Available PHP5 Modules on Fedora 16

PHP: Hypertext Preprocessor is a widely used, free and open-source server-side scripting language that was especially designed for web development to produce dynamic web pages and can be embedded into HTML. PHP applications are commonly found with the filename extensions .php, .php4, or .php5. PHP does not included in Fedora 16 with minimum type of installation. You have to install it manually if you really need it. Before start to install PHP, you can search for available PHP5 modules in the yum repository using the following command :

[root@fedora16 ~]# yum search php

or

[root@fedora16 ~]# yum search php | more
=============================== N/S Matched: php ===============================
cups-php.i686 : Common Unix Printing System - php module
eclipse-phpeclipse.noarch : PHP Eclipse plugin
gphpedit.i686 : A PHP source editor for GNOME 2
graphviz-php.i686 : PHP extension for graphviz
groonga-php.i686 : PHP language binding for groonga
ice-php.i686 : PHP runtime for developping Ice applications
ice-php-devel.i686 : PHP tools for developping Ice applications
kdevelop-php.i686 : Php language plugin for KDevelop
mod_suphp.i686 : An apache2 module for executing PHP scripts with the
               : permissions of their owners
nntpgrab-php.i686 : PHP module which allows PHP scripts to communicate with
                  : NNTPGrab
perl-PHP-Serialization.noarch : Converts between PHP's serialize() output and
                              : the equivalent Perl structure
php.i686 : PHP scripting language for creating dynamic web sites
php-Kohana.noarch : The Swift PHP Framework
php-LightweightPicasaAPI.noarch : A lightweight API for Picasa in PHP
php-PHPMailer.noarch : PHP email transport class with a lot of features
php-Smarty.noarch : Template/Presentation Framework for PHP
php-ZendFramework.noarch : Leading open-source PHP framework
php-ZendFramework-Search-Lucene.noarch : Apache Lucene engine PHP port
php-adodb.noarch : Database abstraction layer for PHP
php-bartlett-PHP-Reflect.noarch : Adds the ability to reverse-engineer PHP
php-bcmath.i686 : A module for PHP applications for using the bcmath library
php-captchaphp.noarch : PHP very user-friendly CAPTCHA solution
php-channel-pdepend.noarch : PHP Depend PEAR channel
php-channel-phpmd.noarch : PHP Mess Detector PEAR channel
php-channel-phpunit.noarch : Adds phpunit channel to PEAR
php-cli.i686 : Command-line interface for PHP
php-common.i686 : Common files for PHP
php-dba.i686 : A database abstraction layer module for PHP applications
php-deepend-Mockery.noarch : Mockery is a simple but flexible PHP mock object
                           : framework
php-devel.i686 : Files needed for building PHP extensions
php-digidoc.i686 : PHP bindings for libdigidocpp
php-doctrine-Doctrine.noarch : PHP Object Relational Mapper
php-domxml-php4-php5.noarch : XML transition from PHP4 domxml to PHP5 dom module
php-eaccelerator.i686 : PHP accelerator, optimizer, encoder and dynamic content
                      : cacher
php-email-address-validation.noarch : A PHP class for validating email addresses
php-embedded.i686 : PHP library for embedding in applications
php-ezc-Database.noarch : A lightweight database layer on top of PHP's PDO
php-ezc-File.noarch : Provides support for file operations which are not covered
                    : by PHP
php-facedetect.i686 : PHP extension to access the OpenCV library
php-fpdf.noarch : PHP class to generate PDF Files
php-fpdf-doc.noarch : Documentation for php-fpdf
php-fpm.i686 : PHP FastCGI Process Manager
php-gd.i686 : A module for PHP applications for using the gd graphics library
php-getid3.noarch : The PHP media file parser
php-gettext.noarch : Gettext emulation in PHP
php-hkit.noarch : Simple PHP5 API for extracting common microformats from a page
php-idn.i686 : PHP API for GNU LibIDN
php-imap.i686 : A module for PHP applications that use IMAP
php-interbase.i686 : A module for PHP applications that use Interbase/Firebird
                   : databases
php-intl.i686 : Internationalization extension for PHP applications
php-laconica.noarch : PHP tool for microblogging
php-layers-menu.noarch : Hierarchical PHP based DHTML menu system
php-ldap.i686 : A module for PHP applications that use LDAP
php-libdmtx.i686 : PHP bindings for libdmtx
php-libguestfs.i686 : PHP bindings for libguestfs
php-libpuzzle.i686 : PHP extension for libpuzzle
php-libvirt.i686 : PHP language binding for Libvirt
php-libvirt-doc.noarch : Document of php-libvirt
php-magickwand.i686 : PHP API for ImageMagick
php-manual-en.noarch : Documentation for the PHP programming language
php-mapi.i686 : The PHP MAPI extension by Zarafa
php-mapserver.i686 : PHP/Mapscript map making extensions to PHP
php-markdown.noarch : Markdown implementation in PHP
php-mbstring.i686 : A module for PHP applications which need multi-byte string
                  : handling
php-mcrypt.i686 : Standard PHP module provides mcrypt library support
php-mssql.i686 : MSSQL database module for PHP
php-mysql.i686 : A module for PHP applications that use MySQL databases
php-mysqlnd.i686 : A module for PHP applications that use MySQL databases
php-nusoap.noarch : SOAP Toolkit for PHP
php-oauth.noarch : PHP Authentication library for desktop to web applications
php-odbc.i686 : A module for PHP applications that use ODBC databases
php-pdb.noarch : PHP classes for manipulating Palm OS databases
php-pdepend-PHP-Depend.noarch : PHP_Depend design quality metrics for PHP
                              : package
php-pdo.i686 : A database access abstraction module for PHP applications
php-pear.noarch : PHP Extension and Application Repository framework
php-pear-Auth.noarch : Authentication provider for PHP
php-pear-Auth-OpenID.noarch : PHP OpenID
php-pear-Auth-radius.noarch : RADIUS support for php-pear-Auth
php-pear-Auth-samba.noarch : Samba support for php-pear-Auth
php-pear-Benchmark.noarch : Framework to benchmark PHP scripts or function calls
php-pear-CAS.noarch : Central Authentication Service client library in php
php-pear-Cache-Lite.noarch : Fast and Safe little cache system for PHP
php-pear-Console-Color.noarch : Easily use ANSI console colours from PHP
                              : applications
php-pear-Event-Dispatcher.noarch : Dispatch notifications using PHP callbacks
php-pear-HTML_Template_PHPLIB.noarch : PHP template system based on preg_*
php-pear-Log.noarch : Abstracted logging facility for PHP
php-pear-Net-Curl.noarch : OO interface to PHP's cURL extension
php-pear-Net-FTP.noarch : Provides an OO interface to the PHP FTP functions plus
                        : some additions
php-pear-Net-IDNA2.noarch : PHP library for punycode encoding and decoding
php-pear-PHP-CodeSniffer.noarch : PHP coding standards enforcement tool
php-pear-PHP-Compat.noarch : Provides missing functionality for older versions
                           : of PHP
php-pear-PhpDocumentor.noarch : The complete documentation solution for PHP
php-pear-PhpDocumentor-docs.noarch : Documentation for PhpDocumentor
php-pear-SOAP.noarch : Simple Object Access Protocol (SOAP) Client/Server for
                     : PHP
php-pear-Services-Twitter.noarch : PHP interface to Twitter's API
php-pear-XML-Parser.noarch : XML parsing class based on PHP's bundled expat
php-pecl-apc.i686 : APC caches and optimizes PHP intermediate code
php-pecl-gearman.i686 : PHP wrapper to libgearman
php-pecl-igbinary.i686 : Replacement for the standard PHP serializer
php-pecl-mailparse.i686 : PHP PECL package for parsing and working with email
                        : messages
php-pecl-mongo.i686 : PHP MongoDB database driver
php-pecl-oauth.i686 : PHP OAuth consumer extension
php-pecl-parsekit.i686 : PHP Opcode Analyser
php-pecl-rrd.i686 : PHP Bindings for rrdtool
php-pecl-selinux.i686 : SELinux binding for PHP scripting language
php-pecl-xdebug.i686 : PECL package for debugging PHP scripts
php-pgsql.i686 : A PostgreSQL database module for PHP
php-php-gettext.noarch : Gettext emulation in PHP
php-phpSmug.noarch : PHP wrapper for the SmugMug API
php-phpmd-PHP-PMD.noarch : PHPMD - PHP Mess Detector
php-phpunit-DbUnit.noarch : DbUnit port for PHP/PHPUnit
php-phpunit-PHP-CodeBrowser.noarch : PHP_CodeBrowser for integration in Hudson
                                   : and CruiseControl
php-phpunit-PHP-CodeCoverage.noarch : PHP code coverage information
php-phpunit-PHP-Timer.noarch : PHP Utility class for timing
php-phpunit-PHP-TokenStream.noarch : Wrapper around PHP tokenizer extension
php-phpunit-PHPUnit.noarch : The PHP Unit Testing framework
php-phpunit-PHPUnit-MockObject.noarch : Mock Object library for PHPUnit
php-phpunit-PHPUnit-Selenium.noarch : Selenium RC integration for PHPUnit
php-phpunit-bytekit.noarch : A command-line tool built on the PHP Bytekit
                           : extension
php-phpunit-phpcpd.noarch : Copy/Paste Detector (CPD) for PHP code
php-phpunit-phpdcd.noarch : Dead Code Detector (DCD) for PHP code
php-phpunit-phploc.noarch : A tool for quickly measuring the size of a PHP
                          : project
php-process.i686 : Modules for PHP script using system process interfaces
php-pspell.i686 : A module for PHP applications for using pspell interfaces
php-recode.i686 : A module for PHP applications for using the recode library
php-redland.i686 : PHP modules for the Redland RDF library
php-shout.i686 : PHP module for communicating with Icecast servers
php-simplepie.noarch : Simple RSS Library in PHP
php-snmp.i686 : A module for PHP applications that query SNMP-managed devices
php-soap.i686 : A module for PHP applications that use the SOAP protocol
php-swift-Swift.noarch : Free Feature-rich PHP Mailer
php-symfony-symfony.noarch : Open-Source PHP Web Framework
php-tidy.i686 : Standard PHP module provides tidy library support
php-voms-admin.noarch : Web based interface to control VOMS parameters written
                      : in PHP
php-xapian.i686 : Files needed for developing PHP scripts which use Xapian
php-xml.i686 : A module for PHP applications which use XML
php-xmlrpc.i686 : A module for PHP applications which use the XML-RPC protocol
php-xmpphp.noarch : XMPPHP is the successor to Class.Jabber.PHP
php-zipstream.noarch : Streaming dynamic zip from PHP without writing to the
                     : disk
phpFlickr.noarch : PHP client for the Flickr web service
phpTodo.noarch : PHP todo list manager
phpdoc.noarch : Command-line utility for PhpDocumentor
phpesp.noarch : PHP-based survey web application
rrdtool-php.i686 : PHP RRDtool bindings
sphinx-php.i686 : PHP API for Sphinx
syck-php.i686 : YAML module for php
uuid-php.i686 : PHP support for Universally Unique Identifier library
zorba-php.i686 : PHP language binding for zorba
bouml.i686 : UML2 tool box for C++, Java, IDL, PHP and Python
entertrack.noarch : Web-based artifact tracking/management system written in PHP
lighttpd-fastcgi.i686 : FastCGI module and spawning helper for lighttpd and PHP
                      : configuration
limph.noarch : A PHP5-compatible network host/service poller with web interface
php-IDNA_Convert.noarch : Provides conversion of internationalized strings to
                        : UTF8
php-ZendFramework-Auth-Adapter-Ldap.noarch : Zend Framework LDAP Authentication
                                           : Adapter
php-ZendFramework-Cache-Backend-Apc.noarch : Zend Framework APC cache backend
php-ZendFramework-Cache-Backend-Memcached.noarch : Zend Framework memcache cache
                                                 : backend
php-ZendFramework-Captcha.noarch : Zend Framework CAPTCHA component
php-ZendFramework-Db-Adapter-Firebird.noarch : Zend Framework database adapter
                                             : for InterBase
php-ZendFramework-Db-Adapter-Mysqli.noarch : Zend Framework database adapter for
                                           : mysqli
php-ZendFramework-Dojo.noarch : Zend Framework Dojo Toolkit integration
                              : component
php-ZendFramework-Feed.noarch : Live syndication feeds helper
php-ZendFramework-Gdata.noarch : Google Data APIs
php-ZendFramework-Ldap.noarch : Basic LDAP operations API
php-ZendFramework-Pdf.noarch : PDF file handling helper
php-ZendFramework-Services.noarch : Web service APIs for a number of providers
php-ZendFramework-Soap.noarch : SOAP web services server part helper
php-ZendFramework-demos.noarch : Demos for the Zend Framework
php-ZendFramework-extras.noarch : Zend Framework Extras (ZendX)
php-bartlett-PHP-CompatInfo.noarch : Find out version and the extensions
                                   : required for a piece of code to run
php-channel-bartlett.noarch : Adds bartlett channel to PEAR
php-channel-deepend.noarch : Survive The Deep End PEAR Channel
php-channel-doctrine.noarch : Adds doctrine project channel to PEAR
php-channel-ezc.noarch : Adds eZ Components channel to PEAR
php-channel-horde.noarch : Adds pear.horde.org channel to PEAR
php-channel-htmlpurifier.noarch : Adds htmlpurifier channel to PEAR
php-channel-pearplex.noarch : Adds the PearPlex channel to PEAR
php-channel-phing.noarch : Adds phing channel to PEAR
php-channel-swift.noarch : Adds swift mailer project channel to PEAR
php-channel-symfony.noarch : Adds symfony project channel to PEAR
php-enchant.i686 : Human Language and Character Encoding Support
php-ezc-Archive.noarch : A component for create, modify, and extract archive
                       : files of various formats
php-ezc-Authentication.noarch : Support for different means of identification
                              : and authentication
php-ezc-AuthenticationDatabaseTiein.noarch : Provides a Database filter for the
                                           : Authentication component
php-ezc-Base.noarch : Provides the basic infrastructure that all packages rely
                    : on
php-ezc-Cache.noarch : Provides a collection of lightweight classes to cache
                     : different kinds of data
php-ezc-Configuration.noarch : A component that allows you to use configuration
                             : files in different formats
php-ezc-ConsoleTools.noarch : A set of classes to do different actions with the
                            : console
php-ezc-DatabaseSchema.noarch : A set of classes that allow you to use
                              : information from a database schema
php-ezc-EventLog.noarch : Allows you to log events or audit trails
php-ezc-EventLogDatabaseTiein.noarch : Contains the database writer backend for
                                     : the EventLog component
php-ezc-Feed.noarch : This component handles parsing and creating RSS1, RSS2 and
                    : ATOM feeds
php-ezc-Graph.noarch : A component for creating pie charts, line graphs and
                     : other kinds of diagrams
php-ezc-Mail.noarch : A component construct and/or parse Mail messages
                    : conforming to the mail standard
php-ezc-PersistentObject.noarch : A component for store an arbitrary data
                                : structures to a fixed database table
php-ezc-PersistentObjectDatabaseSchemaTiein.noarch : Automatic generation of
     ...: PersistentObject from DatabaseSchema definitions
php-ezc-SystemInformation.noarch : Provides access to common system variables
php-ezc-Template.noarch : A fully functional Templating system
php-ezc-Webdav.noarch : Set up and run your own WebDAV server
php-feedcreator.noarch : Create RSS feeds
php-geshi.noarch : Generic syntax highlighter
php-horde-Horde-Exception.noarch : Horde Exception Handler
php-horde-Horde-Nls.noarch : Native Language Support (NLS)
php-horde-Horde-Translation.noarch : Horde translation library
php-horde-Horde-Url.noarch : Horde Url class
php-horde-Horde-Util.noarch : Horde Utility Libraries
php-pear-Auth-RADIUS.noarch : Wrapper Classes for the RADIUS PECL
php-pear-Auth-SASL.noarch : Abstraction of various SASL mechanism responses
php-pear-Auth-Yubico.noarch : Authentication class for verifying Yubico OTP
                            : tokens
php-pear-Auth_HTTP.noarch : Class providing HTTP authentication methods
php-pear-Cache.noarch : Framework for caching of arbitrary data
php-pear-CodeGen.noarch : Framework to create code generators that operate on
                        : XML descriptions
php-pear-CodeGen-PECL.noarch : Tool to generate PECL extensions from an XML
                             : description
php-pear-Console-CommandLine.noarch : A full featured command line options and
                                    : arguments parser
php-pear-Console-Getargs.noarch : Command-line arguments and parameters parser
php-pear-Console-ProgressBar.noarch : This class provides you with an
                                    : easy-to-use interface to progress bars
php-pear-Console-Table.noarch : Class that makes it easy to build console style
                              : tables
php-pear-Crypt-Blowfish.noarch : Quick two-way blowfish encryption
php-pear-Crypt-CHAP.noarch : Class to generate CHAP packets
php-pear-DB.noarch : PEAR: Database Abstraction Layer
php-pear-DB-DataObject.noarch : An SQL Builder, Object Interface to Database
                              : Tables
php-pear-DB-DataObject-FormBuilder.noarch : Automatically build HTML_QuickForm
                                          : objects
php-pear-DB-QueryTool.noarch : An OO-interface for easily retrieving and
                             : modifying data in a DB
php-pear-Date.noarch : Date and Time Zone Classes
php-pear-Date-Holidays.noarch : Driver based class to calculate holidays
php-pear-Date-Holidays-USA.noarch : Driver based class to calculate holidays in
                                  : USA
php-pear-File.noarch : Common file and directory routines
php-pear-File-Bittorrent2.noarch : Decode and Encode data in Bittorrent format
php-pear-File-Find.noarch : Class which facilitates the search of filesystems
php-pear-File-Passwd.noarch : Manipulate many kinds of password files
php-pear-File-SMBPasswd.noarch : Class for managing SAMBA style password files
php-pear-HTML-Common.noarch : Base class for other HTML classes
php-pear-HTML-QuickForm.noarch : Class for creating, validating, processing HTML
                               : forms
php-pear-HTML-QuickForm-ElementGrid.noarch : Meta-element which holds any other
                                           : element in a grid
php-pear-HTML-QuickForm-advmultiselect.noarch : Element for HTML_QuickForm that
                                              : emulate a multi-select
php-pear-HTML-Table.noarch : Class to easily design HTML tables
php-pear-HTML-Template-IT.noarch : Integrated Templates
php-pear-HTML_Javascript.noarch : Class for creating simple JS scripts
php-pear-HTTP.noarch : Miscellaneous HTTP utilities
php-pear-HTTP-Client.noarch : Easy way to perform multiple HTTP requests and
                            : process their results
php-pear-HTTP-OAuth.noarch : Implementation of the OAuth spec
php-pear-HTTP-Request.noarch : Provides an easy way to perform HTTP requests
php-pear-HTTP-Request2.noarch : Provides an easy way to perform HTTP requests
php-pear-HTTP-Upload.noarch : Secure managment of files submitted via HTML Forms
php-pear-Image-Canvas.noarch : Common interface to image drawing
php-pear-Image-Color.noarch : Manage and handles color data and conversions
php-pear-Image-Graph.noarch : Displays numerical data as a graph/chart/plot
php-pear-Image-GraphViz.noarch : Interface to AT&T's GraphViz tools
php-pear-MDB2.noarch : Database Abstraction Layer
php-pear-MDB2-Driver-mysql.noarch : MySQL MDB2 driver
php-pear-MDB2-Driver-mysqli.noarch : MySQL Improved MDB2 driver
php-pear-MDB2-Driver-pgsql.noarch : PostgreSQL MDB2 driver
php-pear-MDB2-Schema.noarch : Database Abstraction Layer
php-pear-Mail.noarch : Class that provides multiple interfaces for sending
                     : emails
php-pear-Mail-Mime.noarch : Classes to create MIME messages
php-pear-Mail-mimeDecode.noarch : Class to decode mime messages
php-pear-Math-Stats.noarch : Classes to calculate statistical parameters
php-pear-Net-DIME.noarch : Implements Direct Internet Message Encapsulation
                         : (DIME)
php-pear-Net-DNS.noarch : Resolver library used to communicate with a DNS server
php-pear-Net-IPv4.noarch : IPv4 network calculations and validation
php-pear-Net-POP3.noarch : Provides a POP3 class to access POP3 server
php-pear-Net-Ping.noarch : Execute ping
php-pear-Net-SMTP.noarch : Provides an implementation of the SMTP protocol
php-pear-Net-Sieve.noarch : Handles talking to a sieve server
php-pear-Net-Socket.noarch : Network Socket Interface
php-pear-Net-Traceroute.noarch : Execute traceroute
php-pear-Net-URL.noarch : Easy parsing of URLs
php-pear-Net-URL-Mapper.noarch : Simple and flexible way to build nice URLs for
                               : web applications
php-pear-Net-URL2.noarch : Class for parsing and handling URL
php-pear-Net-UserAgent-Detect.noarch : Extract information from an HTTP user
                                     : agent
php-pear-Numbers-Roman.noarch : Provides methods for converting to and from
                              : Roman Numerals
php-pear-Numbers-Words.noarch : Methods for spelling numerals in words
php-pear-OLE.noarch : Package for reading and writing OLE containers
php-pear-PEAR-Command-Packaging.noarch : Create RPM spec files from PEAR modules
php-pear-PHP-CompatInfo.noarch : Find out version and extensions required for a
                               : piece of code to run
php-pear-Pager.noarch : Data paging class
php-pear-Payment-Process.noarch : Unified payment processor
php-pear-Services-Weather.noarch : This class acts as an interface to various
                                 : online weather-services
php-pear-Spreadsheet-Excel-Writer.noarch : Package for generating Excel
                                         : spreadsheets
php-pear-Structures-DataGrid.noarch : Tabular structure for converting data
php-pear-Structures-DataGrid-DataSource-Array.noarch : DataSource driver using
                                                     : arrays
php-pear-Structures-DataGrid-DataSource-DataObject.noarch : DataSource driver
     ...: using PEAR::DB_DataObject
php-pear-Structures-DataGrid-DataSource-MDB2.noarch : DataSource driver using
     ...: PEAR::MDB2 and an SQL query
php-pear-Structures-DataGrid-DataSource-RSS.noarch : DataSource driver using RSS
                                                   : files
php-pear-Structures-DataGrid-Renderer-Pager.noarch : Renderer driver using
                                                   : PEAR::Pager
php-pear-Structures-DataGrid-Renderer-Smarty.noarch : Renderer driver using
                                                    : Smarty
php-pear-Text-Diff.noarch : Engine for performing and rendering text diffs
php-pear-Validate.noarch : Validation Class for Various Data Types
php-pear-Validate-Finance-CreditCard.noarch : Validation class for Credit Cards
php-pear-Var-Dump.noarch : Provides methods for dumping structured information
                         : about a variable
php-pear-XML-Beautifier.noarch : Class to format XML documents
php-pear-XML-RPC2.noarch : XML-RPC client/server library
php-pear-XML-RSS.noarch : RSS parser
php-pear-XML-Serializer.noarch : Swiss-army knife for reading and writing XML
                               : files
php-pear-phing.noarch : A project build system based on Apache Ant
php-pecl-apc-devel.i686 : APC developer files (header)
php-pecl-geoip.i686 : Extension to map IP addresses to geographic places
php-pecl-gmagick.i686 : Provides a wrapper to the GraphicsMagick library
php-pecl-igbinary-devel.i686 : Igbinary developer files (header)
php-pecl-imagick.i686 : Provides a wrapper to the ImageMagick library
php-pecl-lzf.i686 : Extension to handle LZF de/compression
php-pecl-memcache.i686 : Extension to work with the Memcached caching daemon
php-pecl-memcached.i686 : Extension to work with the Memcached caching daemon
php-pecl-mysqlnd-ms.i686 : A replication and load balancing plugin for mysqlnd
php-pecl-ncurses.i686 : Terminal screen handling and optimization package
php-pecl-radius.i686 : Radius client library
php-pecl-runkit.i686 : Mangle with user defined functions and classes
php-pecl-solr.i686 : Object oriented API to Apache Solr
php-pecl-sphinx.i686 : PECL extension for Sphinx SQL full-text search engine
php-pecl-ssh2.i686 : Bindings for the libssh2 library
php-pecl-yaml.i686 : Support for YAML 1.1 serialization using the LibYAML
                   : library
php-phpunit-File-Iterator.noarch : FilterIterator implementation that filters
                                 : files based on a list of suffixes
php-phpunit-PHP-Invoker.noarch : Utility class for invoking callables with a
                               : timeout
php-phpunit-PHPUnit-SkeletonGenerator.noarch : Tool that can generate skeleton
                                             : test classes
php-phpunit-Text-Template.noarch : Simple template engine
php-symfony-YAML.noarch : The Symfony YAML Component
phpMyAdmin.noarch : Handle the administration of MySQL over the World Wide Web
phpPgAdmin.noarch : Web-based PostgreSQL administration
phpldapadmin.noarch : Web-based tool for managing LDAP servers
phplogcon.noarch : A syslog data viewer for the web
phpwapmail.noarch : WAP-based e-mail client
squirrelmail.noarch : webmail client written in php
syck.i686 : YAML for C, Python, and PHP
tiquit.noarch : A PHP5-compatible help desk incident tracking/knowledgebase
              : system
toothchart.noarch : A PHP script which graphically shows how a baby's primary
                  : teeth have erupted

  Name and summary matches only, use "search all" for everything.

How to Install PHP on Fedora 16

PHP: Hypertext Preprocessor is a widely used, free and open-source server-side scripting language that was especially designed for web development to produce dynamic web pages and can be embedded into HTML. PHP applications are commonly found with the filename extensions .php, .php4, or .php5. PHP does not included in Fedora 16 with minimum type of installation. You have to install it manually if you really need it. In this post i will show the quick step to install PHP on linux Fedora 16 server. This post assumed that you have set up local yum repository using your DVDROM and had installed minimal installation type Fedora 16.

How to Setup Local Yum Repository from CD-ROM/DVD-ROM image on Fedora 16

Simply run yum command to install PHP. Please note that this will only installed basic php with php-cli and php-common only.

[root@fedora16 ~]# yum install php -y
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php.i686 0:5.3.10-1.fc16 will be installed
--> Processing Dependency: php-common(x86-32) = 5.3.10-1.fc16 for package: php-5.3.10-1.fc16.i686
--> Processing Dependency: php-cli(x86-32) = 5.3.10-1.fc16 for package: php-5.3.10-1.fc16.i686
--> Running transaction check
---> Package php-cli.i686 0:5.3.10-1.fc16 will be installed
--> Processing Dependency: libedit.so.0 for package: php-cli-5.3.10-1.fc16.i686
---> Package php-common.i686 0:5.3.10-1.fc16 will be installed
--> Running transaction check
---> Package libedit.i686 0:3.0-4.20110227cvs.fc16 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package            Arch         Version                          Repository                   Size
====================================================================================================
Installing:
 php                i686         5.3.10-1.fc16                    updates                     2.3 M
Installing for dependencies:
 libedit            i686         3.0-4.20110227cvs.fc16           Fedora16-Repository          85 k
 php-cli            i686         5.3.10-1.fc16                    updates                     2.2 M
 php-common         i686         5.3.10-1.fc16                    updates                     501 k

Transaction Summary
====================================================================================================
Install       4 Packages

Total download size: 5.1 M
Installed size: 16 M
Downloading Packages:
(2/4): php-5.3.10-1.fc16.i686.rpm                                            | 2.3 MB     00:27
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY
Public key for php-5.3.10-1.fc16.i686.rpm is not installed
(3/4): php-cli-5.3.10-1.fc16.i686.rpm                                        | 2.2 MB     00:35
(4/4): php-common-5.3.10-1.fc16.i686.rpm                                     | 501 kB     00:06
----------------------------------------------------------------------------------------------------
Total                                                                73 kB/s | 5.1 MB     01:10
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386
Importing GPG key 0xA82BA4B7:
 Userid : Fedora (16) 
 Package: fedora-release-16-1.noarch (@anaconda-0)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : php-common-5.3.10-1.fc16.i686                                                    1/4
  Installing : libedit-3.0-4.20110227cvs.fc16.i686                                              2/4
  Installing : php-cli-5.3.10-1.fc16.i686                                                       3/4
  Installing : php-5.3.10-1.fc16.i686                                                           4/4

Installed:
  php.i686 0:5.3.10-1.fc16

Dependency Installed:
  libedit.i686 0:3.0-4.20110227cvs.fc16                 php-cli.i686 0:5.3.10-1.fc16
  php-common.i686 0:5.3.10-1.fc16

Complete!

How to Install Webmin 1.580 on RHEL 6/CentOS 6 Using tar.gz File

Webmin is a freeware program that provide web-based interface for system administration and system configuration tool for administrators. With Webmin you can setup user accounts, DNS, file sharing and etc. In this post, i will show how to install Webmin on Redhat Enterprise Linux 6 (RHEL 6) server using tar.gz File. This steps may also working on other versions such as CentOS 5.1, CentOS 5.2, CentOS 5.3, CentOS 5.4, CentOS 5.5, CentOS 5.6, CentOS 5.7, CentOS 6.x, RHEL 5.x and RHEL 6.x.

[root@centos62 tmp]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580.tar.gz
[root@centos62 ~]# cd /tmp
[root@centos62 tmp]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580.tar.gz
--2012-03-25 22:33:04--  http://prdownloads.sourceforge.net/webadmin/webmin-1.580.tar.gz
Resolving prdownloads.sourceforge.net... 216.34.181.59
Connecting to prdownloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580.tar.gz [following]
--2012-03-25 22:33:05--  http://downloads.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580.tar.gz
Resolving downloads.sourceforge.net... 216.34.181.59
Reusing existing connection to prdownloads.sourceforge.net:80.
HTTP request sent, awaiting response... 302 Found
Location: http://cdnetworks-kr-1.dl.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580.tar.gz [following]
--2012-03-25 22:33:06--  http://cdnetworks-kr-1.dl.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580.tar.gz
Resolving cdnetworks-kr-1.dl.sourceforge.net... 211.39.135.162
Connecting to cdnetworks-kr-1.dl.sourceforge.net|211.39.135.162|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16081299 (15M) [application/x-gzip]
Saving to: âwebmin-1.580.tar.gzâ

100%[==========================================================>] 16,081,299  68.2K/s   in 4m 14s

2012-03-25 22:37:21 (61.8 KB/s) - âwebmin-1.580.tar.gzâ

When unpacked, the distribution creates a subdirectory called webmin-1.580 :

[root@centos62 tmp]# tar -xzvf webmin-1.580.tar.gz
[root@centos62 tmp]# cd webmin-1.580
[root@centos62 webmin-1.580]# pwd
/tmp/webmin-1.580

When the setup.sh script is run, it will ask the following questions :

  • The Webmin configuration directory
  • The Webmin log directory
  • The full path to perl on your system
  • Your Operating system type
  • Web server port
  • Web server login and password
  • Web server hostname
  • Use SSL
  • Start Webmin at boot time
[root@centos62 webmin-1.580]# ./setup.sh
***********************************************************************
*            Welcome to the Webmin setup script, version 1.580        *
***********************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.

Installing Webmin in /tmp/webmin-1.580 ...

***********************************************************************
Webmin uses separate directories for configuration files and log files.
Unless you want to run multiple versions of Webmin at the same time
you can just accept the defaults.

Config file directory [/etc/webmin]:
Log file directory [/var/webmin]:

***********************************************************************
Webmin is written entirely in Perl. Please enter the full path to the
Perl 5 interpreter on your system.

Full path to perl (default /usr/bin/perl):

Testing Perl ...
Perl seems to be installed ok

***********************************************************************
Operating system name:    CentOS Linux
Operating system version: 6.2

***********************************************************************
Webmin uses its own password protected web server to provide access
to the administration programs. The setup script needs to know :
 - What port to run the web server on. There must not be another
   web server already using this port.
 - The login name required to access the web server.
 - The password required to access the web server.
 - If the webserver should use SSL (if your system supports it).
 - Whether to start webmin at boot time.

Web server port (default 10000):
Login name (default admin):
Login password:
Password again:
The Perl SSLeay library is not installed. SSL not available.
Start Webmin at boot time (y/n): y
***********************************************************************
Creating web server config files..
..done

Creating access control file..
..done

Inserting path to perl into scripts..
..done

Creating start and stop scripts..
..done

Copying config files..
..done

Configuring Webmin to start at boot time..
Created init script /etc/rc.d/init.d/webmin
..done

Creating uninstall script /etc/webmin/uninstall.sh ..
..done

Changing ownership and permissions ..
..done

Running postinstall scripts ..
PID file /var/webmin/miniserv.pid does not exist
..done

Enabling background status collection ..
PID file /var/webmin/miniserv.pid does not exist
..done

Attempting to start Webmin mini web server..
Starting Webmin server in /tmp/webmin-1.580
Pre-loaded WebminCore
..done

***********************************************************************
Webmin has been installed and started successfully. Use your web
browser to go to

  http://centos62.ehowstuff.local:10000/

and login with the name and password you entered previously.

Stop Iptables :

[root@centos62 webmin-1.580]# service iptables stop
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Unloading modules:                               [  OK  ]

To access Webmin administration console through web interface, navigate the server URL to your web browser :
http://serveripaddress:10000/

How to Install Webmin 1.580 on RHEL 6/CentOS 6 Using RPM

Webmin is a freeware program that provide web-based interface for system administration and system configuration tool for administrators. With Webmin you can setup user accounts, DNS, file sharing and etc. In this post, i will show how to install Webmin on Redhat Enterprise Linux 6 (RHEL 6) server using RPM version. This steps may also working on other versions such as CentOS 5.1, CentOS 5.2, CentOS 5.3, CentOS 5.4, CentOS 5.5, CentOS 5.6, CentOS 5.7, CentOS 6.x, RHEL 5.x and RHEL 6.x.

1. Download required RPM file here (http://download.webmin.com/download/yum/)

[root@rhel6 ~]# wget http://download.webmin.com/download/yum/webmin-1.580-1.noarch.rpm

or

[root@rhel6 ~]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580-1.noarch.rpm
[root@rhel6 ~]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580-1.noarch.rpm
--2012-03-25 20:03:28--  http://prdownloads.sourceforge.net/webadmin/webmin-1.580-1.noarch.rpm
Resolving prdownloads.sourceforge.net... 216.34.181.59
Connecting to prdownloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580-1.noarch.rpm [following]
--2012-03-25 20:03:34--  http://downloads.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580-1.noarch.rpm
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://cdnetworks-kr-1.dl.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580-1.noarch.rpm [following]
--2012-03-25 20:03:45--  http://cdnetworks-kr-1.dl.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580-1.noarch.rpm
Resolving cdnetworks-kr-1.dl.sourceforge.net... 211.39.135.162
Connecting to cdnetworks-kr-1.dl.sourceforge.net|211.39.135.162|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17112780 (16M) [application/x-rpm]
Saving to: âwebmin-1.580-1.noarch.rpmâ

100%[==========================================================>] 17,112,780  49.4K/s   in 20m 53s

2012-03-25 20:24:43 (13.3 KB/s) - âwebmin-1.580-1.noarch.rpmâ

Install RPM version of Webmin as below :

[root@rhel6 ~]# rpm -Uvh webmin-1.580-1.noarch.rpm
warning: webmin-1.580-1.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 11f63c51: NOKEY
Preparing...                ########################################### [100%]
Operating system is Redhat Enterprise Linux
   1:webmin                 ########################################### [100%]
Webmin install complete. You can now login to http://rhel6:10000/
as root with your root password.

Start Webmin :

[root@rhel6 ~]# /etc/rc.d/init.d/webmin start

To login Webmin :
You must enter a username and password to login to the Webmin server
http://serveripaddress:10000/

How to Fix Writable Issue or Error During Joomla CMS Pre-Installation Check on Linux

Joomla is a the dynamic portal engine and content management system. Some of the Joomla’s newbie don’t really familiar with the joomla installation process and some of them stuck on “Pre-Installation Check” when trying to install Joomla site on your linux server. Most of them will get the following warning during the installation wizard :

configuration.php Writeable  -----------------> Set to 'No'
You can still continue the installation as the configuration settings will be displayed at the end. 
You will have to manually upload the code. Click in the text area to highlight all of the code and 
then paste into a new text file. Name this file 'configuration.php' and upload it to your site root folder.  

Joomla

Solution :
This is just a warning. The only file that needs to be writable during joomla installation is configuration.php. It should be set to 777 during the installation only. Before you start to change permission, you should copy the file configuration.php-dist from installation’s folder to joomla root folder. Make sure you rename configuration.php-dist to configuration.php.

[root@rhel6 ~]# cp /var/www/html/joomlatest/installation/configuration.php-dist /var/www/html/joomlatest/configuration.php

Check the existing permission setting for configuration.php. It should 644.

[root@rhel6 ~]# ls -l /var/www/html/joomlatest/configuration.php
-rw-r--r-- 1 root root 3184 Mar 24 21:42 /var/www/html/joomlatest/configuration.php

Initially, configuration.php is set to 644 or “rw-r–r–‘. Permission is set to 777 during installation process only. After successfully installed your joomla site, please change back the configuration.php to 644.

[root@rhel6 ~]# chmod 777 /var/www/html/joomlatest/configuration.php

Avoid using 777 to any directories or folders on the server for Joomla site because that means anyone can do anything to your folders!

How to Turn Off or Disable Output Buffering for php.ini on PHP 5.3.2

Output buffering is used by PHP to improve performance and to perform a few tricks. PHP will send buffer to browser every get_opt(‘output_buffering’) bytes. Turning on output buffering alone decreases the amount of time it takes to download and render our HTML because it’s not being sent to the browser in pieces as PHP processes the HTML. In this post, i will show how turn off or disable output buffering for php.ini on PHP 5.3.2. This steps has been tested on the Red Hat Linux Enterprise 6 (RHEL 6) server. This steps may also working on other versions such as CentOS 5.1, CentOS 5.2, CentOS 5.3, CentOS 5.4, CentOS 5.5, CentOS 5.6, CentOS 5.7, CentOS 6.x and RHEL 5.x.

1. Open /etc/php.ini :

[root@rhel6 ~]# vi /etc/php.ini

In PHP 5.3.2, output_buffering’s directive is set to ‘enabled’ or ‘On’ with buffer size 4096 by default. It’s on line 264 on /etc/php.ini file :

; http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-buffering
output_buffering = 4096

2. In order to disable or turn it ‘off’, you have to comment out the line 264 as below :

; http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-buffering
;output_buffering = 4096

3. Don’t forget to restart httpd service to take effect immediately :

[root@rhel6 ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

How to Install and Setup Joomla 2.5.3 on CentOS 6/RHEL 6

On 15 March 2012, Joomla Project has announce the new released of Joomla 2.5.3 version. This is a security release. Joomla 2.5.3 has fixed 2 security issues as below :
High Priority – Core – Privilege Escalation – 20120303
High Priority – Core – Password Change – 20120304
In this post, i will show the steps to install Joomla 2.5.3 on Red Hat Linux Enterprise 6 (RHEL 6) server. This steps may also working on other versions such as CentOS 5.1, CentOS 5.2, CentOS 5.3, CentOS 5.4, CentOS 5.5, CentOS 5.6, CentOS 5.7, CentOS 6.x and RHEL 5.x.

1. Download using wget command the Joomla 2.5.3 Stable Package from official Joomla download sites :

[root@rhel6 ~]# wget http://joomlacode.org/gf/download/frsrelease/16804/73116/Joomla_2.5.3-Stable-Full_Package.zip
--2012-03-24 03:59:13--  http://joomlacode.org/gf/download/frsrelease/16804/73116/Joomla_2.5.3-Stable-Full_Package.zip
Resolving joomlacode.org... 206.123.111.164
Connecting to joomlacode.org|206.123.111.164|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://downloads.joomlacode.org/frsrelease/7/3/1/73116/Joomla_2.5.3-Stable-Full_Package.zip [following]
--2012-03-24 03:59:14--  http://downloads.joomlacode.org/frsrelease/7/3/1/73116/Joomla_2.5.3-Stable-Full_Package.zip
Resolving downloads.joomlacode.org... 206.123.111.167
Connecting to downloads.joomlacode.org|206.123.111.167|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7984960 (7.6M) [application/zip]
Saving to: âJoomla_2.5.3-Stable-Full_Package.zipâ

100%[==========================================================>] 7,984,960   55.7K/s   in 2m 41s

2012-03-24 04:01:55 (48.5 KB/s) - âJoomla_2.5.3-Stable-Full_Package.zipâ

2. Unzip the package into web server’s document root :

[root@rhel6 ~]# unzip Joomla_2.5.3-Stable-Full_Package.zip -d /var/www/html/joomla253

3. Create database for joomla 2.5.3 :

[root@rhel6 ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.47 Source distribution

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database joomla253db;
Query OK, 1 row affected (0.00 sec)

mysql> CREATE USER 'joomla253user'@'localhost' IDENTIFIED BY 'joomla253password';
Query OK, 0 rows affected (0.01 sec)

mysql> GRANT ALL PRIVILEGES ON joomla253db.* to joomla253user@localhost;
Query OK, 0 rows affected (0.00 sec)

mysql> SHOW GRANTS FOR 'joomla253user'@'localhost';
+----------------------------------------------------------------------------------------------------------------------+
| Grants for joomla253user@localhost                                                                                   |
+----------------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'joomla253user'@'localhost' IDENTIFIED BY PASSWORD '*F421F24167FCE0B4DAE4130DFB268C7897CF0C3D' |
| GRANT ALL PRIVILEGES ON `joomla253db`.* TO 'joomla253user'@'localhost'                                               |
+----------------------------------------------------------------------------------------------------------------------+
2 rows in set (0.01 sec)

mysql> exit
Bye

4. Copy and Allow write-able to configuration.php as below command :

[root@rhel6 ~]# cp /var/www/html/joomla253/installation/configuration.php-dist /var/www/html/joomla253/configuration.php
[root@rhel6 ~]# chmod 777 /var/www/html/joomla253/configuration.php

5. Turn off output buffering on php as below guidelines :
How to Turn Off or Disable Output Buffering for php.ini on PHP 5.3.2

6. Open you default web browser. This steps has been tested using Mozilla Firefox. Navigate to this URL :
http://serveripaddress/joomla253

7. Select your prefered language :

8. Make sure your follow the requirements and recommendations. Please make sure your actual server setting equal to recommended setting :

9. Read and accept the joomla license :

10. Enter your database name as what you have created on step (3) above :

11. Ignore FTP configuration if you not sure or if your server’s not configured :

12. Complete main configuration and install sample data if you need it :

13. Setup and configuration wizard complete :

14. For extra security, disable write-able to configuration.php and remove installation folder as below command :

[root@rhel6 ~]# chmod 664 /var/www/html/joomla253/configuration.php
[root@rhel6 ~]# ls /var/www/html/joomla253/ | grep installation
installation
[root@rhel6 ~]# rm -rf /var/www/html/joomla253/installation

15. You can enjoy using Joomla 2.5.3 now :

To access your Joomla 2.5.3 administrator’s page :
http://serverip/joomla253/administrator/

To browse your Joomla 2.5.3 CMS :
http://serverip/joomla253/

How to Unzip a File in Linux RHEL 6/CentOS 6/CentOS 7

How to Unzip a File in Linux

File compression can be done in a variety of methods on Linux systems. In Windows you might have come across a utility such as WinZip or Winrar for uncompressing files.

But in Linux you can do it two ways, from Graphical User Interface (GUI) and command line.

As linux system administrator most of the routine task playing with the linux command line. It is quite difficult to remember all the command that have been in use.

In this post, I will show the simple steps on how to unzip a file in Linux and how to zip a folder in Linux Red Hat Linux Enterprise 6 (RHEL 6).

This steps may also working on other versions such as CentOS 5.1, CentOS 5.2, CentOS 5.3, CentOS 5.4, CentOS 5.5, CentOS 5.6, CentOS 5.7, CentOS 6.x, RHEL 5.x and RHEL 6.x. CentOS 7 and Oracle Linux 7.

zip is a compression and file packaging utility for Unix, VMS, MSDOS, OS/2, Windows, Macintosh and linux operating systems. Meanwhile, unzip is utility to extract compressed files from a ZIP archive.

How to zip a folder in Linux

1. Creates the archive folder1.zip and puts all the files in the current directory in it in compressed form as below :

[root@rhel6 ~]# touch file1
[root@rhel6 ~]# touch file2
[root@rhel6 ~]# touch file3
[root@rhel6 ~]# ls
file1  file2  file3

Then zip folder1 :

[root@rhel6 ~]# zip folder1 *
  adding: file1 (stored 0%)
  adding: file2 (stored 0%)
  adding: file3 (stored 0%)
[root@rhel6 ~]# ls
file1  file2  file3  folder1.zip

How to Unzip a File in Linux

2. To unzip Joomla_2.5.3-Stable-Full_Package.zip into /var/www/html/joomla253 folder :

[root@rhel6 ~]# unzip Joomla_2.5.3-Stable-Full_Package.zip -d /var/www/html/joomla253

I hope the following tutorial on how to unzip a file in Linux will give you some basic idea on how to zip and unzip a folder on Linux.

How to Change PostgreSQL Log Format on CentOS 6.2

In this post, i will show the quick step to change log format for PostgreSQL on linux CentOS 6.2 server. PostgreSQL is a Sophisticated open-source Object-Relational DBMS supporting almost all SQL constructs, including subselects, transactions, and user-defined types. PostgreSQL is a powerful, open source object-relational database system that available for many platforms including Linux, FreeBSD, Solaris, Microsoft Windows and Mac OS X. Assumed that you have installed PostgreSQL database server on your CentOS 6.2 server

1. Open the PostgreSQL configuration file :

[root@centos62 ~]# vi /var/lib/pgsql/data/postgresql.conf

2. Go to line 334 and change log format as below :

log_line_prefix = '%t %u %d' 
#log_hostname = off
log_line_prefix = '%t %u %d'            # special values:
                                        #   %u = user name

3. Restart the PostgreSQL database server :

[root@centos62 ~]# /etc/rc.d/init.d/postgresql restart
Stopping postgresql service:                               [  OK  ]
Starting postgresql service:                               [  OK  ]

How to Configure PostgreSQL to Listen from Any IP Address on CentOS 6.2

PostgreSQL is a Sophisticated open-source Object-Relational DBMS supporting almost all SQL constructs, including subselects, transactions, and user-defined types. PostgreSQL is a powerful, open source object-relational database system that available for many platforms including Linux, FreeBSD, Solaris, Microsoft Windows and Mac OS X. In this post, i will show the quick steps on how to enable PostgreSQL to listen to all ip address on linux CentOS 6.2 server.

1. Open the PostgreSQL configuration file :

[root@centos62 ~]# vi /var/lib/pgsql/data/postgresql.conf

2. Go to line 59 and uncomment the line. Enable listen from any ip address as below. “*” is for all ip addresses :


#------------------------------------------------------------------------------
# CONNECTIONS AND AUTHENTICATION
#------------------------------------------------------------------------------

# - Connection Settings -

listen_addresses = '*'                 # what IP address(es) to listen on;
                                        # comma-separated list of addresses;
                                        # defaults to 'localhost', '*' = all

3. Restart the PostgreSQL database server :

[root@centos62 ~]# /etc/rc.d/init.d/postgresql restart
Stopping postgresql service:                               [  OK  ]
Starting postgresql service:                               [  OK  ]

How to Download Ubuntu Server 11.10 ISO

Ubuntu is the number #1 and the most popular desktop distro in the world. Ubuntu is based on Debian. Ubuntu is a Fast, secure and stylishly simple, the Ubuntu operating system is used by 20 million people worldwide every day. However, Ubuntu does not come with a load of software and codecs pre installed like Linux Mint and new users may have trouble playing certain media formats and may require a few command line installations. But it still the most popular Linux distribution because it has excellent community support and comes with excellent wall papers and artwork. This post will provide you the link where you actually can download Ubuntu Server 11.10 ISO and it’s completely free.

Download Ubuntu Server now
At the time this post created, the current version released is Ubuntu Server 11.10.

http://www.ubuntu.com/download/server/download

How to Configure Squid Proxy for LDAP Authentication on CentOS 6.2 using squid_ldap_auth

In this post i will show on how to configure squid proxy server to go through 389 LDAP authentication on linux CentOS 6.2 server. This authentication is using squid_ldap_auth module in that come with squid proxy. Assumed that you have 389 Ldap Directory server and Squid proxy configured. Squid service plays two main roles which mainly act as a caching proxy server between the user and the web. 389 Directory Server is an enterprise-class open source LDAP server for Linux.

Some informations regarding proxy server and ldap server.
Proxy server : 192.168.1.44 proxy.ehowstuff.local
LDAP server : 192.168.1.48 ldap.ehowstuff.local

Prerequisites :
How to Install and Configure Squid Proxy Server on CentOS 6.2
How to Restrict Web Access By Time Using Squid Proxy Server on CentOS 6.2
How to Install 389 Directory Server on CentOS 6.2
How to Setup and Configure 389 Directory Server on CentOS 6.2

Add in this lines on your squid.conf file :

auth_param basic program /usr/lib/squid/squid_ldap_auth -b "dc=ehowstuff,dc=local" -f "uid=%s" -h ldap.ehowstuff.local
acl ldapauth proxy_auth REQUIRED
http_access allow ldapauth
http_access deny all

“http_access deny all” is optional, it’s depend on your configuration.

Open squid.conf file and modify as below :

..
..
..
acl localnet src 172.16.0.0/12  # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7       # RFC 4193 local private network range
acl localnet src fe80::/10      # RFC 4291 link-local (directly plugged) machines
acl ehowstuff.com src 192.168.1.0/24    # Your internal network

acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT


#Specifies the base DN for LDAP authentication :
auth_param basic program /usr/lib/squid/squid_ldap_auth -b "dc=ehowstuff,dc=local" -f "uid=%s" -h ldap.ehowstuff.local
acl ldapauth proxy_auth REQUIRED
http_access allow ldapauth


#Add this at the bottom of the ACL Section
#
acl surfing_hours time M T W H F 17:00-24:00
acl Bad_Websites  dstdomain "/etc/squid/web/Bad_Websites.squid"

#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager

# Only allow cachemgr access from ehowstuff.com
http_access allow ehowstuff.com surfing_hours !Bad_Websites
http_access deny Bad_Websites
http_access deny ehowstuff.com
..
..
..

Proxy ip : 192.168.1.44
Domain/Hostname : proxy.ehowstuff.local
Port : 3128

Browser that was configured with proxy setting will prompt as below :
squid

Complete Squid configuration :

#
# Recommended minimum configuration:
#
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8     # RFC1918 possible internal network
acl localnet src 172.16.0.0/12  # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7       # RFC 4193 local private network range
acl localnet src fe80::/10      # RFC 4291 link-local (directly plugged) machines
acl ehowstuff.com src 192.168.1.0/24    # Your internal network

acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT


#Specifies the base DN for LDAP authentication :
auth_param basic program /usr/lib/squid/squid_ldap_auth -b "dc=ehowstuff,dc=local" -f "uid=%s" -h ldap.ehowstuff.local
acl ldapauth proxy_auth REQUIRED
http_access allow ldapauth


#Add this at the bottom of the ACL Section
#
acl surfing_hours time M T W H F 17:00-24:00
acl Bad_Websites  dstdomain "/etc/squid/web/Bad_Websites.squid"

#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager

# Only allow cachemgr access from ehowstuff.com
http_access allow ehowstuff.com surfing_hours !Bad_Websites
http_access deny Bad_Websites
http_access deny ehowstuff.com



# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost

#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
#http_access allow localnet
http_access allow localhost

# And finally deny all other access to this proxy
http_access deny all

# Squid normally listens to port 3128
http_port 3128

# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?

# Uncomment and adjust the following to add a disk cache directory.
#cache_dir ufs /var/spool/squid 100 16 256

# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid

# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .               0       20%     4320