Install Apache, MySQL, PHP (LAMP) stack On CentOS 6

Install Apache, MySQL, PHP (LAMP) stack On CentOS 6

CentOS

LAMP is software bundle of web service solution stacks, named as an acronym of the names of its original four components: the Linux operating system, the Apache HTTP Server, the MySQL relational database management system (RDBMS), and the PHP programming language.

1. Install Apache
sudo yum install httpd
sudo service httpd start
2. Install MySQL
sudo yum install mysql-server
sudo service mysqld start
 3. Install PHP and PHP modules
sudo yum install php php-mysql

 

PHP has many useful libraries and modules.  For check available modules:

yum search php-

The list of possible modules:

php-jpgraph-docs.noarch : Documentation for package php-jpgraph
perl-PHP-Perlinfo.noarch : Clone of PHP's phpinfo function for Perl
perl-PHP-Serialization.noarch : Convert PHP's serialize() output into Perl memory structure, and back.
php-acid.noarch : Analysis Console for Intrusion Databases
php-adodb.noarch : Portable Database Library for PHP
php-bcmath.i686 : A module for PHP applications for using the bcmath library
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-devel.i686 : Files needed for building PHP extensions
php-embedded.i686 : PHP library for embedding in applications
php-enchant.i686 : Human Language and Character Encoding Support
php-fpm.i686 : PHP FastCGI Process Manager
php-gd.i686 : A module for PHP applications for using the gd graphics library
php-imap.i686 : A module for PHP applications that use IMAP
php-intl.i686 : Internationalization extension for PHP applications
php-jpgraph.noarch : OO Graph Library for PHP
php-ldap.i686 : A module for PHP applications that use LDAP
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-mysql.i686 : A module for PHP applications that use MySQL databases
php-odbc.i686 : A module for PHP applications that use ODBC databases
php-pdo.i686 : A database access abstraction module for PHP applications
php-pear.noarch : PHP Extension and Application Repository framework
php-pear-db.noarch : PEAR: Database Abstraction Layer
php-pecl-apc.i686 : APC caches and optimizes PHP intermediate code
php-pecl-apc-devel.i686 : APC developer files (header)
php-pecl-fileinfo.i686 : PECL package to get file information through libmagic
php-pecl-http.i686 : PECL package to add HTTP request functionality
php-pecl-mailparse.i686 : PECL package for parsing and working with email messages
php-pecl-memcache.i686 : Extension to work with the Memcached caching daemon
php-pecl-session_mysql.i686 : PECL package to save sessions to a MySQL database
php-pgsql.i686 : A PostgreSQL database module for PHP
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 : Standard PHP module provides GNU recode support
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-tidy.i686 : Standard PHP module provides tidy library support
php-xcache.i686 : PHP accelerator, optimizer, encoder and dynamic content cacher
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-zts.i686 : Thread-safe PHP interpreter for use with the Apache HTTP Server

to install the module, type:

sudo yum install name of the module

Finally should set the mysql, httpd to start automatically when the server boots:

sudo chkconfig httpd on
sudo chkconfig mysqld on
 

How To Install Apache MySQL PHP 7.4 on CentOS 7

arstech

Leave a Reply

Your email address will not be published. Required fields are marked *