`
jrails
  • 浏览: 98322 次
  • 性别: Icon_minigender_1
  • 来自: 珠海
社区版块
存档分类
最新评论

Ubuntu Mail Server 安装

阅读更多
本来Ubuntu下架建LAMP,需要apt安装很多包,记住那些包的名字是一件非常痛苦的事情,这里介绍另外一个简单方便的方法,使用tasksel安装LAMP套件。

先说说什么是Tasksel,它是一个Debian下的安装任务套件,如果你为了使你的系统完成某一种常规功能,而需要安装多个软件包时,我们就可以使用它了。这句话是什么意思呢?比如说,我们需要安装LAMP架设一个web服务器,为了完成这个功能,我们一般需要安装很多个软件包,用apt的话,我们就需要分别安装这些包(包含apache2、php5等等),以便构成一个完整的(符合我们要求的)LAMP系统。而如果使用tasksel的话,就可以用它方便的给我们安装一个完整的LAMP套件,而无须我们去关心具体需要由哪些包来构成这个统一的套件。在这里,LAMP是一个例子,象gnome-desktop等也同理。
其实使用tasksel安装LAMP套件的方法没什么好说的,很简单:

sudo tasksel install lamp-server

或者:

sudo tasksel

然后在tasksel界面中选LAMP-Server就OK了。

安装过程中会提示你输入mysql的root密码。

OK,安装完成了,现在你可以运行apache2来启动apache了,然后在浏览器里输入127.0.0.1,看看是不是已经显示测试页面了?

现在我们还要测试看看php5、mysql等是否也正常可以使用了,就在本机架设一个wordpress来试试看。首先,下载最新版的wordpress 2.31,解压,将文件夹放在/var/www/下。然后运行mysql -uroot -p进入mysql控制台,我们需要给wordpress创建一个数据库,运行“CREATE DATEBASEE wordpress;”,然后修改/var/www/wordpress/wp-config.php文件,更改mysql的账号密码以及数据库名称等,打开浏览器,输入127.0.0.1/wordpress/,是不是看到wordpress的安装界面了?简单的回答几个问题后,wordpress就架设成功了。


1、我运行apache2后,出现类似这样的错误提示:apache2: Could not determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName。

修改/etc/apache2/httpd.conf文件,在文件的最后添加一行:ServerName localhost就OK了(当然,这个文件有可能是空的,那直接把这行添加进去就可以了)。
2、当我用浏览器打开一个php页面后,浏览器并没有显示这个页面,而是提示我是否保存这个php文件?

那是因为apache没有正确的解析php,首先重新启动apache试试看(sudo /etc/init.d/apache2 restart),如果问题依旧,安装libapache2-mod-php5这个包,一般情况下这个包会随着LAMP套件一同安装,但是有可能会因为用户的其他操做误删除(比如说安装其他版本的php),然后重启apache後,你也许还要执行sudo a2enmod php5来激活它。
分享到:
评论
1 楼 dongcb678 2013-02-28  
东扯西拉 mail server怎么搞得lamp

相关推荐

    The Official Ubuntu Server Book

    Ubuntu Server is a complete, free server operating system that just works, with the extra Ubuntu polish, innovation, and simplicity that administrators love. Now, there’s a definitive, ...

    Ubuntu.15.04.Server.with.systemd.Administration.and.Reference.epub

    This book is designed as an Ubuntu 15.04 server reference, covering the Ubuntu servers and their support applications. Server tools are covered as well as the underlying configuration files and system...

    Ubuntu iRedMail Mail Server配置

    NULL 博文链接:https://jrails.iteye.com/blog/1018819

    Troubleshooting.Ubuntu.Server.1785284142

    Make life at the office easier for server administrators by helping them build resilient Ubuntu server systems About This Book Tackle the issues you come across in keeping your Ubuntu server up and ...

    简单的方法快速建立Ubuntu邮件服务器

    Ubuntu-server-8.04  安装到尾声时  选择[LAMP]因为squirrelmail(webmail)要用到www和php,  还要选择[Mail]这样就可以自动安装好postfix和dovecot-imap  再安装webmail软件  $sudo apt-get install ...

    Sams.Ubuntu.Unleashed.Aug.2006.part1

    Part III: Ubuntu as a Server Chapter 20 Apache Web Server Management Chapter 21 Administering Database Services Chapter 22 File and Print Chapter 23 Remote File Serving with FTP Chapter 24 ...

    Linux: Powerful Server Administration

    Install and configure common standard services such as web, mail, FTP, database and domain name server technologies Create kickstart scripts to automatically deploy RHEL 7 systems Use Orchestration ...

    Ubuntu The Complete Reference

    Chapter 1 - Introduction to Ubuntu Linux Chapter 2 - Installing Ubuntu Linux Chapter 3 - Interface Basics Part II - Configuration Chapter 4 - System Configuration Chapter 5 - Network Configuration ...

    Ubuntu_Linux宝典.zip

    Set up an NFS server? You'll learn it all and more with the expert guidance, tips, and techniques in this first-ever soup-to-nuts book on Ubuntu. From the basics for newcomers to enterprise ...

    Prentice.Hall.PTR.A.Practical.Guide.to.Ubuntu.Linux.2008.pdf

    21 exim4: Setting Up Mail Servers, Clients, and More 755 22 NIS: Network Information Service 781 23 NFS: Sharing Filesystems 799 24 Samba: Linux and Windows File and Printer Sharing 823 25 DNS/BIND: ...

    Sams.Ubuntu.Unleashed.Aug.2006.part2

    Chapter 17 Backing Up, Restoring, and Recovery Chapter 18 Network Connectivity Chapter 19 Remote System with SSH and Telnet Part III: Ubuntu as a Server Chapter 20 Apache Web ...

    英文原版-Ubuntu Linux Toolbox 2nd Edition

    shell primer, the desktop, administrations, servers, and security Delves into coverage of popular applications for the web, productivity suites, and e-mail Highlights setting up a server (Apache,...

    WinWebmail邮件服务器

     安全 · 支持 SMTP,SSL SMTP,POP3,SSL POP3,IMAP4,SSL IMAP4,LDAP,WebMail,CA Server,TLS/SSL,S/MIME,Daytime 服务。 · 支持数字证书服务并提供 资源太大,传百度网盘了,链接在附件中,有需要的...

    ubuntu linux 入门指南(第三版) practical-guide-to-ubuntu-linux

    The #1 Ubuntu server resource, fully updated for Ubuntu 10.4 (Lucid Lynx)–the Long Term Support (LTS) release many companies will rely on for years! Updated JumpStarts help you set up Samba, Apache, ...

    puppet-mail-server:不再积极开发

    傀儡mail_server概述Puppet mail_server是一个 Puppet 模块,可以使用 Postfix 和 Dovecot 快速部署全栈邮件服务器。 它支持虚拟和本地邮件传递。特征在 Ubuntu 上运行(截至 2014 年 11 月 15 日,在 Ubuntu 14.04 ...

    Sams.Publishing.Ubuntu.Unleashed.2008.Edition.pdf

    Part IV Ubuntu as a Server 16 File and Print...........381 17 Apache Web Server Management.......407 18 Remote File Serving with FTP.........439 19 Handling Electronic Mail..........471 20 Proxying ...

    posty_chef:完整安装Posty Mailserver的Chef Cookbook

    要求食谱使用以下外部食谱:timezone_lwrp 的openssl mysqld ruby_build 克拉马夫使用Berkshelf时会自动解决所有依赖关系 平台当前支持并测试了以下平台: Ubuntu 14.04 用法该配方可以多种方式使用。 建议无经验的...

    Install_Zimbra:自动安装ZIMBRA 8.6-脚本

    该脚本在所有Linux发行版上安装Zimbra Mail Server 8.6,即: UBUNUT 14.04 LTS(甘地) CENTOS 7.1(Gandi) DEBIAN 7(甘地) 用 运行“ Zimbra_Install_ALL.sh” 例子 $ ./Zimbra_Install_ALL.sh

    ansible-zimbra-single:Ansible角色-单服务器Zimbra

    该角色可自动完成在CentOS 8和Ubuntu 18.04上安装单服务器Zimbra开源版v8.8.15和v9.0.0的过程。 要求 必须是全新的CentOS 8或Ubuntu 18.04最低安装 静态网络配置必须已经设置 Ansible控制节点必须安装“ netaddr” ...

Global site tag (gtag.js) - Google Analytics