Before starting to install mysql, php and apache into linux server, you will be introduced with these scripting software terminologies.
The definition of Apache
Apache is an open source freely available HTTP web server running on most UNIX-based operating systems and Windows as well.
This Apache web server is used to serve web pages such as .htm .php .pl .cgi .js etc.
The definition of MySQL
MySQL is one open source relational database management system aka RDBMS that can be run on any server by giving multi-user access to multiple databases.
In line with this, MySQL will be able to run with Apache.
The definition of PHP
PHP or Hypertext Preprocessor is an open source server-side scripting language that is used to make dynamic web pages for a website and it is for web development.
Some PHP modules that will be included in this installation.
a. MySQL or php-mysql is an extension for PHP applications that use MySQL databases.
b. PostgreSQL or php-pgsql is an extension for PostgreSQL database for PHP.
c. MongoDB or php-pecl-mongo is a driver for MongoDB database.
d. SQLite or php-sqlite is an extension for SQLite Database Engine.
e. Memcache or php-pecl-memcache is to memcache caching daemon.
f. Memcached/php-pecl-memcached is memcached caching daemon.
g. GD/php-gd is GD extension for PHP application to serve graphics.
h. XML or php-xml is XML Parser for PHP applications.
i. MBString/php-mbstring ismbstring extension which is used to handle multi-byte string in PHP applications.
j. MCrypt or php-mcrypt is a Mcrypt library for PHP scripts.
k. APC or php-pecl-apc is APC module used to optimize and cache PHP code.
l. CLI or php-cli is a command-line interface for PHP.
m. PEAR or php-pear is an application Repository framework for PHP.
n. PDO or php-pdo is a database access module for PHP applications.
1. Install Remi Repository first
Type this command to install remi repository on fedora versions
## Install Remi Repository on Fedora 19, 18, 17, 16, 15 ##
rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
## Fedora 19 ##
# rpm -Uvh http://rpms.famillecollet.com/remi-release-19.rpm
## Fedora 18 ##
# rpm -Uvh http://rpms.famillecollet.com/remi-release-18.rpm
## Fedora 17 ##
# rpm -Uvh http://rpms.famillecollet.com/remi-release-17.rpm
## Fedora 16 ##
# rpm -Uvh http://rpms.famillecollet.com/remi-release-16.rpm
## Fedora 15 ##
# rpm -Uvh http://rpms.famillecollet.com/remi-release-15.rpm
## Fedora 14 ##
# rpm -Uvh http://rpms.famillecollet.com/remi-release-14.rpm
## Fedora 13 ##
# rpm -Uvh http://rpms.famillecollet.com/remi-release-13.rpm
## Fedora 12 ##
# rpm -Uvh http://rpms.famillecollet.com/remi-release-12.rpm
## Install Remi & Epel Repository on RHEL/CentOS 6.4-6.0 – 32 Bit ##
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
## Install Remi & Epel Repository on RHEL/CentOS 6.4-6.0 – 64 Bit ##
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
## Install Remi Repository on RHEL/CentOS 5.9-5.0 – 32 Bit ##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
## Install Remi Repository on RHEL/CentOS 5.9-5.0 – 64 Bit ##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
2. Install Apache 2.2.15, MySQL 5.5.34 and PHP 5.5.4
## Installing on Fedora 12, 13, 14, 15, 16, 17, 18, 19 ##
# yum –enablerepo=remi install httpd mysql mysql-server php php-common
## Installing on RHEL/CentOS 5-6 ##
# yum –enablerepo=remi,remi-test install httpd mysql mysql-server php php-common
3. Install PHP 5.5.4 Modules
## Installing on Fedora 12, 13, 14, 15, 16, 17, 18, 19 ##
# yum –enablerepo=remi install php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml php-pecl-apc php-cli php-pear php-pdo
## Installing on RHEL/CentOS 5-6 ##
# yum –enablerepo=remi,remi-test install php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml php-pecl-apc php-cli php-pear php-pdo
4. Starting/Stopping Apache and MySQL
## Enable Apache and MySQL on Run-Levels ##
# chkconfig –levels 235 httpd on
# chkconfig –levels 235 mysqld on
## Apache Commands ##
# /etc/init.d/httpd start
# /etc/init.d/httpd stop
# /etc/init.d/httpd status
## MySQL Commands ##
# /etc/init.d/mysqld start
# /etc/init.d/mysqld stop
# /etc/init.d/mysqld status
5. Verify Apache 2.2.15, MySQL 5.5.34 and PHP 5.5.4
a. Make a page called phpinfo.php under your Apache root directory then add the following lines to it. As a illustration (/var/www/html/phpinfo.php).
b. Afterward, you can now access the page via web browser like http://localhost/phpinfo.php.
If you still do not understand above statements, you can try to install mysql and php with simple steps
If you have any tips tricks related to wordpress you can take part in contributing your valuable input via submit feature displayed on this page
Không có nhận xét nào:
Đăng nhận xét