......(note the above address = 16 * 4-byte each = 64-bit address), so the theoretical max. memory per process = 16 TB, but of course limited by other factors, e.g. physical RAM and swap space, etc.
If you need more memory for your web server process (assume you do not have any memory leaks in your application, etc), then one option is to run 64-bit process.
In addition to bug fixes and stability improvements (>40, http://docs.sun.com/app/docs/doc/820-6373/ghyks?a=view ), this release
introduces better compatibility with CGI and FastCGI applications by
providing REQUEST_URI and SCRIPT_FILENAME variables, support for
default-sun-web.xml, and certification of OpenSolaris 2008.11 as a
supported platform.
All users of Web Server 7.0 through Web Server 7.0 Update 3 are
encourage to upgrade.
Thank you to the entire product team for another great release!
"
So, please download and try it.
I can see many resolved issues in this latest u4 release, at
then it will log the host header of the incoming request, e.g.
apple:/export/home/iws6.1sp10> telnet localhost 60103 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET /banner.html HTTP/1.1 Host: dummytest (note this)
Sometimes, if you set a too restrictive umask (e.g. 007) in the .profile file of the running uid of the web 7 instance server process, you may see the status of the instance server as NOT RUNNING in Admin GUI (even it is actually running). This is because the pid file in the <temp-path> directory is not readable by the admin server process running uid.
e.g. if .profile of uid=web has a umask = 007, then if cu login as web, then switch user to root, then startserv to start up a web 7 instance. If cu runs Admin server process as uid=web too, then the Admin GUI will show instance NOT RUNNING.
apple:/export/home/iws7.0u3/https-www/config> ls -l /tmp/https-www-8d5fe446 total 16 -rw-rw---- 1 root other 5 Aug 26 19:00 pid srwxrwx--- 1 root other 0 Aug 26 19:00 webservd-wdog.socket srwxrwx--- 1 root other 0 Aug 26 19:00 webservd.socket
(note the file permission, which is NOT world-readable, so if Admin process uid is not in this
group, it will not be able to read it properly).
When Admin process runs as uid=web, then it will not read above pid file successfully. The Admin GUI will display it as NOT RUNNING even when it is actually running.
To fix it, use a less restrictive umask , e.g. umask 022, then the pid file will have :
apple:/export/home/iws7.0u3/https-www/config> ls -l /tmp/https-www-8d5fe446 total 16 -rw-r--r-- 1 root other 5 Aug 27 11:17 pid
(note - now is world-readable)
Then the Admin server process can read it properly and show it as RUNNING in Admin GUI.
The other possible fix is to use a uid in the same group (e.g. group=other in above) to run Admin process.
"This add-on provides a pre-built PHP engine for use with Sun Java System Web Server 7.0. The pre-built PHP engine is optimized for the operating system platforms supported by Sun Java System Web Server 7.0. The PHP engine is provided in Sun Java System Web Server's native NSAPI library form as well as the popular FastCGI form. An installer is provided to ease installation and setup. "
I downloaded and then tried in a Linux machine,
[root@magxxxx php]# bin/php -h
Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>] php <file> [args...] -a Run interactively -b <address:port>|<port> Bind Path for external FASTCGI Server mode -C Do not chdir to the script's directory -c <path>|<file> Look for php.ini file in this directory -n No php.ini file will be used -d foo[=bar] Define INI entry foo with value 'bar' -e Generate extended information for debugger/profiler -f <file> Parse <file>. Implies `-q' -h This help -i PHP information -l Syntax check only (lint) -m Show compiled in modules -q Quiet-mode. Suppress HTTP Header output. -s Display colour syntax highlighted source. -v Version number -w Display source with stripped comments and whitespace. -z <file> Load Zend extension <file>.
After I set it up and run phpinfo(), then it will show:
http://xxx.sun.com:7021/info.php
PHP Version 5.2.0
System
Linux magellanic 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686
mbstring extension makes use of "streamable
kanji code filter and converter", which is distributed under the GNU
Lesser General Public License version 2.1.
apple:/export/home/iws6.1sp9> find . -name webservd ./bin/https/bin/webservd ^C apple:/export/home/iws6.1sp9> ./bin/https/bin/webservd -v Sun Microsystems, Inc. Sun ONE Web Server 6.1SP9 B01/11/2008 14:24
Or, you can always run,
apple:/export/home/iws6.1sp9/https-apple.asia.sun.com> ./start -version Sun Microsystems, Inc. Sun ONE Web Server 6.1SP9 B01/11/2008 14:24
apple:/export/home/iws7.0u3/https-apple.asia.sun.com/bin> ./startserv --version Sun Microsystems, Inc. Sun Java System Web Server 7.0U3 B06/16/2008 12:00
2. if this is a JES installation, then you can run
apple:/export/home/opt/SUNWwbsvr-JES3> https-apple.asia.sun.com/start -version Sun Microsystems, Inc. Sun ONE Web Server 6.1SP9 B01/11/2008 14:24
You will get following error if you run #1 above in a JES installation,
apple:/export/home/opt/SUNWwbsvr-JES3> find . -name webservd ./bin/https/bin/webservd ^C apple:/export/home/opt/SUNWwbsvr-JES3> ./bin/https/bin/webservd -v ld.so.1: webservd: fatal: libldap50.so: open failed: No such file or directory Killed
3. Summary:
In 6.1, "start -version" will print out web server version.
In 7.0, "startserv --version" will print out web server version.
Sun also announced that it is open sourcing the core components of the
Sun Java System Web Server 7.0 and Sun Java System Web Proxy
technologies under a BSD (Berkeley Software Distribution) license in
the Web Stack sub-project of the OpenSolaris community. The Web and Proxy source code will be available in CY08Q3.
"By open sourcing the core technology in our Web and Proxy server,
Sun's goal is to give developers more flexibility, choice and help them
achieve faster time to market," said Karen Tegan Padir, vice president
of engineering, Software Infrastructure, Sun Microsystems. "Through
Sun's enterprise-grade Web software Stack and Sun's Web and Proxy
servers, enterprises and developers now have the option to standardize
their development and production environments on open source
technology."
Sun's release of their Web and Proxy server code with a BSD license is
proof of their involvement and commitment to open source. I am quite
excited by the opportunities and possibilities that this provides, both
as an Open Source community member, but also as a director, member and
developer within the Apache Software Foundation," said Jim Jagielski.
"
FYI.
So, I guess the source of Web 7 and Proxy will be available soon.
If you want to block certain file types , e.g. some .ini or .conf files, from outside access in Sun Java System Web Server 6.1 SP9, then you can add <Client> tag into obj.conf, e.g.
will result in the response as set in bongfile.html to prevent users accessing these types of ini/conf files.
Errors logs:
[21/May/2008:14:38:03] security (10791): for host xx.xx.xx.xx trying to GET /test.conf, deny-existence reports: HTTP4129: denying existence of <web root>/docs/test.conf
[21/May/2008:14:41:12] security (10791): for host xx.xx.xx.xx trying to GET /test.ini, deny-existence reports: HTTP4129: denying existence of <web root>/docs/test.ini
This can add security to file types you do not want outside users accidentally access.
Hi Walter,
May I know if there any f...