It takes several days to install Fedora13. The environment has been difficult to work. After several days, I joined everyone's experience on the Internet. Today, I finally got familiar with it. Write down the process and some experiences. First, let's talk about it. Make sure to install PHP at last, otherwise it is difficult for php to configure mysql support. Before the installation, many fedora self-generated packages should be deleted. Please delete them with patience. Do not ask why there is a part of it .. I don't know. 1. Switch to the gnome terminal and Log On As a super administrator. (Type: su)
It takes several days to install Fedora 13. The environment has been difficult to work. After several days, I joined everyone's experience on the Internet. Today, I finally got familiar with it. Write down the process and some experiences.
First, let's talk about it. Make sure to install PHP at last, otherwise it is difficult for php to configure mysql support.
Before the installation, many fedora self-generated packages should be deleted. Please delete them with patience. Do not ask why there is a part of it .. I don't know. Few gossip
1. Switch to the gnome terminal and Log On As a super administrator. (Type: su)
2, rpm-qa | grep-I httpd
After you press enter, the following message appears:
Httpd-2.2.3-11.ic816
I cannot remember the details.
3. Delete the searched software: rpm-e httpd-2.2.3-11.ic816 // Delete this method one by one for all the displayed ones.
4. Delete mysql in the same way.
Rpm-qa | grep-I httpd
Then:
Rpm e mysql-2.1.3-11.ic816
If an error occurs while deleting, add the force DELETE command: rpm-e mysql-2.1.3-11.ic816 -- nodeps
5. The default gcc compiler version of feodra cannot compile c and c ++... Higher Level 1: yum install gcc
Then install the c ++ Compiler: yum install gcc-c ++
Preparations: Start installation below
Install Apache
1, go to the official website to download Apache (http://httpd.apache.org/download.cgi development. Here I download is 2.2.1520.tar.gz source package.
2. Use super administrator: su
3. Switch to the downloaded file directory. So I typed: cd/home/sean/download
4, extract the downloaded file: tar-zxvf httpd-2.2.15.tar.gz
5, enter the decompressed httpd Directory: cd httpd-2.2.15
6. Configure and install
./Configure -- prefix =/usr/local/lamp/apache -- enable-so -- enable-rewrite -- enable-expires -- enable-cache -- enable-mem-cache
Explain the configure command. -- Prefix is based on the directory. Module options after enable. Www.linuxidc.com select some common modules here. so supports loading the DSO module on the Dynamic Link Mechanism. A so PHP module will be created when php is installed later. Rewrite is a commonly used rewrite. Expires is used to Control HTTP headers "Expires:" and "Cache-Control:". PHP uses headers to Control the Cache. You can refer to Apache for more information.
7. make
Make install
8,/usr/local/lamp/apache/bin/apachectl-k start
Then open http: // localhost in the browser
We can see a page that says: it works!
Indicates that the installation is successful. Go to the next item. Install mysql
1. Go to the official website to download mysql. (Http://www.mysql.com/downloads/mysql/) Here I downloaded the Generic Linux (glibc 2.3) (x86, 32-bit), Compressed TAR Archive(mysql-5.1.48-linux-i686-icc-glibc23.tar.gz) which is his Binary source code. The rpm package is better installed. Let's not talk about it.
2. Switch the Directory: cd/home/sean/download
3, unzip: tar-zxvf mysql-5.1.48-linux-i686-glibc23.tar.gz
4. Move the extracted folder to the target: mv mysql-5.1.48-linux-i686-glibc23/usr/local/lamp/mysql // (this is the installation directory)
5. Switch to the target directory: cd/usr/local/lamp/mysql
6. Add a mysql user group: groupadd mysql
7. Add a mysql user: adduser-g mysql
8, chown-R mysql.
Chgrp-R mysql.
Pay attention to the order of the two sentences.