CentOS 5.3 on a yum install Apache + php + Mysql + phpMyAdmin

Centos in the yum-line installation is slow. The following are replacement for Chinese CentOS mirror server!
The official mirror sites: http://centos.ustc.edu.cn/
/ * Instructions * /
cd / etc / yum.repos.d [enter yum.repos.d directory]
mv CentOS-Base.repo CentOS-Base.repo.save [modify the source file name of the backup]
wget http://centos.ustc.edu.cn/CentOS-Base.repo.5 [download]
mv CentOS-Base.repo.5 CentOS-Base.repo [download file was renamed]

1. Update to the latest kernel.
yum-y update
System update, yum install prompt if an error message, run the following command to repair.
rpm-import / etc / pki / rpm-gpg / RPM-GPG-KEY *

2. Installation Apahce, PHP, Mysql, and php to connect mysql database components

yum-y install httpd php mysql mysql-server php-mysql

/ / Install the mysql extension
yum-y install mysql-connector-odbc mysql-devel libdbi-dbd-mysql
/ / Install the php extension
yum-y install php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc
/ / Install apache extension
yum-y install httpd-manual mod_ssl mod_perl mod_auth_mysql

Paste one-time installation:
yum-y install httpd php mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql php-mcrypt php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc mysql-connector-odbc mysql-devel libdbi- dbd-mysql

3. Start the service configuration

/ Sbin / chkconfig httpd on [set apache to start automatically]
/ Sbin / chkconfig - add mysqld [mysql service]
/ Sbin / chkconfig mysqld on [mysqld service]

/ Sbin / service httpd start [from the start httpd service]
/ Sbin / service mysqld start [from the start mysqld service]

4. Set mysql database root account password.
mysqladmin-u root password 'new password' [quotes fill in your password]

Make mysql database security

Copy the contents to the clipboard


mysql-u root-p [At this point you will be asked to enter just to set the password, you can enter a carriage return after

mysql> DROP DATABASE test; [Remove test database]

mysql> DELETE FROM mysql.user WHERE user = "; [remove anonymous account]

mysql> FLUSH PRIVILEGES; [Heavy Permissions]

5. Firewall configuration
a. Add. allow access to port (21: ftp, 80: http).
iptables-I RH-Firewall-1-INPUT-m state-state NEW-m tcp-p tcp-dport 21-j ACCEPT
iptables-I RH-Firewall-1-INPUT-m state-state NEW-m tcp-p tcp-dport 80-j ACCEPT
Depressed. Please copy the above into Notepad, the then-state this - lowercase, and then operation. Or paste will be garbled.
b. turn off the firewall (not recommended).
service iptables stop
c. Reset the firewall load
service iptables restart

6. Install phpMyAdmin
Into phpMyAdmin official download the latest version, upload it to your web site directory, and then configure. Just a few steps can be buttoned.
a. config.sample.inc.php renamed config.inc.php;
b. Open the config.inc.php file, make the following changes;
/ / $ Cfg ['Servers'] [$ i] ['controluser'] = 'pma';
/ / $ Cfg ['Servers'] [$ i] ['controlpass'] = 'pmapass';
/ / $ Cfg ['Servers'] [$ i] ['pmadb'] = 'phpmyadmin';
/ / $ Cfg ['Servers'] [$ i] ['bookmarktable'] = 'pma_bookmark';
/ / $ Cfg ['Servers'] [$ i] ['relation'] = 'pma_relation';
/ / $ Cfg ['Servers'] [$ i] ['table_info'] = 'pma_table_info';
/ / $ Cfg ['Servers'] [$ i] ['table_coords'] = 'pma_table_coords';
/ / $ Cfg ['Servers'] [$ i] ['pdf_pages'] = 'pma_pdf_pages';
/ / $ Cfg ['Servers'] [$ i] ['column_info'] = 'pma_column_info';
/ / $ Cfg ['Servers'] [$ i] ['history'] = 'pma_history';
/ / $ Cfg ['Servers'] [$ i] ['designer_coords'] = 'pma_designer_coords';

Remove the front of each line / /;
c. $ cfg ['blowfish_secret'] = "; | revised | $ cfg ['blowfish_secret'] = 'http';
d. $ cfg ['Servers'] [$ i] ['controluser'] = 'pma'; | to 'pma' modify your account |
e. $ cfg ['Servers'] [$ i] [' controlpass'] = 'pmapass'; | the' pmapass set the password for your mysql |
f. $ cfg ['blowfish_secret'] = "; | Add phrases password example: $ cfg ['blowfish_secret'] = 'onohot' |

Reference Site: http://www.fengyihot.com/blog/?p=169

分类:OS 时间:2010-05-07 人气:406
blog comments powered by Disqus


  • oracle newline in the text removed. carriage return. Summary tab 2010-04-23

    oracle text removed newline, carriage returns, tabs, a summary, the definition of special symbols ascii tab character chr (9) Line feed chr (10) Carriage return chr (13) Second, nest repalce, note you can only submit a sign, such as the first carriag

  • JSF tag <f:param/> not have to pass the value of the carriage return! 2010-02-07

    Hello All, JSF <f:param value="person.name"/> tag value value can not have a carriage return, If there is a carriage return will affect the page display, nor reported any errors. Deal with tricks up their sleeves for you brother. Thanks ..

  • JPA handle carriage return problem! 2010-02-07

    Hello All, Add carriage return character to use JPA feasible, but Optimistic lock, the query out, and then deleted, Will be reported [Reason = <openjpa-1.1.0-r422266:657916 nonfatal store error> org.apache.openjpa.util.OptimisticException: Optimisti

  • Carriage return and line feed 2010-03-17

    Plan a lot to learn regular expressions, so first figure out some basic concepts, starting with a carriage return and line start http://www.ruanyifeng.com/blog/2006/04/post_213.html The following is an excerpt from Ruan Yifeng's blog Wrote, Today, I

  • How to add a carriage return in the event page 2010-04-02

    The content is purely on-line data collection, not original, I hope to help people in need. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns=

  • sql server replace the carriage return symbols in 2010-04-16

    replace (replace (TrainAcquaintance.Comment, char (10 ),''), char (13 ),'') char (13) is represented by a carriage return

  • Carriage return line feed (\ r \ n) order 2010-04-20

    Subject: carriage return, line feed! Environment: Window The keyboard "Enter" key to almost no one does not know, something well-known, carriage return, line feed many people and remembered very difficult to talk normally, but specific to text p

  • Newline character '\ n' and carriage return '\ r' difference 2010-05-05

    Answer: Yes, the name suggests, is another line breaks from the line, carriage returns, is back to the beginning of a line, we usually write the file should be precise, is called the carriage return line feed carriage return -------------------------

  • I / O file content in the carriage return line feed 2010-05-05

    Linux and Unix systems for line is "\ n", while the windows line breaks are not direct "n", a "\ r \ n". So out.write ("\ n") can only get a black box, because windos do not think this is a "wrap." Input d

  • On linux and windows of the CR, LF, CR / LF carriage return line feed problem 2010-05-06

    In text processing, CR, LF, CR / LF is the line breaks use different operating systems. Dos and windows: use carriage return + line feed CR / LF that the next line. UNIX / Linux: that the next line by line feed LF. MAC OS: carriage return CR expresse

iOS 开发

Android 开发

Python 开发



PHP 开发

Ruby 开发






Javascript 开发

.NET 开发



Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 闽ICP备15018612号

processed in 0.163 (s). 12 q(s)