LAMP环境的搭建
来源:互联网 发布:上海德语培训班知乎 编辑:程序博客网 时间:2024/05/21 06:18
LAMP环境搭建还是相对简单的,首先得将apache、Mysql、php下载下来,如下图
apache安装步骤
1.configure
安装时候指定安装目录/user/local/apache
2.make
3.make install
安装好后,界面文件结构如下
使用bin/apachectl restart启动apache
然后地址栏输入ip测试,提示It works!代表安装成功。
Mysql安装步骤
之前安装了好多次,现在就不在重复操作了。mysql安装可以参考如下,分别为MySQL5.6.30和MySQL5.1版本安装。
http://blog.csdn.net/hsd2012/article/details/51232612
http://blog.csdn.net/hsd2012/article/details/51222972
PHP安装
使用tar -zxvf php-7.0.6.tar.gz解压后
1.configure编译
./configure –with-apxs2=/usr/local/apache/bin/apxs –with-mysqli=/user/local/mysql/bin/mysql_config
2.make
3.make install
连接apache与php
打开apache下的httpd.conf配置文件,添加如下代码
#如果匹配到.php, .php2, .php3, .php4, .php5, .php6或phtml结尾的文件,使用libphp7.so模块进行解析。<FilesMatch "\.ph(p[2-6]?|tml)$"> SetHandler application/x-httpd-php</FilesMatch>
重启apache服务器
测试
在/usr/local/apache/htdocs目录下添加index.php文件,文件内容如下:
<?phpphpinfo();
测试界面如下:
okey,代码LAMP环境搭建成功了。当然,如果按照过程中,发现缺少某个软件包,如gcc、ncurses、libxml等,将其安装即可。
1 0
- LAMP环境的搭建
- LAMP环境的搭建
- LAMP环境的搭建
- LAMP环境的搭建
- LAMP环境的搭建
- LAMP环境的搭建
- LAMP环境的搭建
- LAMP环境的搭建
- LAMP环境的搭建
- LAMP环境的搭建
- LAMP环境的搭建
- LAMP环境的搭建
- LAMP环境的搭建
- LAMP的环境的搭建
- LAMP的环境的搭建
- LAMP环境的搭建之一
- wordpress的LAMP环境搭建
- LAMP环境的详细搭建
- C#将托管DLL嵌入exe文件
- 为Python添加默认模块搜索路径[转]
- 一种哈弗曼编码思想流程
- C++ 值传递、指针传递、引用传递详解
- Opencv及Kinect/OpenNI常用学习网址
- LAMP环境的搭建
- Bean property 'productService' is not writable or has an invalid setter method. Does the parameter t
- 第13周实践项目2动物这样叫(1)
- Sorting Railway Cars
- OJ提交题目中的语言选项里G++与C++的区别
- 【HDU】 1104 Remainder
- Deeplearning常用的模型以及方法
- hdu5524 Subtrees
- 动态规划12之1017