uninstall java gcj fcs because specwebclient cannot be complied and run
sun download page
http://java.sun.com/javase/downloads/index_jdk5.jsp
https://sdlc5c.sun.com/ECom/EComActionServlet/DownloadPage:~:com.sun.sunit.sdlc.content.DownloadPageInfo;jsessionid=FDCF352AF4C6A49B5CCEBCE7129FAF0E;jsessionid=FDCF352AF4C6A49B5CCEBCE7129FAF0E
instruction
http://java.sun.com/j2se/1.4.2/install-linux.html
change execuatable
chmod +x jre-1_5_0_15-linux-i586-rpm.bin
./jre-1_5_0_15-linux-i586-rpm.bin
install sun java
rpm -iv jre-1_5_0_15-linux-i586.rpm
http://liquidat.wordpress.com/2007/05/31/howto-sun-java-on-fedora-7/
install SUN java
#sh ./jre-version-linux-i586-rpm.binmod_fastcgi-2.4.6.tar.gz
#/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jreversion/bin/java priority
demo: #alternatives --install /usr/bin/java java /usr/java/jre1.5.0_15/bin/java 2
#/usr/sbin/alternatives --config java
mod_fastcgi module installation:
downloald mod-fastcgi package from
http://www.fastcgi.com/dist/
check the instruction INSTALL using the mothod of DSO
then install httpd-devel to have apsx working
http://jimthompson.org/wp/2005/05/29/building-modfastcgi-for-apache2/
use the command:
apxs -n mod_fastcgi -i -a -c mod_fastcgi.c fcgi_buf.c fcgi_config.c fcgi_pm.c fcgi_protocol.c fcgi_util.c
Load module in httpd.conf
Selinux prevent httpd to bind 81
http://danwalsh.livejournal.com/9275.html
use the following commands:
semanage port -a -t http_port_t -p tcp 81SELinux prevented httpd reading and writing access to http files.
use the following commands:
setsebool -P httpd_unified=1
config SPECweb
Test.config
BESIM_INIT_SCRIPT = "/fcgi-bin/besim_fcgi.fcgi"
rather than /var/www/html/fcgi-bin/besim_fcgi.fcgi
The error information is
2008-03-07 05:32:55:776 RemoteLoadGen: Adding host 128.153.144.162
2008-03-07 05:32:55:936 Connection: [ERROR] Bad status: 404
2008-03-07 05:32:55:936 Connection: bad status ======= buf_len=494 headerEnd=179 contentLen=315 chunkEnd-1========
2008-03-07 05:32:55:936 Connection: HTTP/1.1 404 Not Found
Date: Fri, 07 Mar 2008 10:32:55 GMT
Server: Apache/2.2.6 (Fedora)
Content-Length: 315
Connection: close
Content-Type: text/html; charset=iso-8859-1
404 Not Found
Not Found
The requested URL /var/www/html/fcgi-bin/besim_fcgi.fcgi was not found on this server.
Apache/2.2.6 (Fedora) Server at 128.153.144.162 Port 80
2008-03-07 05:32:55:936 HttpRequestSched: [ERROR] Bad response (-1). Request was GET /var/www/html/fcgi-bin/besim_fcgi.fcgi?3&0&1204886909&5 HTTP/1.1
Accept: */*
Host: 128.153.144.162
IF you GOT 500 INTERNAL ERROR in specweb and in the apache it indicates error:
PHP Warning: fopen(http://128.153.144.162:81/fcgi-bin/besim_fcgi.fcgi?3&6&2821) function.fopen]: failed to open stream: No route to host in /var/www/support/inc.common.php on line 44
Then it probably means your specweb machine's 80 is blocked and only 81 works.
IN SPECWEB, you need both 80 and 81 working on the same machine. SO if firewall and selinux are disabled, that will save you a lot of time.