Upgrade apache php mysql in earlier versions of Linux

Source: Internet
Author: User
Tags apache php php mysql

Linux has become a mainstream operating system and is widely used. If your server's Linux version is too low and apache php mysql version is too low, how can you Upgrade apache php mysql? The steps for the entire upgrade process are as follows:

1. Delete apache php mysql:

Determine if rpm is installed. For example, if rpm-qphp returns the php version, it is rpm installation. You can use rpm-ephp-nodeps to completely delete the php version that comes with the system.

If the PHP version is not returned, the installation is binary. You can directly Delete the directory! The same is true for apachemysql!

2. install apache

Download httpd-2.2.4.tar.gz

Tarxzvfhttpd-2.2.4.tar.gz
Cdhttpd-2.2.4
. /Configure -- prefix =/usr/local/apache2 -- enable-so -- enable-mod-shared = all -- enable-cgi -- enable-rewrite -- enable-deflate -- with-mpm = worker
Make
Makeinstall

3. Install mysql

#Chmod755mysql-5.0.45-Linux-i686-glibc23.tar.gz // set mysql-5.0.45-linux-i686-glibc23.tar.gz to 755.
Unzip tarxzvfmysql-5.0.45-linux-i686-glibc23.tar.gz // decompress
# Cp-rmysql-5.0.45-Linux-i686-glibc23/usr/local //
# Mvmysql-5.0.45-Linux-i686-glibc23mysql //
# Cdmysql //
# Groupaddmysql // create a mysql Group
# Useraddmysql-gmysql // create a mysql user and add it to the mysql Group
# Cp/usr/local/mysql/support-files/my-medium.cnf/etc/my. cnf
There are four template files in the support-files directory. We select one of the Mysql configuration files to overwrite/etc/my. cnf (default system configuration, with performance parameters and some path parameters of Mysql)
# Run cd/usr/local/mysql to enter the mysql directory.
#./Scripts/mysql_install_db -- user = mysql // The first trial table and requires mysql users to access the table. After the table is initialized, set the access permissions for mysql and root users.
# Chown-Rroot // set root to access/usr/local/mysql
# Chown-Rmysqldata // set mysql users to access mysql database files stored in/usr/local/mysql/data. this directory is in/etc/my. cnf is configured and generated in mysql_install_db.
# Chown-Rmysqldata // set that mysql users can access all files in/usr/local/mysql/data/mysql
# Chgrp-Rmysql // set the mysql group to access/usr/local/mysql
#/Usr/local/mysql/bin/mysqld_safe -- user = mysql

I hope you can learn about the apache php mysql version, which is too low and upgrading too low.

  1. How to configure an Open Suse Linux Server
  2. Comprehensive Analysis of Suse Linux passed the sun Test
  3. Preschool guidance: SUSE Linux
  4. Follow the summer project of Open Suse and Google Programming
  5. Describe how to install Jdk and mysql in Open SUSE

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.