1、安装
安装Apache,MySQL以及PHP。
apt-get install apache2 mysql-server mysql-client php5 php5-gd php5-mysql
2、设置Apache
2.1、设置Apache支持PHP,HTML
echo 'AddType application/x-httpd-php .php .htm .html' >> /etc/apache2/apache2.conf
2.2、启用mod_rewrite模块
sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart
3、测试
3.1、测试Apache
dpkg -L apache2
/.
/usr
/usr/share
/usr/share/bug
/usr/share/bug/apache2
/usr/share/bug/apache2/control
/usr/share/doc
/usr/share/bug/apache2/script
/usr/share/doc/apache2
3.2、测试MySQL
mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 44
Server version: 5.1.49-1ubuntu8.1 (Ubuntu)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
+--------------------+
2 rows in set (0.00 sec)
mysql> exit
Bye
4、安装Zend Guard
Ubuntu 10.04下通过apt-get安装的php是5.3的,有些php程序使用了Zend Optimizer,php5.3又不支持,通过安装Zend Guard替代Zend Optimizer。
4.1、下载Zend Guard
地址:http://www.zend.com/en/products/guard/downloads
4.2、安装
分享到:
相关推荐
Ubuntu下LAMP(linux+apache+mysql+php)环境的配置与安装.pdf
Ubuntu下LAMP的图文按照教程,帮助初学者快速在Ubuntu下安装LAMP环境。
主要为大家详细介绍了Ubuntu下图形化LAMP环境配置,感兴趣的小伙伴们可以参考一下
1.安装 Apache2 2.重启 apache2 3.测试 apache2 是否安装成功 5.测试 php 是否安装成功 6.安装 mysql 数据库 7.安
ubuntu下LAMP环境的搭建步骤 自动步骤: 在新立得软件包管理器中选择系统-- 编辑--使用任务分组标记软件包 在打开的窗口中,勾选 LAMP SERVER 然后确定 在主窗口中点击红钯的对号 应用 按钮 主要介绍手动步骤以及...
据说搞好LAMP也就是Linux+Apache+Mysql+php就已经相当于一个中级php程序猿的水平,当然你的php要得会才行,之后就是搞好各种框架。其实这东西,并不神秘,非常简单。...在你装好Ubuntu之后,Ubuntu的安装具体请看:《图
安装 Ubuntu Server 11_04 以及 LAMP 全过程截图,此过程大约需要15分钟左右时间,包括安装 Ubuntu Server 以及 LAMP 环境。所安装的软件版本: •Ubuntu 11.04 (Natty) •Apache 2.2.17 •Mysql 5.1.54 •PHP 5.3.5
Ubuntu下LAMP(linux+apache+mysql+php)环境的配置与安装参考.pdf
初次在ubuntu 16.04 64位上搭建LAMP运行环境,按照这个步骤一步一步来,基本是OK的
jsj_ubuntuserver上搭建LAMP环境.pdf
这篇文档介绍如何在Ubuntu下安装配置Lamp环境
LAMP环境搭建 FTP server SSH server Ubuntu 系统
。。。
。。。
阿里云免费领了半年的服务器,lamp环境搭建了n次,这里总结一下基本操作。 安装apache2 apt install apache2 -y 安装mysql apt install mysql-server -y mysql安全配置 mysql_secure_installation 是否安装验证...
使用阿里云+LAMP环境+cpolar创建个人博客
这个教程是帮助人们在 Ubuntu 上搭建一个 LAMP(Linux+Apache+MySQL+PHP)服务器,使用 如下软件:apache2,PHP5(在 ubuntu6.10 或更低版本使用 PHP4),MySQL4.1 或者 5.0。 在这里我针对 ubuntu7.04 及以后版本适用的...
用于oa2013 ubuntu12.04下环境搭建用的源码包 包含配置文件