在Ubuntu上安装Apache Server HTTPD

时间:2017-09-22 15:22:59

标签: php apache ubuntu

我正在尝试在我的Ubuntu上安装Apache Server以使用PHP中的网页。 我下载了pcreaprapr-util,我对其进行了配置,制作和安装。

然后,当我回到Apache文件夹时,出现以下命令

sudo ./configure --prefix=/home/test/Apache/srclib/apr-util 
                 --with-apr=/home/test/Apache/srclib/apr 
                 --with-pcre=/home/test/Apache/pcre 
                 --with-included-apr

succeded。

甚至命令

sudo make 

succeded。但是,当我键入sudo make install时,我收到以下错误:

Makefile:79: recipe for target 'install' failed
make[2]: *** [install] Error 1
make[2]: Leaving directory '/home/test/Apache/srclib/apr-util'
/home/test/Apache/build/rules.mk:75: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/test/Apache/srclib'
/home/test/Apache/build/rules.mk:75: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

拜托,你能给我一个小费吗?谢谢

2 个答案:

答案 0 :(得分:1)

可能缺少Apache 2.4.x所需的systems.kafka.consumer.zookeeper.connect=KAFKA_CLUSTER_FRONTING:2181 systems.kafka.producer.bootstrap.servers=KAFKA_CLUSTER_FRONTING:9092 task.inputs=kafka.topic1,kafka.topic2,kafka.topic3 apr版本?或者您可能只需要apr-util包裹?

-dev

然后用

编译
cd /usr/local/src/httpd-2.4.20/srclib
curl --remote-name http://archive.apache.org/dist/apr/apr-1.5.2.tar.gz
curl --remote-name http://archive.apache.org/dist/apr/apr-util-1.5.4.tar.gz
tar -xzvf apr-1.5.2.tar.gz
tar -xzvf apr-util-1.5.4.tar.gz
mkdir apr
mkdir apr-util
mv apr-1.5.2/ apr
mv apr-util-1.5.4/ apr-util
cd ..

资源良好:http://httpd.apache.org/docs/current/install.html 以下是他们对APR和APR-Util的看法:

  

APR和APR-Util确保已安装APR和APR-Util   在你的系统上。如果您不这样做,或者更愿意不使用系统提供的   版本,下载最新版本的APR和APR-Util   Apache APR,将它们解压缩到/ httpd_source_tree_root / srclib / apr中   / httpd_source_tree_root / srclib / apr-util(确保目录名称   没有版本号;例如,APR分布必须是   在/ httpd_source_tree_root / srclib / apr /)下并使用./configure   --with-included-apr选项。在某些平台上,您可能必须安装相应的-dev软件包以允许httpd构建针对您的   安装了APR和APR-Util的副本。

答案 1 :(得分:0)

你有apt-get吗? 如果是这样,您可以使用
sudo apt-get install apache2 apache2-utils libapache2-mod-php5 php5 php-pear php5-xcache php5-mysql php5-curl php5-gd。 这将安装所有Apache和PHP软件。

相关问题