yum install apache mysql php time

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/
Quote:
/ * 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.
Quote:
yum-y update
After a system update, yum install prompt if an error message, perform the following command to repair.
Quote:
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:
Quote:
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.
Quote:
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:
Quote:
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

分类:OS 时间:2011-08-28 人气:116
分享到:
blog comments powered by Disqus

相关文章

  • PhpMyAdmin root password change problem Access denied for user 'root' @ 'localhost' (using password 2011-05-06

    I just started to give out a Mysql played rough, full finished the other day after the database installation manual modified the root user's password, and then re-login with root user is all OK. But when it landed again today reported 1045 error code

  • linux system mysql database root password to modify the method 2011-05-12

    The first method: / Local / server / mysql / bin / mysqladmin-u root password 'new_password' When the mysql installation, the default is no root password, use this method to set the installation root password. [Root @ uc ~] # / local / server / mysql

  • linux system to modify the mysql database root password method 2011-05-12

    The first method: / Local / server / mysql / bin / mysqladmin-u root password 'new_password' As the mysql installation time, there is no default root password, use this installation method to set the root password. [Root @ uc ~] # / local / server /

  • Database connection pool 2010-02-06

    Database Connection Pool overview: Database connection is an expensive key limited resources, this web page in a multi-user applications, especially embodied. The management of the database connection can significantly affect the entire application s

  • About the database connection pool 2010-03-07

    Database connection is an expensive key limited resources, this web page in a multi-user applications, especially embodied. The management of the database connection can significantly affect the entire application scalability and robustness to the ap

  • Change mysql root password in several ways 2011-07-21

    Author: Xiaojian Bin | can be reproduced, reprinted, be sure to hyperlink when the form of articles marked the original source and author information and copyright Web site: http://www.xiaojb.com/archives/it/mysqlroot.shtml Method 1: In / usr / local

  • ubuntu default root password 2011-01-06

    After installing Ubuntu suddenly realized that not set the root password, do not know the password to enter the root user can not be naturally lower. Online search, I turned out to be the case. Ubuntu's The default root password is random, that is, e

  • CentOS forget the root password 2011-04-29

    Forget the need to enter the root password into single user mode to change. Operation is simple: 1, after the grub boot screen, select the linux boot entry, then press the e key to edit the boot entry. 2, select the line beginning with kernel, press

  • hibernate configuration data source. hibernate - Database Connection Pool 2009-04-30

    In order to configure their own testing environment, and required their entire framework of the abstract, the introduction of the test framework, the tests have their own test cases. Database connection pool but found the old problems, questions and

  • C # connection Access.SQL Server.Oracle.MySQL.DB2 and SyBase six different database procedure source 2010-06-17

    This article lists the C # to connect Access, SQL Server, Oracle, MySQL, DB2 and SyBase six different database programs and the need to pay attention to the point source. 1.C # Connection Access Code: using System.Data; using System.Data.OleDb; strin

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

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

CodeWeblog.com 版权所有 黔ICP备15002463号-1

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