Posts tagged with linux

  • PHP extensions installation in Centos 6

    Below is my note on installing the common extensions (assuming php-pear has been yum installed):

    ImageMagick

    $ yum install gcc
    $ yum -y install php-devel
    
    # install imagemagick binary
    $ yum install ImageMagick
    $ yum install ImageMagick-devel
    
    # install php extension
    $ pecl install imagick
    
    # update configuration file
    $ echo "extension=imagick.so" > /etc/php.d/imagick.ini
    
    # restart httpd 
    $ sudo service httpd restart
    

    MCrypt

    # install Epel repo for yum
    $ sudo rpm -ivh...
    Read More
  • Centos 6 LAMP setup

    This is to document the whole setup process.

    Apache

    # update yum
    $ yum update
    
    # install httpd
    $ yum install httpd
    
    # start httpd at system start
    $ /sbin/chkconfig --levels 235 httpd on
    
    # start Apache
    $ service httpd start
    

    MySQL

    # install mysql
    $ yum install mysql-server
    
    # start mysql on system startup
    $ /sbin/chkconfig --levels 235 mysqld on
    
    # start mysql service
    $ service mysqld start
    
    # run secure installation to setup root password, remove test database and user
    $ mysql_secure_installation
    

    PHP

    # install php and pear package
    $...
    Read More