In redhatas5, the installation and configuration of the apache service "1" is detailed-Linux Enterprise Application-Linux server application information. The following is a detailed description. Install the Apache server and related components. Use the yum command to install the tool online.
0. Use the yum program to install the required development kit (The following is the standard rpm package name)
[Root @ www ~] # Yum install gcc-c ++ gcc-g77 flex bison autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libxml2-devel gettext-devel pcre-devel
Here we will compile some minor software necessary for GD, such as libpng, libtiff, freetype, libjpeg, and gettext-devel, which will be installed with RPM to avoid wasting time on manual compilation, at the same time, it can also avoid many errors. Compilation of these small software is very troublesome. The compilation of these small software is wrong. Of course, GD cannot be installed, and php5 compilation is useless. Therefore, we need to take a quick and concise approach to the installation of these cool and cool. This does not affect the server performance.
In addition, the libxml2 system has been installed by default, so we do not need to manually compile it, just install its development kit.
[Root @ www ~] # Yum install gd
1, [root @ www ~] # Yum-y mysql
2, [root @ www ~] # Yum-y install php-mysql plugin install php-mysql
3, [root @ www ~] # Yum-y install httpd ghost install httpd online
4, [root @ www zhaoyong] # tar zxvf phpMyAdmin-2.11.5.1-all-languages.tar.gz install phpmyadmin to make management easier
[Root @ www zhaoyong] # mv phpMyAdmin-2.11.5.1-all-languages/var/www/phpmyadmin ← move to the corresponding directory
5, [root @ www ~] # Yum-y install php plugin install PHP online
6, [root @ www zhaoyong] # yum-y install php-mbstring
Install php-mbstring so that phpmyadmin can correctly identify the string.
7. Configure phpmyadmin
[Root @ www ~] # Cp/var/www/phpmyadmin/config. sample. inc. php/var/www/phpmyadmin/config. sample. inc. php. bak backup configuration file
[Root @ www ~] # Chown-R root. apache/var/www/phpmyadmin/change the ownership of phpmyadmin
Then establish the contact between phpMyAdmin and Apache.
[Root @ www ~] # Vi/etc/httpd/conf. d/phpmyadmin. conf configure create the phpMyAdmin configuration file for Apache to call as follows:
Alias/phpmyadmin/var/www/phpmyadmin
[Root @ www phpmyadmin] # service httpd restart httpd server to Update Configuration
8. Test phpmyadmin by entering http: // server address/phpmyadmin in the browser.
It's easy to manage mysql.
9. Install the zend optimizer engine.
[Root @ www ~] # Tar zxvf Zend Optimizer v3.2.6.tar.gz
[Root @ www ~] # Cd Zend Optimizer v3.2.6
[Root @ www ~] #./Install. sh
Pay attention to the installation
Select Yes to agree to the Agreement
Set the installation directory. Here, the default/usr/local/Zend is used as an example. Then, Select OK to go to the next step.
Set the location of the PHP configuration file, usually/etc (default). If the PHP configuration file is located elsewhere, set it according to the actual situation.
If you want to use the Apache server, select Yes.
Set the Apache path. Keep the default value here. Select OK to go to the next step.
10. Install webmin to facilitate management between servers
[Root @ www zhaoyong] # rpm-ivh webmin-1.410-1.noarch.rpm
After the installation is complete, Use http: // server address: 10000 in the browser.
To support Chinese characters, select in configure.
Finished
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.