[原创] Apache 2.x与WLS9.1集成-Solaris篇

目的:使用Apache做WebLogic Server 9.1集群的负载分发
1. 软件环境描述
Sun Solaris 10
WebLogic Server 9.1
Solaris 10安装自带Apache 2,位置为/usr/apache2
使用weblogic用户安装WebLogic Server 9.1,位置为 ~/bea/weblogic91
2.生成并修改Apache配置文件
最好使用root用户登陆,否则需要修改的地方很多,比如端口,日志文件的位置等,这里不讨论
#cd /etc/apache2/
#cp httpd.conf-example httpd.conf
#vi httpd.conf
在httpd.conf文件最后添加如下的配置:
#weblogic pugin configuration
LoadModule weblogic_module modules\mod_wl_20.so
<IfModule mod_weblogic.c>
WebLogicCluster 12.1.39.210:7001,12.1.39.213:7002
MatchExpression *
</IfModule>
3.拷贝lib文件
注意WebLogic Server 9.1的plugin包在安装时是需要单独安装的,完全安装不默认安装,需要自定义安装。并且plugin包的位置不在server/lib下,而是在server/plugin下:
#cd /usr/apache2
#mkdir modules
#cp ~/bea/weblogic91/server/plugin/solaris/sparc/mod_wl_20.so /usr/apache2/modules
4. 修订bug
需要在apache的Home目录下创建logs目录,这应该是plugin的一个bug,否则apache启动插件会报错。这也是用root用户操作的一个原因,如果是weblogic用户启动apache,请将logs目录给weblogic用户所有权限
#cd /usr/apache2
#mkdir logs
5. 启动或者停止apache
#cd /usr/apache2/bin
# ./apachectl start
# ./apachectl stop
如果weblogic用户启动,可以使用如下命令:
#cd /usr/apache2/bin
$ ./apachectl -f ~/httpd/httpd.conf (表示weblogic用户的apache配置文件路径)
6. 其他
如果有中文问题:
修改apache的配置文件httpd.conf,把AddDefaultCharset 后面的改成gb2312就可以了
然后重新启动apache

如果并发用户数不够,修改httpd.conf配置文件:
<IfModule prefork.c>
StartServers 10
MinSpareServers 10
MaxSpareServers 15
ServerLimit 2000
MaxClients 1500
MaxRequestsPerChild 0
</IfModule>
Apache性能调整可以参考http://www.chinalinuxpub.com/read.php?wid=719

Similar Messages

  • Help!Apache compiling with gcc in Solaris 10

    Greetings
    I am having problems with Apache 1.3.
    When I am running the script ./src/Configure my output is:
    #./Configure
    Using config file: Configuration
    Creating Makefile
    + configured for Solaris 2100 platform
    + setting C pre-processor to gcc -E
    + using "tr [a-z] [A-Z]" to uppercase
    + checking for system header files
    + adding selected modules
    ./helpers/TestCompile: make: not found
    + using builtin Expat
    ./Configure: make: not found
    + checking sizeof various data types
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    + doing sanity check on compiler and options
    ./helpers/TestCompile: make: not found
    ** A test compilation with your Makefile configuration
    ** failed. The below error output from the compilation
    ** test will give you an idea what is failing. Note that
    ** Apache requires an ANSI C Compiler, such as gcc.
    ======== Error Output for sanity check ========
    ./helpers/TestCompile: make: not found
    ============= End of Error Report =============
    Aborting!
    I am root, my PATH is
    /usr/bin:/usr/ucb:/etc:/usr/local/bin:/opt/netscape:/usr/css/bin/:/bin:/usr/openwin/bin:/usr/sbin:/
    I am missing something stupid, I know but I can't find it!!!!Help please I am a newbie.
    I am curious. Has anyone been able to compile succesfully apache server with gcc in Solaris 10?
    Thanks,

    Thanks,
    It was only that.!!!
    But now I have the following problem, I can't create executables when I type make. The output is:
    when I am in the src/folder
    #make
    ===> regex
    <=== regex
    ===> os/unix
    gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED os.c
    In file included from /usr/include/sys/wait.h:24,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
    /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
    /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
    /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
    /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
    /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
    /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    In file included from /usr/include/sys/procset.h:24,
    from /usr/include/sys/wait.h:25,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1096,
    from os.c:21:
    /usr/include/signal.h:111: error: parse error before "siginfo_t"
    /usr/include/signal.h:113: error: parse error before "siginfo_t"
    *** Error code 1
    make: Fatal error: Command failed for target `os.o'
    Current working directory /web-download/apache_1.3.33/src/os/unix
    *** Error code 1
    The following command caused the error:
    for i in regex os/unix ap main lib modules; do \
    echo "===> $i"; \
    case ".Solaris 2100" in \
    .OS390 | .TPF) ( cd $i && make SDP='' OPTIM='') || exit 1;; \
    *) ( cd $i && make SDP='' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ' RANLIB='ranlib' OPTIM='') || exit 1;; \
    esac; \
    echo "<=== $i"; \
    done
    make: Fatal error: Command failed for target `subdirs'
    but when I am typing one step up is.
    ===> src
    ===> src/regex
    <=== src/regex
    ===> src/os/unix
    gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED os.c
    In file included from /usr/include/sys/wait.h:24,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
    /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
    /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
    /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
    /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
    /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
    /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    In file included from /usr/include/sys/procset.h:24,
    from /usr/include/sys/wait.h:25,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1096,
    from os.c:21:
    /usr/include/signal.h:111: error: parse error before "siginfo_t"
    /usr/include/signal.h:113: error: parse error before "siginfo_t"
    *** Error code 1
    make: Fatal error: Command failed for target `os.o'
    Current working directory /web-download/apache_1.3.33/src/os/unix
    *** Error code 1
    The following command caused the error:
    for i in regex os/unix ap main lib modules; do \
    echo "===> src/$i"; \
    case ".Solaris 2100" in \
    .OS390 | .TPF) ( cd $i && make SDP='src/' OPTIM='') || exit 1;; \
    *) ( cd $i && make SDP='src/' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ' RANLIB='ranlib' OPTIM='') || exit 1;; \
    esac; \
    echo "<=== src/$i"; \
    done
    make: Fatal error: Command failed for target `subdirs'
    Current working directory /web-download/apache_1.3.33/src
    *** Error code 1
    The following command caused the error:
    case "xi86pc-sun-solaris2.2100" in \
    x*390*) C89STEPS="0xffffffff"; export C89STEPS;; \
    esac; \
    cd ./src; make SDP=src/ all
    make: Fatal error: Command failed for target `build-std'
    Current working directory /web-download/apache_1.3.33
    *** Error code 1
    The following command caused the error:
    make -f ./Makefile root= build-std
    make: Fatal error: Command failed for target `build'
    I am newbie with Solaris and gcc so I have no so much idea what is missing there.
    Thanks,
    Juan

  • Can not build Apache 2.2.11 for Solaris 10 x86 11/06

    Dear all,
    during the 'make' procedure for Apache 2.2.11 under Solaris 10 x86 we
    see these errors:
    /tmp/apache/httpd-2.2.11/srclib/apr/libtool silent mode=compile
    gcc -g -O2
    -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -
    D_LARGEFILE64_SOURCE
    -I/tmp/apache/httpd-2.2.11/srclib/pcre -I. -I/tmp/apache/httpd-2.2.11/
    os/unix
    -I/tmp/apache/httpd-2.2.11/server/mpm/prefork
    -I/tmp/apache/httpd-2.2.11/modules/http
    -I/tmp/apache/httpd-2.2.11/modules/filters
    -I/tmp/apache/httpd-2.2.11/modules/proxy -I/tmp/apache/httpd-2.2.11/
    include
    -I/tmp/apache/httpd-2.2.11/modules/generators
    -I/tmp/apache/httpd-2.2.11/modules/mappers
    -I/tmp/apache/httpd-2.2.11/modules/database
    -I/tmp/apache/httpd-2.2.11/srclib/apr/include
    -I/tmp/apache/httpd-2.2.9/srclib/apr-util/include
    -I/tmp/apache/httpd-2.2.11/modules/proxy/../generators
    -I/tmp/apache/httpd-2.2.11/modules/ssl
    -I/tmp/apache/httpd-2.2.11/modules/dav/main -prefer-non-pic -static -c
    htpasswd.c && touch htpasswd.lo
    /tmp/apache/httpd-2.2.11/srclib/apr/libtool silent mode=link gcc -
    g -O2
    -o htpasswd htpasswd.lo -lm /tmp/apache/httpd-2.2.11/srclib/pcre/
    libpcre.la
    /tmp/apache/httpd-2.2.11/srclib/apr-util/libaprutil-1.la -lexpat
    /tmp/apache/httpd-2.2.11/srclib/apr/libapr-1.la -luuid -lsendfile -lrt
    -lsocket
    -lnsl -lpthread
    Undefined symbol first referenced in file
    atomic_swap_32 /tmp/apache/httpd-2.2.11/srclib/apr/.libs/libapr-1.so
    atomic_cas_ptr /tmp/apache/httpd-2.2.11/srclib/apr/.libs/libapr-1.so
    atomic_swap_ptr /tmp/apache/httpd-2.2.11/srclib/apr/.libs/libapr-1.so
    atomic_inc_32_nv /tmp/apache/httpd-2.2.11/srclib/apr/.libs/libapr-1.so
    atomic_dec_32_nv /tmp/apache/httpd-2.2.11/srclib/apr/.libs/libapr-1.so
    atomic_cas_32 /tmp/apache/httpd-2.2.11/srclib/apr/.libs/libapr-1.so
    ld: fatal: Symbol referencing errors. No output written to .libs/htpasswd
    collect2: ld returned 1 exit status
    *** Error code 1
    make: Fatal error: Command failed for target `htpasswd'
    Any idea how to solve this problem?
    THX, Rainer

    We got it!!!
    An Upgrade to Solaris 10 x86 5/08 did the trick but don't ask me why.
    THX, Rainer

  • Agent 2.2, Apache 2.0.59 and Solaris 10 - problem- Urgent

    Hi,
    We are using Solaris 10 (T2000), apache 2.0.59 and Policy Agent 2.2.. Apache Server 2.0.59 works just fine. When I installed Policy Agent 2.2. The Apache start gives following error:
    /usr/local/apache2/bin/apachectl start
    Syntax error on line 1 of /etc/opt/SUNWam/agents/apache/config/_usr_local_apache2_conf/dsame.conf:
    Cannot load /opt/SUNWam/agents/apache/lib/libamapc_ssl.so into server: ld.so.1: httpd: fatal: relocation error: file /opt/SUNWam/agents/apache/lib/libamapc_ssl.so: symbol ap_pstrdup: referenced symbol not found
    Does anybody knows whats going wrong?
    Thanks,
    Vivek

    I'm not sure of the exact error issued, but if one uses the Apache version that comes bundled with Solaris, then problems arise. If that's not what you've done, then never mind. Here's the warning from the documentation
    PDF = http://192.18.109.11/819-4770/819-4770.pdf
    HTML = http://docs.sun.com/app/docs/doc/819-4770
    Caution - Do not use the version of Apache HTTP Server that comes bundled with Solaris 9 Operating System or with Solaris 10 Operating System. The bundled Apache HTTP Server package is incomplete. Any attempt to Install Agent for Apache HTTP Server on a bundled version of Apache HTTP Server is likely to fail.
    Therefore, download the desired version of Apache HTTP Server from the Apache web site at http://www.apache.org/ before attempting to install the agent.
    John D.

  • Compiling Apache with PERL module on Solaris 8

    Hi there,
    After the Richard's reply, I found the Apache sources on the intallation CD 2/2. And after a while I successful compile the apache WITH ITS STANDARD modules with the following command:
    $ ./configure --prefix=/usr/apache \
    --enable-module=most \
    --enable-shared=max \
    --with-layout=Solaris
    $ make
    $ make install
    But the above "configure" does not compile the companion mod_perl. So, I tried:
    ... $ ./configure --prefix=/usr/apache \
    --enable-module=most \
    --enable-shared=/usr/src/apache/mod_perl/src/modules/perl/mod_perl.c \
    --add-module=max \
    --enable-shared=max \
    --with-layout=Solaris
    but the above command just copies the "mod_perl.c" to the diretory
    "usr/src/apache/src/modules/extra"
    missing the corresponding *.h
    Then trying
    $ make
    The compilation fails because of ALL the
    files on the directory
    /usr/perl5/5.00503/sun4-solaris/CORE
    are not found.
    Any Hint?
    Thanks in advance
    C�sar

    have you tried downloading the source from apache.org and compiling it?
    ive installed apache on sol8 many times, but all from apache.. not from the cd..
    alphademon.com

  • How to install Apache Web Server with PHP on Sun Solaris Sparc machine

    Hi,
    We are trying to install the Apache Web Server and the PHP package on a Sun Solaris Sparc machine running on SunOS 5.8. We are having compilation problems with the source code of both these packages.
    Does anybody know if there are ready solaris packages for Apache and PHP available from where we can download and install instead of source code compilation?
    Or any instructions / things to watch for when installing Apache with PHP (if anybody has tried installing Apache with PHP on Sun Solaris earlier) is most welcome.
    Thanks,
    Harish

    Apache should be bundled along with Solaris check in "/var/apache" in Solaris 8 and Solaris 9
    php is available at www.php.net
    I found an old document for installing PHP maybe this will help.
    Cheers
    -Dhruva
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++Installing PHP 3.x for Apache 1.x.x on Solaris
    Introduction
    This document describes how to install PHP for Apache on Solaris.
    You should have Apache installed before trying to install PHP.
    If you want to use PHP with MySQL then you must install MySQL first.
    Before we Begin
    1. These instructions assume that you have Apache installed according to instructions.
    Getting PHP
    1. You must be logged in as root to perform this installation.
    su root
    2. I save all my downloads in:
    /usr/local/dist
    If you don't already have one, you may need to create that directory now:
    mkdir /usr/local/dist
    3. You can get PHP 3.0.14 from here(www.php.net).
    cd /usr/local/dist
    ftp ftp.php.net
    cd pub/distributions
    bin
    get php-3.0.14.tar.gz
    bye
    Installing PHP
    1. We will install PHP in /usr/local/build, but use a tricky tar command
    to do it in on hit from the download directory:
    cd /usr/local/dist
    tar xvfz php-3.0.12.tar.gz -C ../build
    Compiling PHP
    1. First let's get where the action is:
    cd /usr/local/build/php-3.0.14
    2. You now have 3 options:
    * Simple PHP install without MySQL - goto step 3
    * Simple PHP install with MySQL - goto step 4
    * Custom PHP install - goto step 5
    3. Simple PHP install without MySQL. Next, jump to step 6.
    ./configure --with-apache=../apache_1.3.12
    4. Simple PHP install with MySQL. MySQL must be installed before you can configure PHP to use it. I recommend that MySQL should always be reachable with /usr/local/mysql. Even if you install it else where you
    should create a symbolic link from /usr/local/mysql. Otherwise the compiler can have problems finding the mysqlclient library. The command
    should look like this:
    ./configure with-mysql=/usr/local/mysql with-apache=../apache_1.3.12
    Next, jump to step 6.
    5. Custom PHP install. Take a look at the available configuration directives by using this command:
    ./configure --help
    6. Now we can make the PHP executable. This may take a while.
    make
    7. Now we install the PHP module with:
    make install
    Adding the PHP Module to Apache
    1. Now we have to setup Apache to include the PHP module:
    cd ../apache_1.3.12
    2. Re-configure Apache to use the PHP module. You should use your previous Apache configure command along with the PHP activate module directive.
    You can see your previous Apache configure command by doing:
    cat config.status
    You can configure Apache using the previous command with the added PHP module by doing:
    ./config.status --activate-module=src/modules/php3/libphp3.a
    If you used the simple Apache install from instructions the command will look like this:
    ./configure prefix=/usr/local/apache activate-module=src/modules/php3/libphp3.a
    3. Make and install Apache with PHP enabled:
    make
    4. We need to stop the server before installing the files:
    /usr/local/apache/bin/apachectl stop
    5. Now we can install the new binaries:
    make install
    6. Start apache again (now running the new php enabled version):
    /usr/local/apache/bin/apachectl start
    Setting Up PHP
    1. We have to tell Apache to pass certain file extensions to PHP. We do this in Apache's httpd.conf file.
    cd /usr/local/apache/conf
    2. Edit the httpd.conf file. If you do a search for php you will find a couple of commented out lines telling Apache to use the PHP module. You should uncomment them to look like this.
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps
    3. I prefer to use the extension .phtml, you can use whatever extension you like (even .html) by adding lines to httpd.conf like this:
    AddType application/x-httpd-php3 .phtml
    Check that it Works
    1. We have to restart Apache to make these changes take effect on the running server.
    cd /usr/local/apache/bin
    ./apachectl restart
    2. Apache should now be running with PHP enabled. The server version should include PHP/3.0b2.
    ./apachectl status
    Apache Server Status for dev.synop.com
    Server Version: Apache/1.3.9 (Unix) PHP/3.0.12
    Server Built: Oct 25 1999 00:37:07
    3. Now it is time to test PHP with a page. The simplest thing to do is create a page called test.php3. My file is here. This file contains the
    following text:
    <?php phpinfo(); ?>
    4. Point your browser at this file on the virtual host which you used:
    http://localhost/test.php3

  • Solaris 10 onboard Apache 1.3.x authenticating against PAM?

    Hi fellow admins,
    can anyone give me some hints on how to get the Apache 1.3 delivered with Solaris 10 to authenticate against the local unix files (passwd + shadow, via PAM?)
    I've grabbed mod_auth_pam, managed to compile it with some modifications to apxs and the Makefile, and Apache loads the module just fine,
    but no matter how I set up my pam.conf, I always end up with "No account present for user" in my Apache log.
    From googling for this string, I see that other people usually get a user name after "user ", which I don't - suggesting that Apache/mod_auth_pam doesn't pass the user name on to PAM?
    On a side note.. I'm considering to move on to Apache 2.2.x soon anyways - is PAM authentication any easier with that version, or will I face the same problems?
    My main reason for switching from htpasswd to PAM is the automatic account locking after X failed logins - can I get to this goal on a different route without PAM?

    Compiling Apache 1.3 with gcc on linux or unix? If you are using unix, I would be compiling with cc and not gcc. You have gcc set to compile using regular expressions and I believe that has to be specified during SunOS install as posix compliant.

  • Weblogic 5.1 sp3 with Apache or Stronghold on Solaris 2,7

    Hi All,
    We are planning to use Apache or Stronghold(most probably Stronghold as it
    supports SSL which I was told Apache does not support) and WebLogic 5.1 sp
    3. Has anyone used this combination before if so we would like to know if
    you have faced any integration issues with this ? If you do what kind of
    integration issues were they ? Just connection related or scalability
    related ? Has anyone used WebLogic built-in webservevr in production
    environment ? How does it scale up ?
    Thanks
    Prasad

    Would you please let me know when exactly(date) the sp4 was released
    Thanks,
    Ravi.
    Vinod Mehra <[email protected]> wrote:
    Checkout the 510 service pack 4. It has these binaries:
    1. mod_wl.so for standard Apache (non EAPI) installations
    2. mod_wl_ssl.so for Apache + SSL/EAPI installations(Stronghold, modssl etc)
    3. mod_wl_ssl_raven.so for Apache + Raven installations
    mod_wl_ssl_raven.so was required because Raven applies frontpage patches which
    makes it incompatible with mod_wl_ssl.so
    --Vinod.
    Filip Hanik wrote:
    Apache supports SSL with two implementations
    1. http://www.apache-ssl.org/
    2. Apache with OpenSSL (mod_ssl)
    On Solaris there are no problems integrating weblogic and Apache.
    I would not recommend using the weblogic web server, the performance of image
    streaming and serving static webpages is not the greatest - apache will do a
    much better job for you.
    Weblogic also has a plug in for apache on Solaris that supports fail over. ie.
    if one of your weblogic server goes down then apache can reconnect to another
    one
    Filip Hanik
    [email protected]
    In article <396a70f4$[email protected]>,
    [email protected] says...
    Hi All,
    We are planning to use Apache or Stronghold(most probably Stronghold as it
    supports SSL which I was told Apache does not support) and WebLogic 5.1 sp
    3. Has anyone used this combination before if so we would like to know if
    you have faced any integration issues with this ? If you do what kind of
    integration issues were they ? Just connection related or scalability
    related ? Has anyone used WebLogic built-in webservevr in production
    environment ? How does it scale up ?
    Thanks
    Prasad

  • Error with Solaris 8 and Apache 2.0.39

    Hello everyone.
    I've been trying to install the binary version of Apache 2.0.39 on Solaris 8. With the binary files copied to /usr/local/apache2 and using the following command:
    . apachectl -f /usr/local/apache2/conf/httpd.conf -k start
    I get the following error:
    Syntax error on line 235 of /usr/local/apache2/conf/httpd.conf:
    Cannot load /usr/local/apache2/modules/mod_auth_digest.so into server: ld.so.1:
    /usr/local/apache2/bin/httpd: fatal: relocation error: file /usr/local/apache2/m
    odules/mod_auth_digest.so: symbol __floatdidf: referenced symbol not found
    Following the same steps with the binary version (for RedHat) works perfectly under Linux. Does anyone have any ideas?

    After searching the web, found the answer:
    Need to create a symbolic link for the needed file "libgcc_s.so.1".
    ie. If "libgcc_s.so.1" is located under "/usr/local/lib" then
    cd /usr/lib
    ln -s /usr/local/lib/libgcc_s.so.1 libgcc_s.so.1
    Then reconfigure and compile Apache 2.

  • WLS 6.1 SP1 on Windows NT/2000 and Apache 2.0.40 Solaris 8

    I tried to use apache plug-in to forward request to a wls6.1sp1 on Win2000.
    So I installed Apache 2.0.40 running on Solaris 8 and simply copy mod_wl.so from
    WL_HOME\lib\Solaris to APATHE_HOME/libexec. A few lines has been added to my httpd.conf,
    which are:
    LoadModule weblogic_module libexec/mod_wl.so
    <IfModule mod_weblogic.c>
         WebLogicHost myweblogicserver.com WebLogicPort 7001
    </IfModule>
    <Location /weblogic>
         SetHandler weblogic-handler
    </Location>
    When I verify the syntax of the httpd.conf file with the following command:
    /export/home/apache2/bin/apachectl configtest
    Here are the errors I got:
    Cannot load /export/home/apache2/libexec/mod_wl_20.so into server: ld.so.1
    /export/home/apache2/bin/httpd:fatal: relocation error:file
    /export/home/apache2/libexec/mod_wl_20.so: symbol apr_pool_create: referenced
    symbol not found.
    Has anyone expereinced a similiar problem?
    Thanks,
    Yanjing

    You need the latest plugin.
    Get it from at least 6.1 SP4.
    Eric
    "Michael Congdon" <[email protected]> wrote in message
    news:[email protected]..
    >
    I am having the exact same problem with Apache 2.0.40 on Solaris 2.7 andWebLogic
    6.1 SP 1.
    Please let me know if you get any help. I don't know of anyone who hassuccessfully
    used Apache 2.0 w/WebLogic.
    "Yanjing Liu" <[email protected]> wrote:
    I tried to use apache plug-in to forward request to a wls6.1sp1 on
    Win2000.
    >>
    So I installed Apache 2.0.40 running on Solaris 8 and simply copymod_wl.so
    from
    WL_HOME\lib\Solaris to APATHE_HOME/libexec. A few lines has been added
    to my httpd.conf,
    which are:
    LoadModule weblogic_module libexec/mod_wl.so
    <IfModule mod_weblogic.c>
    WebLogicHost myweblogicserver.com WebLogicPort 7001
    </IfModule>
    <Location /weblogic>
    SetHandler weblogic-handler
    </Location>
    When I verify the syntax of the httpd.conf file with the followingcommand:
    >>
    /export/home/apache2/bin/apachectl configtest
    Here are the errors I got:
    Cannot load /export/home/apache2/libexec/mod_wl_20.so into server:ld.so.1
    >>
    /export/home/apache2/bin/httpd:fatal: relocation error:file
    /export/home/apache2/libexec/mod_wl_20.so: symbol apr_pool_create:referenced
    symbol not found.
    Has anyone expereinced a similiar problem?
    Thanks,
    Yanjing

  • How Can I Add mod_ssl to Built In Apache Server?

    Hi,
    I would like to add mod_ssl as a DSO module to the Apache web server that comes with Solaris 9. However I have been unable to find any decent instructions on how to do so. Any help would be appreciated. I have included below a post I have made to a newsgroup which summarises what I have tried so far.
    ---Newsgroup Post---
    I have been following the instructions for adding mod_ssl to the integrated httpd server in Solaris that was posted here last year (a copy is included below). I am attempting to install mod_ssl onto a Solaris 9 system and I am using the relevant version of mod_ssl. It is my preferance to do it this way, retaining the included version of httpd, rather than to install the web server from another source.
    Anyway, after following the instructions below I have attepted to launch the htppd server and receive the following error message:
    Syntax error on line 252 of /etc/apache/httpd.conf:
    Cannot load /usr/apache/libexec/libssl.so into server: ld.so.1: /usr/apache/bin/httpd: fatal: relocation error: file /usr/apache/libexec/libssl.so: symbol __umoddi3: referenced symbol not found
    ./apachectl start: httpd could not be started
    Can anyone tell me how I might resolve this problem?
    Regards,
    Bernard Lineham
    ---Previous Message---
    Well, first of all, why are you using the Sun Freeware apache? Solaris 8
    ships with apache as well, and if you're up-to-date with your patches,
    you will have 1.3.26 and Sun will take care of backporting any security
    issues.
    Here is my procedure for adding SSL support to the Sun Apache:
    1. Make sure you have the the SUNWapchr and SUNWapchu packages installed.
    2. Make sure you have the latest Apache patch from Sun installed. For
    Solaris 8, that would be patch number 109234 (get the highest revision).
    3. You need to have OpenSSl installed.
    4. Now unpack the modssl-distribution (you will need the one that goes
    with your apache-version, in this case 2.8.9)
    5. ./configure with-apxs=/usr/apache/bin/apxs with-ssl=SYSTEM
    6. You should patch line 23 of pkg.sslmod/Makefile to read:
    SSL_LDFLAGS=-L$(SSL_LIBDIR) -R$(SSL_LIBDIR)
    This ensures that your modssl will be able to find openssl later on.
    7. make
    You could now take the file pkg.sslmod/libssl.so and dump it in
    /usr/apache/libexec, then add the appropriate statements to your
    httpd.conf. But for extra bonus points, we're going to make a package
    instead.
    Create a file called 'prototype' in the mod-ssl directory, with these
    contents:
    f none /usr/apache/libexec/libssl.so=pkg.sslmod/libssl.so 755 root other
    i ./pkginfo
    Create a file called 'pkginfo' in the mod-ssl directory with these contents:
    PKG=Apmodssl
    NAME=Apache modssl
    ARCH=sparc
    VERSION=2.8.9
    CATEGORY=system
    VENDOR=none
    [email protected]
    CLASSES=none
    (you might want to change the 'email' setting
    Now run 'pkgmk -o' and you will find your new package in /var/spool/pkg.
    To install (only now do we need root permissions):
    pkgadd Apmodssl
    If you were to install mod-ssl the 'regular' way (recompiling all of
    apache etc) it would modify the httpd.conf for you, quite extensively.
    This procedure (on purpose) does not modify the httpd.conf at all.
    Some of the changes you will need to activate your modssl are:
    Add a 'LoadModule ssl_module libexec/libssl.so'
    If your httpd.conf has a ClearModule statement, and then a bunch of
    AddModule statements, do as the Romans do and add:
    'Addmodule mod_ssl.c'
    Add to the type-specifications:
    'AddType application/x-x509-ca-cert .crt'
    'AddType application/x-pkcs7-crl .crl'
    'Listen 80 443'
    And a -lot- of SSL specific statments that is a bit much to reproduce
    here. Mail me if you get this far. Or run a diff between a pristine
    httpd.conf and one mangled by modssl.
    Now this all works because Sun explicitly compiled their Apache to work
    this way. If you want to know all the flags they used, install the Sun
    package SUNWapchS (and reinstall the Apache patch so your sources are up
    to date, too). Then look in /usr/src/apache/README.sfw which tells how
    they compiled their apache. The procedure above might just as well work
    for the SunFreeware version, -if- they compiled with EAPI and
    --enable-shared.<br />
    Hope this helps a bit.
    Regards, Paul Boven.

    The version of Apache that comes default with Solaris might not be compiled for that I am not positive though. I downloaded and compiled Apach 2 and compiled mod_ssl and got it working with no problems you might want to try that.

  • New to Solaris, looking for pointers

    Here's the deal. I work at a company where we do J2EE developement. Until now, we've done all of our hosting on Linux (mostly white box versions of RHEL, some Debian).
    We decided to give a couple Sun servers with Solaris a try over the Dell servers with Linux.
    My question is, as someone who is a pretty strong Linux user/admin, what differences can I expect from Solaris? Is there something in particular that is so different that it will cause me problems figuring it out at first? I do pretty much all of the admin through SSH, so GUI differences aren't really an issue.
    I'll be running Resin J2EE app server and/or Apache and running backups, some cron stuff here and there.
    Any other Linux to Solaris converts out there? What did you notice at first that was either awesome, or a real PITA?

    My question is, as someone who is a pretty strong
    Linux user/admin, what differences can I expect from
    Solaris?Completely different userland. The whole filesystem is a little more divided, but has a very logical reasoning behind it. Still, it maybe confusing at first not to find apachtctl in /usr/sbin but /usr/apache/bin.
    And well, "Solaris is not Linux". If you have a fair experience with the commandline and you know how to use commands like 'man' and 'apropos' well you should be decently safe. Still, it won't hurt to start by giving http://docs.sun.com a good workout. It sounds cliche but you'll notice that the documentation has a little higher quality than most Linux distributions (even though I have to admit that both RedHat and SuSE (Novell) are doing an excellent job when it comes to their own docs).
    Is there something in particular that is so
    different that it will cause me problems figuring it
    out at first?Depends on what you plan to do. Like I said; its not Linux so if you expect to be able and use rpm to install/remove stuff, expect to use /etc/sysconfig/network to setup your LAN, etc, etc. you'll be in for a surprise.
    But thats where apropos and the URL I mentioned above come in very handy.
    As to pro's / con's; I think thats a silly thing to do. Solaris is WAY out of Linux' leage, it simply wouldn't make sense to even try and start a comparison. Where Sun has to keep its customers satisfied Linux developers can simply wing certain pieces of software. Its a whole different game.
    But still; what I liked best? Robustness, stability, security and the option to back out of an update after you installed it. Something which can be hell on distributions like Debian / RedHat.

  • How can I get Firefox 3.6 to startup and load at a particular screen position - using cmd-line or other, in a Solaris SPARC/UNIX env? The xterm program uses the -geometry args as a manner of specifying position on the screen.

    I am running Firefox 3.6 - on Solaris 10 SPARC env.
    I am using the X11 - TWM(X-windows Manager). I have tried to alter the .twmrc files for the WM, but I need firefox to declare the position in the client program, else the TWM will force me to place it every time. When I use the xterm with the "-geometry" I can specify the position the xterm is opened and positioned there automatically. I have tried using the Xresource configuration settings(maybe I am doing something wrong here), but the X-server ignores it... so I believe that only firefox app can manage the positioning?
    I am out of ideas, I suppose the next step is to question the source... Any ideas of how I can achieve this auto positioning in TWM. (I have been looking into X-events to manage the placement, but this is messy)

    The version of Apache that comes default with Solaris might not be compiled for that I am not positive though. I downloaded and compiled Apach 2 and compiled mod_ssl and got it working with no problems you might want to try that.

  • Install modssl-2.8.22 on Solaris 9

    I am installing apache 1.3.33 on solaris 9, with modssl 2.8.22. configure, make comes back with following error. Can some one help me find what is going on here. Does this mean I dont have good compiler or
    ./configure \
    --prefix=/usr/local/apache-1.3.33 \
    --with-apache=/webdocs/tmp/apache/apache_1.3.33/ \
    --with-ssl=/webdocs/tmp/apache/openssl-0.9.7f \
    --with-mm=/webdocs/tmp/apache/mm-1.3.0 \
    --enable-shared=ssl \
    --enable-rule=SHARED_CORE \
    --enable-module=so \
    --disable-module=imap \
    --disable-module=status \
    --disable-module=include \
    --disable-module=userdir \
    --enable-module=expires \
    --enable-module=headers \
    --enable-module=log_agent \
    --enable-module=log_referer \
    --enable-module=usertrack
    gcc -c -I/webdocs/tmp/apache/mm-1.3.0 -I../os/unix -I../include -DSOLARIS2=290 -DMOD_SSL=208119 -DEAPI -DEAPI_MM -fPIC -DSHARED_CORE `../apaci` util.c
    util.c: In function `ap_find_token':
    util.c:1367: error: `test_char_table' undeclared (first use in this function)
    util.c:1367: error: (Each undeclared identifier is reported only once
    util.c:1367: error: for each function it appears in.)
    util.c:1367: error: `T_HTTP_TOKEN_STOP' undeclared (first use in this function)
    util.c: In function `ap_escape_logitem':
    util.c:1444: error: `test_char_table' undeclared (first use in this function)
    util.c:1444: error: `T_ESCAPE_LOGITEM' undeclared (first use in this function)
    util.c: In function `ap_escape_errorlog_item':
    util.c:1496: error: `test_char_table' undeclared (first use in this function)
    util.c:1496: error: `T_ESCAPE_LOGITEM' undeclared (first use in this function)
    util.c: In function `ap_escape_shell_cmd':
    util.c:1567: error: `test_char_table' undeclared (first use in this function)
    util.c:1567: error: `T_ESCAPE_SHELL_CMD' undeclared (first use in this function)
    util.c: In function `ap_escape_path_segment':
    util.c:1671: error: `test_char_table' undeclared (first use in this function)
    util.c:1671: error: `T_ESCAPE_PATH_SEGMENT' undeclared (first use in this function)
    util.c: In function `ap_os_escape_path':
    util.c:1700: error: `test_char_table' undeclared (first use in this function)
    util.c:1700: error: `T_OS_ESCAPE_PATH' undeclared (first use in this function)
    *** Error code 1
    make: Fatal error: Command failed for target `util.o'
    Current working directory /webdocs/tmp/apache/apache_1.3.31/src/main
    *** Error code 1
    make: Fatal error: Command failed for target `subdirs'
    Current working directory /webdocs/tmp/apache/apache_1.3.31/src
    *** Error code 1
    make: Fatal error: Command failed for target `build-std'
    Current working directory /webdocs/tmp/apache/apache_1.3.31
    *** Error code 1
    make: Fatal error: Command failed for target `build'

    Given that you're seeing "undeclared", your compilation probably has incorrect conditions which are including or defining (or not including or defining) things inappropriately for your system.
    You may wish to look at blastwave.org for pre-compiled versions of Apache/mod_ssl.
    - Stephen

  • Configuring httpd-ssl.conf on Leopard and Apache 2.2.6

    Hi everybody,
    I recently migrated to Leopard from Tiger 10.4.10. On my Tiger client I had installed my own web server using mod_ssl with Apache 1.3 server. On Leopard, apache 2.2.6 and OpenSSL 0.9.7 are now installed and configurations files have changed.
    Since two weeks, I'm trying to install mod_ssl without success on my machine. Thereafter, I will show only what's relevant from two configuration files :
    First -> Httpd.conf (which is in /etc/apache2/)
    #My port 80 is blocked by my isp
    Listen 8080
    <IfDefine SSL>
    LoadModule ssl_module libexec/apache2/mod_ssl.so
    </IfDefine SSL>
    LoadModule php5_module /usr/local/php5/libphp5.so
    User www
    Group www
    </IfModule>
    <IfModule mod_ssl.c>
    Listen 8080
    Listen 8083
    </IfModule>
    DocumentRoot "/Library/WebServer/Documents"
    <IfModule dir_module>
    DirectoryIndex index.htm lndex.php index.htm default.html
    </IfModule>
    ErrorLog /private/var/log/apache2/error_log
    # Virtual hosts
    #Include /private/etc/apache2/extra/httpd-vhosts.conf
    # Local access to the Apache HTTP Server Manual
    Include /private/etc/apache2/extra/httpd-manual.conf
    # Distributed authoring and versioning (WebDAV)
    #Include /private/etc/apache2/extra/httpd-dav.conf
    # Various default settings
    #Include /private/etc/apache2/extra/httpd-default.conf
    # Secure (SSL/TLS) connections
    #Include /private/etc/apache2/extra/httpd-ssl.conf
    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    DirectoryIndex index.html index.php
    </IfModule>
    #Include /private/etc/apache2/other/*.conf
    # end of httpd.conf
    Second ->httpd-ssl.conf (which is in /etc/apache2/extra/)( I elided personnal information)
    <IfModule mod_ssl.c>
    listen 8080
    listen 8083
    </IfModule>
    AddType application/x-x509-ca-cert .crt
    AddType application/x-pkcs7-crl .crl
    SSLPassPhraseDialog builtin
    #SSLSessionCache "dbm:/private/var/run/ssl_scache"
    SSLSessionCache "shmcb:/private/var/run/ssl_scache(512000)"
    SSLSessionCacheTimeout 300
    SSLMutex "file:/private/var/run/ssl_mutex"
    <VirtualHost default:8080>
    #Just to keep things sane...
    DocumentRoot "/Library/WebServer/Documents"
    ServerName myadress.com
    ServerAdmin [email protected]
    SSLEngine off
    </VirtualHost>
    <VirtualHost default:8083>
    # General setup for the virtual host
    DocumentRoot "/Library/WebServer/Documents"
    ServerName myadress.com
    ServerAdmin [email protected]
    ErrorLog "/private/var/log/apache2/error_log"
    TransferLog "/private/var/log/apache2/access_log"
    # SSL Engine Switch:
    # Enable/Disable SSL for this virtual host.
    SSLEngine on
    # SSL Cipher Suite:
    SSLCipherSuite ALL:!ADH:!EXPORT56:RC4RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:eNULL
    # Server Certificate:
    SSLCertificateFile "/private/etc/apache2/ssl.key/server.crt"
    #SSLCertificateFile "/private/etc/apache2/server-dsa.crt"
    # Server Private Key:
    SSLCertificateFile "/private/etc/apache2/ssl.key/server.key"
    #SSLCertificateKeyFile "/private/etc/apache2/server-dsa.key"
    # Server Certificate Chain:
    #SSLCertificateChainFile "/private/etc/apache2/server-ca.crt"
    # Certificate Authority (CA):
    #SSLCACertificatePath "/private/etc/apache2/ssl.crt"
    SSLCACertificatePath "/private/etc/apache2/ssl.key/"
    #SSLCACertificateFile "/private/etc/apache2/ssl.crt/ca-bundle.crt"
    # Certificate Revocation Lists (CRL):
    #SSLCARevocationPath "/private/etc/apache2/ssl.crl"
    #SSLCARevocationFile "/private/etc/apache2/ssl.crl/ca-bundle.crl"
    # Client Authentication (Type):
    #SSLVerifyClient require
    #SSLVerifyDepth 10
    # Access Control:
    #<Location />
    #SSLRequire ( %{SSL_CIPHER} !~ m/^(EXP|NULL)/ \
    # and %{SSLCLIENT_S_DNO} eq "Snake Oil, Ltd." \
    # and %{SSLCLIENT_S_DNOU} in {"Staff", "CA", "Dev"} \
    # and %{TIME_WDAY} >= 1 and %{TIME_WDAY} <= 5 \
    # and %{TIME_HOUR} >= 8 and %{TIME_HOUR} <= 20 ) \
    # or %{REMOTE_ADDR} =~ m/^192\.76\.162\.[0-9]+$/
    #</Location>
    # SSL Engine Options:
    #SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
    <FilesMatch "\.(cgi|shtml|phtml|php)$">
    SSLOptions +StdEnvVars
    </FilesMatch>
    <Directory "/Library/WebServer/CGI-Executables">
    SSLOptions +StdEnvVars
    </Directory>
    # SSL Protocol Adjustments:
    BrowserMatch ".MSIE." \
    nokeepalive ssl-unclean-shutdown \
    downgrade-1.0 force-response-1.0
    # Per-Server Logging:
    CustomLog "/private/var/log/apache2/sslrequestlog" \
    "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
    </VirtualHost>
    ### end of httpd-ssl.conf
    When I uncomment this line in httpd.conf :
    LoadModule ssl_module libexec/apache2/mod_ssl.so
    and try to send the 'apachectl start' command in terminal nothing happens. Apache seems to hang and
    no "Apache/2.2.6 (Unix) DAV/2 PHP/5.2.5 configured -- resuming normal operations" in my console log. Of course, nothing in my error_log.
    I've read somewhere else that there would be a bug in 9.7 version of modssl and that we should install 9.8 version. Could anybody confirm this ?
    Is there somebody here who succeeded installing ssl on apache 2.2.6 and Leopard 10.5.1 ?
    Thanks for helping me
    Regards

    You need the latest plugin.
    Get it from at least 6.1 SP4.
    Eric
    "Michael Congdon" <[email protected]> wrote in message
    news:[email protected]..
    >
    I am having the exact same problem with Apache 2.0.40 on Solaris 2.7 andWebLogic
    6.1 SP 1.
    Please let me know if you get any help. I don't know of anyone who hassuccessfully
    used Apache 2.0 w/WebLogic.
    "Yanjing Liu" <[email protected]> wrote:
    I tried to use apache plug-in to forward request to a wls6.1sp1 on
    Win2000.
    >>
    So I installed Apache 2.0.40 running on Solaris 8 and simply copymod_wl.so
    from
    WL_HOME\lib\Solaris to APATHE_HOME/libexec. A few lines has been added
    to my httpd.conf,
    which are:
    LoadModule weblogic_module libexec/mod_wl.so
    <IfModule mod_weblogic.c>
    WebLogicHost myweblogicserver.com WebLogicPort 7001
    </IfModule>
    <Location /weblogic>
    SetHandler weblogic-handler
    </Location>
    When I verify the syntax of the httpd.conf file with the followingcommand:
    >>
    /export/home/apache2/bin/apachectl configtest
    Here are the errors I got:
    Cannot load /export/home/apache2/libexec/mod_wl_20.so into server:ld.so.1
    >>
    /export/home/apache2/bin/httpd:fatal: relocation error:file
    /export/home/apache2/libexec/mod_wl_20.so: symbol apr_pool_create:referenced
    symbol not found.
    Has anyone expereinced a similiar problem?
    Thanks,
    Yanjing

Maybe you are looking for

  • How can I configure my IP Camera for remote access

    Hi All, I hope you can help. I bought one of these http://www.wansview.com/Products/NCB-541W29654.html which seems to be a pretty common camera, made by I think Foscam (as the link on the site for setup links you to http://foscam.us/blog/foscamipcame

  • Installing WIndows XP

    I am able to run Boot camp and after I insert the WIndows XP service pack it runs through the formatting bit ok. When it starts to copy files I get an error message that 'installer cannot copy' some random file i can retry a few times but it never wo

  • Error While Installing CE 7.1 Trial version

    Hi, I'm getting the following error and the installation stops in step 3 while installing CE 7.1 trail version. The step createAccounts with step key |CE_DevSystem_App|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|3|0|NW_Users_Create_Do|ind|i

  • ISE with CWA and wired guest access via WLC Anchor

    Can an Anchor WLC (WLCa) provide a wired guest LAN service if the wlan guest access is using CWA? We are deploying a WLAN only ISE solution (it is a full license ISE though) but they just want a few wired guest ports.  I was hoping to add L2 switch t

  • 20GB storage? why so little fr

    I recently bought a used NOMAD Jukebox 2 LX 20 GB on ebay. It works great and has been easy to figure out. My problem is that it says it is a 20GB, but with less than 00 songs loaded (most are mp3's, most in the 5 - 6 MB range) it says I have less th