Ubuntu中apache的安装和配置
来源:互联网 发布:理性主义 知乎 编辑:程序博客网 时间:2024/06/05 07:58
sudo apt-get update
下载安装httpd-2.4.4.tar(apache)源码包。
可能出现下列报错:
1.解决apr not found ——下载apr-1.4.6.tar.gz
tar -zxf apr-1.4.6tar.gz
./configure--prefix=/usr/local/apr
make
make install
2.解决APR-util notfound问题
tar -zxfapr-util-1.3.12.tar.gz
./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config
make
make install
3.若缺少,则安装pcre
sudo apt-get install libpcre3libpcre3-dev
4.编译Apache
./configure --prefix=/usr/local/apache2--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util/
make
make install
配置:
源码安装,修改配置文件conf/httpd.conf即可。
主要修改几个地方:
Listen的ip+端口;
DocumentRoot =path;
<Directorypath>下的访问权限(allow all,grant all之类的);
启动和关闭服务:
/usr/local/apache2/bin/路径下:
sudo ./apachectl -k start
sudo ./apachectl -k stop
- Ubuntu中apache的安装和配置
- Ubuntu中安装和配置Apache
- Ubuntu Apache的安装和配置以及CGI的设置
- Ubuntu Apache的安装和配置以及CGI的设置
- Ubuntu Apache的安装和配置以及CGI的设置
- Ubuntu Apache的安装和配置以及CGI的设置
- ubuntu中apache的配置
- Ubuntu 14.04 mysql-apache-php 的安装和配置
- Ubuntu 14.04 Web服务器--Apache的安装和配置
- Linux Ubuntu系统下Apache Maven的安装和配置
- Ubuntu 14.04 Web服务器--Apache的安装和配置
- Ubuntu 14.04 Web服务器--Apache的安装和配置
- Ubuntu 14.04 Web服务器,Apache的安装和配置
- Ubuntu 14.04 Web服务器--Apache的安装和配置
- Ubuntu 14.04 Web服务器--Apache的安装和配置
- Ubuntu下PHP+MySQL+Apache+PHPStorm的安装和配置
- ubuntu中apache的安装
- ubuntu中ANT的安装和配置
- poj1068_模拟
- 2012年10月25日
- poj1159_dp
- 基本装系统的方法
- 如何提高C++的效率
- Ubuntu中apache的安装和配置
- ubuntu tomcat 配置过程出现的问题
- shell - if []
- ubuntu下 Axis 配置
- 保存一些链接
- 在u-boot中制作升级菜单
- 求连续子数组的最大和,并记录其起始结束位置
- 【问题】Cannot find any information on property 'userPhone' in a bean of type 'Bean'.
- win7,win8安装pl2303驱动失败的解决方法-关闭驱动自动安装功能