个人工具
登录
查看“源码安装LAMP”的源代码 - Ubuntu中文
页面
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“源码安装LAMP”的源代码
来自Ubuntu中文
←
源码安装LAMP
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
=== '''源码编译安装Apache+PHP5+MySQL5 ''' === 另外apache开启url_rewrite扩展,php开启curl,soap,imagick,mb_string,mysql,mysqli扩展等。 follow me! go! <br> ===== '''第一步,安装Apache2''' ===== 下载httpd-2.0.59.tar.gz,执行<br> <source lang="bash">sudo tar xzfv httpd-2.0.59.tar.gz cd httpd-2.0.59 ./configure --prefix=/usr/local/apache2 --enable-module=most --enable-rewrite --enable-shared=max --enable-so</source> <br> <br> 提示如下错误: checking for C compiler default output file name... configure: error: C compiler cannot create executables<br><br>原因是未安装libc6-dev ,执行<br> sudo apt-get install build-essential<br> 就ok了。 然后执行: sudo ./configure --prefix=/usr/local/apache2 --enable-module=most --enable-rewrite --enable-shared=max --enable-so<br> 未报错,接着执行 sudo make sudo make install sudo groupadd apache<br> sudo useradd -g apache apache<br> sudo passwd apache sudo chown -R apache:apache /usr/local/apache <br>sudo vi /usr/local/apache2/conf/httpd.conf 找到 User nobody Group #-1<br> 修改成 User apache Group apache<br> 把 #ServerName www.example.com:80 <br> 改为 ServerName *:80<br> 保存!<br> 执行命令sudo /usr/local/apache/bin/apachectl start 启动apache. 打开浏览器,访问[http://localhost http://localhost] 如果一切顺利,应该可以看到apache的测试页面。恭喜你,apache安装好了!<br> <br> 待续..... <br> <br> <br>
返回至
源码安装LAMP
。