×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

to give u a sample of apache configuration as ur future reference, here is my apache configuration.

本文发表在 rolia.net 枫下论坛OPTIM="-O3 -march=i686 -mcpu=i686 -funroll-loops -fomit-frame-pointer" \
CFLAGS="-DDYNAMIC_MODULE_LIMIT=1" \
./configure \
--prefix=/home/httpd \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--libexecdir=/usr/lib/apache \
--includedir=/usr/include/apache \
--sysconfdir=/etc/httpd/conf \
--localstatedir=/var \
--runtimedir=/var/run \
--logfiledir=/var/log/httpd \
--datadir=/home/httpd \
--proxycachedir=/var/cache/httpd \
--mandir=/usr/share/man \
--add-module=src/modules/experimental/mod_mmap_static.c \
--activate-module=src/modules/php4/libphp4.a \
--enable-module=php4 \
--activate-module=src/modules/perl/libperl.a \
--activate-module=src/modules/ldap/mod_auth_ldap.c \
--enable-module=perl \
--enable-module=rewrite \
--enable-module=proxy \
--enable-module=log_agent \
--enable-module=log_referer \
--enable-module=so \
--disable-module=status \
--disable-module=userdir \
--disable-module=negotiation \
--disable-module=imap \
--server-uid=www \
--server-gid=www更多精彩文章及讨论,请光临枫下论坛 rolia.net
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / 完了,完了,死定了,江湖救急!!!俺把老板的linux+apache服务器搞的起不来了,哪位高手现在有空,我给您打电话,求救求救!!!
    是我把apache重新install运行了install
    所以再启动就报错Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration
    据说是重新编译的时候没加--enable-module=so
    我怎么把它恢复过来阿。救命救命!!
    • :O 别怕别怕。肯定有人能帮你。
    • 可怜的天鹅蛋,帮你UP
    • Enable DSO support, read this page. ur statement is right already, recompile it with --enable-module=so
      • thanks, I did, but it seems it installed the apache to /var/apache even I have configure it with prefix=/usr/local/apache, anyway, my boss has found a professional guy to repair it :( thanks anyway
        • to give u a sample of apache configuration as ur future reference, here is my apache configuration.
          本文发表在 rolia.net 枫下论坛OPTIM="-O3 -march=i686 -mcpu=i686 -funroll-loops -fomit-frame-pointer" \
          CFLAGS="-DDYNAMIC_MODULE_LIMIT=1" \
          ./configure \
          --prefix=/home/httpd \
          --bindir=/usr/bin \
          --sbindir=/usr/sbin \
          --libexecdir=/usr/lib/apache \
          --includedir=/usr/include/apache \
          --sysconfdir=/etc/httpd/conf \
          --localstatedir=/var \
          --runtimedir=/var/run \
          --logfiledir=/var/log/httpd \
          --datadir=/home/httpd \
          --proxycachedir=/var/cache/httpd \
          --mandir=/usr/share/man \
          --add-module=src/modules/experimental/mod_mmap_static.c \
          --activate-module=src/modules/php4/libphp4.a \
          --enable-module=php4 \
          --activate-module=src/modules/perl/libperl.a \
          --activate-module=src/modules/ldap/mod_auth_ldap.c \
          --enable-module=perl \
          --enable-module=rewrite \
          --enable-module=proxy \
          --enable-module=log_agent \
          --enable-module=log_referer \
          --enable-module=so \
          --disable-module=status \
          --disable-module=userdir \
          --disable-module=negotiation \
          --disable-module=imap \
          --server-uid=www \
          --server-gid=www更多精彩文章及讨论,请光临枫下论坛 rolia.net
          • many many thanks, that was the problem that I made, I just used $make clean, and cleaned everything and $make install, this make the things worse. The server hosting company just repaired it, it cost my boss some moneys.
            I will learn more before I change them next time, thanks thanks.
    • you can contact your system admin for the whole server recovery, it is up to your backup, hope you have the daily backup.
      • thanks, it was recovered, we don't have fixed system admin. I'm trying to be one :), but I know that's a long way to go , thanks