Establish a website in 5 minutes

$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:

[1] http://blog.sina.com.cn/s/blog_7380598c0100wdl5.html

[2] http://blog.csdn.net/cheng830306/article/details/19641609

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

时间: 2024-08-22 23:40:36

Establish a website in 5 minutes的相关文章

Free Remote Desktop Sharing Software

TeamViewer 请添加链接描述TeamViewer is a remote PC support/control and screen-sharing tool. You can remote control a partner's desktop to give online assistance, or you can show your screen to a customer without worrying about firewalls, IP addresses and NA

【翻译贴】上海市第八届星光计划(2019年)技能大赛网站设计(中职组)决赛题目

两年一度的上海市星光计划比赛被誉为职业技能大赛的奥林匹克,比赛分为中职组和高职组 随着若干年的发展,比赛的题目强度逐年提高,逐步向世界职业技能大赛的比赛强度靠拢 这次翻译的题目是上海市第八届星光计划(2019年)技能大赛网站设计(中职教师组)的决赛题目.全文是英文的,学生组的题目和教师组差不多,个别地方降低了要求.故这次翻译了教师组的题目. 决赛要求 模块 A:站点设计 一.竞赛时间 150 min 二.竞赛任务及要求 1. INTRODUCTION: Frankfurt Internation

Make a Website

Introduction Web pages are created using HTML and CSS. HTML is used to establish a page's structure. It also lets us add text, links and images. CSS is used to control the design and layout of the page. HTML elements HTML elements are the building bl

分析和通译“Vulkan in 30 minutes”文

本文主要对"Vulkan in 30 minutes"简单分析与通译,有什么错误请指正. I've written this post with a specific target audience in mind, namely those who have a good grounding in existing APIs (e.g. D3D11 and GL) and understand the concepts of multithreading, staging resou

【C#】Learn C# in X minutes

??前几天在刷即刻的时候发现了一个GitHub上的项目,该项目名为"learn x in y minutes",这个名称就很简明扼要--"y分钟学习xxx",一看就很牛.对于这种大神级别的人物我是非常憧憬的,怀着欣喜和敬畏的心态,点下了star,然后我就把网页关了...不要问我为什么不趁热学习一下,毕竟众所周知,收藏就等于学会了嘛. ??n天后的今天,我终于想起来有这么一个伟大的项目还躺在我的列表里,我又把它翻了出来,学习了一下该项目里的c#文档.果然不负众望,收获

IO 异常:The Network Adapter could not establish the connection 怎么解决

IO 异常:The Network Adapter could not establish the connection 怎么解决

Permanent Link: 101 ways to speed up your Magento e-commerce website

101 ways to speed up your Magento e-commerce website May 18, 2010/in E-commerce, Magento /by Guido Jansen As you probably know by now, Google is Using site speed in web search ranking. And I couldn’t agree more: speed is important for your site, and

配置WebSite的IIS时遇到的问题与解决方法

1: Server Error Internet Information Services 7.5 Error Summary HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information Module IIS Web

Zabbix agent on Zabbix server is unreachable for 5 minutes故障!

Zabbix故障现象: Zabbix agent on Zabbix server is unreachable for 5 minutes故障! zabbix版本号:3.0.9 zabbix-检测中-事件 查看如下: 查看 more /var/log/zabbix/zabbix_agentd.log 20916:20170726:200017.136 the system time has been pushed back, adjusting active check schedule 20