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
    yum -y install
    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/ for pass required password

    vi /etc/phpMyAdmin/
    $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


Popular posts from this blog