Sunday, November 23, 2014

lamp install on centos 7

Leave a Comment
in this articles, lamp ( linux, apache, mariaDB, PHP). how to lamp install on centos 7 ? Step-by-step lamp install on centos 7 below:

Step 1: Install Apache

Install, start and enable start on boot the apache server
yum install httpd
systemctl start httpd.service
systemctl enable httpd.service
Output:
lamp install

you enable port httpd or disable firewall to as picture above:
[root@localhost ~]# service firewalld stop

Step 2: Install MySQL (MariaDB)

Install MariaDB
yum install mariadb-server mariadb
systemctl start mariadb
mysql_secure_installation
systemctl enable mariadb.service

Step 3: Install PHP

Install and restart PHP
#yum install php php-mysql
#systemctl restart httpd.service

Install PHP Modules

yum search php-
[root@localhost ~]# yum search php-
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
============================== N/S matched: php- ===============================
php-cli.x86_64 : Command-line interface for PHP
php-common.x86_64 : Common files for PHP
php-gd.x86_64 : A module for PHP applications for using the gd graphics library
php-ldap.x86_64 : A module for PHP applications that use LDAP
php-mysql.x86_64 : A module for PHP applications that use MySQL databases
php-odbc.x86_64 : A module for PHP applications that use ODBC databases
php-pdo.x86_64 : A database access abstraction module for PHP applications
php-pear.noarch : PHP Extension and Application Repository framework
php-pecl-memcache.x86_64 : Extension to work with the Memcached caching daemon
php-pgsql.x86_64 : A PostgreSQL database module for PHP
php-process.x86_64 : Modules for PHP script using system process interfaces
php-recode.x86_64 : A module for PHP applications for using the recode library
php-soap.x86_64 : A module for PHP applications that use the SOAP protocol
php-xml.x86_64 : A module for PHP applications which use XML
php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC protocol
  Name and summary matches only, use "search all" for everything.
To information packages use yum info, For example: information package php-gd below:
yum info <package-name>
[root@localhost ~]# yum info php-gd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Available Packages
Name        : php-gd
Arch        : x86_64
Version     : 5.4.16
Release     : 21.el7
Size        : 122 k
Repo        : LocalRepo
Summary     : A module for PHP applications for using the gd graphics library
URL         : http://www.php.net/
License     : PHP and BSD
Description : The php-gd package contains a dynamic shared object that will add
            : support for using the gd graphics library to PHP.

For example, install php-gd below:
yum install php-gd
Now, you have a lamp install on centos 7. I hop will this help you!
Copyright by: www.linuxoperatingsystem.info http://goo.gl/kMscJ4

0 comments:

Post a Comment