Setup PHP

PHP is a scripting language designed to fill the gap between SSI (Server Side Includes) and Perl, intended for the web environment

  1. Setup PHP

    yum -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    yum -y install http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
    yum --enablerepo=remi -y install php php-devel php-mysql
    

  2. Install Extensions

    yum -y install php-pecl-ssh2 php-mcrypt php-soap php-xml php-xmlrpc php-openssl php-mbstring
    # Common PHP modules required by CMS Systems like Wordpress, Joomla and Drupal
    yum -y install php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap php-tidy curl curl-devel
    # APC is a free and open PHP opcode cacher for caching and optimizing PHP intermediate code
    yum -y install php-pecl-apc
    

  3. Install phpMyAdmin

    a. Install:

    yum -y install phpmyadmin
    

    b. Configure file /etc/phpMyAdmin/config.inc.php for pass required password

    vi /etc/phpMyAdmin/config.inc.php
    
    $cfg['Servers'][$i]['auth_type'] = 'config'; //config, http or cookie
    $cfg['Servers'][$i]['user'] = 'root';
    $cfg['Servers'][$i]['password'] = 'root';
    

  4. Useful resources

    Snippet PHP

    Xdebug - Debugger and Profiler Tool for PHP

Comments

Popular posts from this blog

Reduce TIME_WAIT Socket Connections