码迷,mamicode.com
首页 > Web开发 > 详细

Establish a website in 5 minutes

时间:2015-07-27 22:45:31      阅读:119      评论:0      收藏:0      [点我收藏+]

标签:

$sudo apt-get update                                    //update
 
$sudo apt-get install tasksel                           //install tasksel
 
$sudo tasksel                                           //check the condition of insallation
 
$sudo tasksel inctall lamp-server                       //install lamp
 
$sudo apt-get install phpmyadmin                        //install the mysql management tool
 
$sudo php5enmod mcrypt                                  //solve the lack of mcrypt
 
$sudo ln -s /usr/share/phpmyadmin/ /var/www/html        //establish soft link
 
$sudo service apache2 restart                           //restart apache service
 
Reference:
 
Appendix:
change the port 
1. /etc/apache2/ports.conf
$sudo vim /etc/apache2/ports.conf 

  (NameVirtualHost *:80)  

  ###there is no this part in the same file of my ununtu

  Listen 8001    

  ###the default port is 80
 
2. /etc/apache2/sites-enabled/000-default.conf
$sudo vim /etc/apache2/sites-available/000-default.conf
  <VirtualHost *:8001>
  ###change to the new port, the default one is 80
 
3. $ sudo service apache2 restart
 
Reference:
[1] http://blog.csdn.net/yeqishi/article/details/6867033

Establish a website in 5 minutes

标签:

原文地址:http://www.cnblogs.com/wubdut/p/4681353.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!