[Linux] Instructions for installing Apache, PHP, MySQL, phpMyAdmin easiest to run a website

Thứ Hai, 26 tháng 5, 2014
This article can refute his writing but rewriting it in more detail. 

I.Cai set of services HTTPD, PHP, MySQL 

3 Run the following command: 
Code:
  yum install httpd *
 yum install php53 *
 yum install mysql-5 * 
Note: 
- Other php versions: http://php.net/downloads.php 
- The other mysql version: http://www.mysql.com/products/enterprise/database/ 

Following is the configuration for httpd (keep it simple ah) 
- Open the httpd.conf file 
Code:
  vi / etc / httpd / conf / httpd.conf 
- Find line 265 
Code:
  press Shift +;
 type set nu
 enter
 press Shift +;  Next
 type 265
 enter 
- Then edit www.example.com into his domain 
- Save the exit: 
Code:
  Shift +;
 wq
 enter 
Restart apache + mysql 
Code:
  service httpd start
 service mysqld start 
II. Install phpMyAdmin 

First download the phpmyadmin package: 
Code:
  wget http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/3.4.10.1/phpMyAdmin-3.4.10.1-all-languages.tar.gz 
PhpMyAdmin latest code you can see here: http://www.phpmyadmin.net/home_page/downloads.php 

Extract: 
Code:
  tar-vxzf [php + tab] 
Copy unzipped folder into the document root: 
Code:
  cp-R [php + tab] / var / www / html / phpmyadmin 
Rename config file: 
Code:
  mv / var / www / html / phpmyadmin / config.sample.inc.php / var / www / html / phpmyadmin / config.inc.php 
Find the line: 

revised to: 

Add user to mysql: 
Code:
  mysqladmin-u root password <yourpassword> 
Now you just need to type the domain name / phpmyadmin phpmyadmin is accessible. Using mysql account to login created above. 

Web server root directory will be located at: / var / www / html 

In addition, you can also install phpmyadmin by typing the command: 
Code:
  yum install phpmyadmin 
I wish you success!
Chia sẻ bài viết ^^
Other post

All comments [ 0 ]


Your comments