yum install apache mysql php time

sponsored links
CentOS 5.3 server installation is done installing, configuring Apache + php + Mysql

Line in the yum install Centos very slow. The following are replacement for Chinese CentOS mirror servers!
China's 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
After a system update, yum install prompt if an error message, perform the following command to repair.
rpm-import / etc / pki / rpm-gpg / RPM-GPG-KEY *
2 Installing Apahce, PHP, Mysql, php and mysql database connection component reference:
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 expansion
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 to start the service configuration references:
/ Sbin / chkconfig httpd on [set up apache to self-start]
/ Sbin / chkconfig - add mysqld [mysql service]
/ Sbin / chkconfig mysqld on [mysqld service]

/ Sbin / service httpd start [since the start httpd service]
/ Sbin / service mysqld start [since the start mysqld service]
4 Set the mysql database root account password.
mysqladmin-u root password 'new password' [quotes fill password]
5 references to mysql database more secure:
mysql-u root-p [then ask you to enter just to set the password, you can enter the carriage return after
mysql> DROP DATABASE test; [delete the test database]
mysql> DELETE FROM mysql.user WHERE user = "; [remove anonymous account]
mysql> FLUSH PRIVILEGES; [overloaded Permissions]
According to the above installation, configuration, out of the default site directory is / var / www / html / Create a new php script:
phpinfo ();
6 firewall configuration reference:
a. Add, allowing 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
b. Save
service iptables save
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of yum install apache mysql php time

  • Hibernate easy extract

    Simple terms the following excerpt from hibernate: DAO mode, the database access layer implementation is hidden to the Data Accessor, the front said, DAO mode are in fact a combination of two modes, namely Data Accessor and domain Object mode. What i ...

  • [Have resolved] how to give rails of the model class of congestive (include / extent module)

    Has been resolved Please visit: http://henrik.nyh.se/2008/02/rails-model-extensions 1: the introduction of new features to the controller My approach: I tried to introduce in the application controller extra modules: require "string" This "string

  • SqlServer database connection pool to connect tomcat

    First, install the JDBC Driver The database driver jar file to put (Tomcat_install) \ common \ lib directory Second, configure the Connection Pool 1. Overall connection pool configuration, Tomcat in any Web application can be configured to use the co ...

  • Properties with 6 supplementary hibernate.cfg.xml configuration

    In some special circumstances, we may be saved in the database connection information config.properties document, for example, make a install.jsp to modify config.properties documents, implementation of online information on the database configuration. At

  • hibernate Technical Study Notes (first)

    Introduction: Model does not match (impedance mismatch) java object-oriented language, object model, its key concepts are: inheritance, association, polymorphism, etc.; database is the relational model, its key concepts are: tables, primary keys, for ...

  • The merits of the field-driven development

    All along, J2ee development process (in Struts + Hibernate + Spring as an example) are as follows: 1. Design Database 2. Generate database 3. From the project to establish database connection 4. Put the database reverse engineering to generate POJO 5 ...

  • EJB ant script to deploy template works

    <? xml version = "1.0" encoding = "UTF-8"?> <! - Name Project name basedir build.xml file directory -> <project name="HelloWorld" basedir="."> <! - Property variables -> <! - The sour ...

  • Spring + Hibernate to use Glassfish Database Connection Pool

    applicationContext.xml file content <? xml version = "1.0" encoding = "UTF-8"?> <beans xmlns = " http://www.springframework.org/schema/beans " xmlns: xsi = " http://www.w3.org/2001/XMLSchema-instance " ...

  • hibernate to use the principle of

    The use of hibernate, implementation of data persistence. Has the following several processes. One configuration database connection information. Hibernate.config 2 configuration mapping. 3 use: the use of the process are the following steps: 3.1: Ge ...

  • spring struts2.0 hibernate environmental structures .. despair carried out more than one hour only with good.

    http://www.qqread.com/java/2008/06/f413762.html Look here. . Note added myeclipse support spring when necessary add the commons-dbcp database connection pool package. And to add hibernate support. . Finally add struts2 support. . Oh the lazy point. . . fu

blog comments powered by Disqus
Recent Entries
Tag Cloud
Random Entries