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.
- How to configure an Open Suse Linux Server
- Comprehensive Analysis of Suse Linux passed the sun Test
- Preschool guidance: SUSE Linux
- Follow the summer project of Open Suse and Google Programming
- Describe how to install Jdk and mysql in Open SUSE