Install php+jsp on Linux

Source: Internet
Author: User
Tags copy install php join modify mysql wrapper linux
JS Here I use is apache_1.3.9; apachejserv-1.1b3;gnujsp1.0.0
All is tar.gz format,
TAR-ZXVF apache.tar.gz
TAR-ZXVF apachejserv-1.1b3
TAR-ZXVF gnujsp.tar.gz
TAR-ZXVF jsdk.tar.gz
CD apache_1.3.9
./configure--prefix=/www
Make install
Cd.. /php-3.0.12
./configure--with-mysql=/mysql--with-apache=. /apache_1.3.9--enable-track-vars
Make
Make install
Cd.. /apachejserv-1.1b3
./configure--prefix=/usr/local/jserv--with-apache-src=. /apache_1.3.9--with-jdk-home=/jdk117_v3--with-jsdk=. /jsdk/lib/jsdk.jar
Make install
Cd.. /apache_1.3.9
./configure--prefix=/www--activate-module=src/modules/php3/libphp3.a--activate-module=/src/modules/jserv/ Libjserv.a
Make
Make install
  
Then start configuring PHP (abbreviated)
Next to configure the JSP
1. Copy the Gnujsp10.jar,servlet-2.0-plus.jar to the/www/htdocs/servlets directory
2. Modify Jserv.conf, plus
Apjservaction. jsp/servlets/gnujsp
Apjservmount/java/root (this directory is mainly used to store JSP generated Java
and class files, depending on the circumstances.
4. Modify Jserv.properties and join
Wrapper.classpath=/jdk117_v3/lib/classes.zip
Wrapper.classpath=/usr/local/jserv/libexec/apachejserv.jar
Wrapper.classpath=/home/riso/webserversrc/jsdk/lib/jsdk.jar
Wrapper.classpath=/www/htdocs/servlets/gnujsp10.jar
Wrapper.classpath=/www/htdocs/servlets/servlet-2.0-plus.jar
5. Modify Zone.properties and join
Servlet.gnujsp.code=org.gjt.jsp.jspservlet
Servlet.gnujsp.jspservlet.initargs=checkclass=true
Servlet.gnujsp.jspservlet.initargs=scratchdir=/home/httpd/java
Servlet.gnujsp.jspservlet.initargs=compiler=/jdk117_v3/bin/javac-encoding%encoding%-classpath%classpath%-D% scratchdir%-deprecation%source%
And, of course, include jserv.conf files in the httpd.conf.
cd/www/bin/
./apachectl Start
Test the http://XXX.XXX.XXX.XXX/jserv/.
(Add access rights to the jserv.conf file first)
Success!
Copy the gnujsp three example files to/www/htdocs
Test http://XXX.XXX.XXX.XXX/hello.jsp
Test http://XXX.XXX.XXX.XXX/date.jsp
Test http://XXX.XXX.XXX.XXX/snoop.jsp

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.