`
wanghailiang333
  • 浏览: 198160 次
  • 性别: Icon_minigender_1
  • 来自: 广西
社区版块
存档分类
最新评论

【收藏】ubuntu 10.10 安装配置LAMP

阅读更多

【收藏】ubuntu 10.10 安装配置LAMP

######################Ubuntu 10.10安装LAMP超级简单的方法:

$sudo apt-get install tasksel

$sudo  tasksel

##And select LAMP Server:

$sudo vi /var/www/info.php  //添加以下三行代码

<
phpinfo();

?>

$sudo /etc/init.d/apache2 restart

 

另附gd的安装(用tesksel是没有安装gd库的)

连接:http://www.netren.org/index.php/jeffreyguo/145-ubuntu-php5gd.html

 

在debian或ubuntu这样的系统内只需运行一个命令即可搞定:apt-get install php5-gd

 

以下是传统安装方法:

Installing Apache MySQL, PHP and phpmyadmin on Ubuntu10.10 Maverick Meerkat is far easier and less complicated than doing the same on Fedora 13, (my own experience).

Step 1:   You start by installing mysql

sudo apt-get install mysql-client mysql-server

Specify new password for the MySQl “root” user when prompted. Repeat it for a second time and you would have MySQL server and client installed.

Step 2:   Next,   install   Apache2:

sudo apt-get install apache2

And you get apache2 installed as well. To double check, point your browser to http://localhost, and you should see the Apache2 placeholder page like this.

 

Step 3:   To install support for PHP, do the usual

sudo apt-get install php5 libapache2-mod-php5

To verify that everything installed correctly and php support is enabled, you need to restart apache   by doing this

sudo /etc/init.d/apache2 restart

Create a test php file called   info.php , using a text editor of your choice (say gedit)

sudo gedit /var/www/info.php

and paste the following content and save the file

<?php phpinfo(); ?>

Now open the following page http://localhost/info.php and you should see something like this

 

Step 4:   To make MySQL, php and apache talk among themselves, you would have to install php5-mysql, below I am listing some more useful packages that you might want to install

sudo apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-common

Now refresh the info.php page that you have open in your browser and you should be able to see the support for mysql if you search for it by doing Ctrl+f, but before that don’t forget to restart apache again (sudo /etc/init.d/apache2 restart)

 

Step 5:   Finally install phpmyadmin

sudo apt-get install phpmyadmin

It would ask if you want to configure it automatically for apache or lightppd choose apache (by pressing “spacebar” to display a star as shown below and then use tab to navigate to Ok and press enter.

 

It would be automatically configured, however it would ask if you want a database installed and configured, choose   yes   and press enter

 

On the next screen you would be asked to enter the MySQL root password, that you provided in first step

 

next it would ask you to enter a password to be used by phpmyadmin to register with the database   (basically it would create a user called “phpmyadmin” the password is for that, most likely you won’t be needing this password ever. You can even choose to assign a random password for it.

 

Confirm that password on the next screen. Once you have made your choices the installation would finish and you should be able to access phpmyadmin by pointing your web browser to http://localhost/phpmyadmin/

You might need to restart apache again, for the above link to start working! (I didn’t have to restart apache, though.)

Super easy installation…  

分享到:
评论

相关推荐

    Ubuntu 10.10安装配置tftp服务.doc

    ### Ubuntu 10.10 安装配置 TFTP 服务详尽指南 #### 引言 TFTP(Trivial File Transfer Protocol),简单文件传输协议,是TCP/IP协议族中的一个重要成员,主要用于在网络中实现简单且低开销的文件传输服务。TFTP...

    Ubuntu10.10安装指南

    - 如果计算机连接网络,Ubuntu安装程序将自动下载语言包和其他更新,以提供更全面的功能和用户体验。 #### 完成安装 - **重启计算机**:安装完成后,系统将提示你重启计算机,移除Live CD或USB设备。 - **首次启动*...

    ubuntu 10.10网络配置10步曲

    ubuntu 10.10网络配置10步曲

    在U盘中安装Ubuntu 10.10的方法

    - **便携性和兼容性**:将Ubuntu安装在U盘上最大的优势就是其便携性。用户可以在不同的计算机上使用同一套系统环境,但需要注意不同计算机硬件配置的差异可能会影响系统兼容性。 - **维护与更新**:与硬盘安装的...

    Ubuntu10.10下tftp服务器配置笔记

    Ubuntu 10.10 下 TFTP 服务器配置笔记 本文档介绍了在 Ubuntu 10.10 操作系统下如何配置 TFTP 服务器,从虚拟机网络配置到 TFTP 服务器的搭建,旨在帮助读者快速搭建 TFTP 服务器。 一、虚拟机网络配置 在 Ubuntu...

    新手XP下硬盘安装ubuntu10.10图文教程

    Ubuntu 10.10在2010年10月正式发布,让众多Ubuntu用户都对这款全新的系统充满期望。毕竟,Ubuntu 10.10是Canonical公司推出的最为用户友好的系统,而且为它添加了很多新的功能。  熟悉Ubuntu系统的用户了解,在...

    Ubuntu10.10网卡配置文件重启失效.docx

    Ubuntu10.10网卡配置文件重启失效 Ubuntu10.10网卡配置文件重启失效是一个常见的问题,在Ubuntu10.10系统中,网卡配置文件的重启失效是由于/etc/network/interfaces文件的自动生成机制所致。这个文件头部有明确的...

    U盘安装ubuntu10.10图文教程

    U盘安装ubuntu10.10图文教程

    用Ubuntu10.10 dvd版本作为本地源,Ubuntu 10.10 DVD ISO挂载的方式来更新软件

    如果安装过程没有遇到任何网络错误,那么就说明你已经成功地使用Ubuntu 10.10 DVD ISO文件作为本地源来更新和安装软件了。 ### 总结 通过上述步骤,我们不仅学习了如何将Ubuntu 10.10 DVD ISO文件挂载为本地软件源...

    Ubuntu10.10下嵌入式开发环境的配置.doc

    ### Ubuntu10.10下嵌入式开发环境配置详解 #### 一、网络配置 在进行嵌入式开发之前,首先要确保Ubuntu系统的网络连接正常。对于使用锐捷网络接入方式的用户,可以通过安装`mentohust`软件来实现网络连接。 **...

    Ubuntu10.10

    ### Ubuntu 10.10 在 Windows XP 下的安装指南及关键知识点 #### 安装环境与准备 ...以上步骤和知识点详细介绍了如何在 Windows XP 下安装 Ubuntu 10.10,以及过程中需要注意的关键技术和配置细节。

    Ubuntu10.10 安装教程(图文)

    **Ubuntu 10.10 安装教程(图文)** Ubuntu 10.10,也被称为Maverick Meerkat,是Ubuntu操作系统的一个重要版本,发布于2010年10月。这个版本引入了许多新特性和改进,为用户提供了更流畅的体验。以下是一个详细的...

    Ubuntu 10.10安装Oracle 10g

    ### Ubuntu 10.10 安装 Oracle 10g 详尽教程 #### 一、概述 本文档提供了一套详细的指南,用于在 Ubuntu 10.10 操作系统上安装 Oracle 10g 数据库。该文档由长春工业大学软件职业技术学院的李阳撰写,针对的是那些...

    Ubuntu10.10下kgdb环境搭建

    **第一步:在主机上安装Ubuntu 10.10** 此步骤相对简单,按照官方指南或社区文档即可完成。 **第二步:安装虚拟机VMware软件** 1. 下载并安装VMware Workstation Full 7.1.4-385536.i386.bundle。 2. 在安装过程...

    Ubuntu 10.10 图形安装教程、网络设置、软件源、基本配置(超详细)

    Ubuntu 10.10 图形安装教程、网络设置、软件源、基本配置 Ubuntu 10.10 图形安装教程 一、准备安装 Ubuntu 10.10 系统 * Ubuntu 简介:Ubuntu 是一个社区开发的基于 Debian GNU/Linux 的操作系统,适合笔记本、...

    ubuntu10.10安装低版本的gcc编译器

    通过以上步骤,你已经成功地在Ubuntu 10.10上安装并配置了GCC 3.4版本,这将有助于解决因编译器版本不兼容而引起的问题,尤其是在处理如Qtopia这类项目的源代码时。尽管这种方法可能被视为一种“偷懒”的解决方案,...

    一步一步教你在win7下硬盘安装Ubuntu10.10或者ylmf_os3.0

    安装 Ubuntu10.10 或者 ylmf os3.0 需要注意一些关键步骤和细节,包括安装前的准备工作、安装前的注意事项、安装 Ubuntu10.10 或者 ylmf os3.0、硬盘安装 Ubuntu10.10 或者 ylmf os3.0、分区工具和安装完成。...

Global site tag (gtag.js) - Google Analytics