Apache is a WWW server. It will be installed into /usr/local/apache.
Log in by "ctn" on your WebDAS.
Start "terminal".
tar zxvf /tmp/apache_1.3.27.tar.gz« cp apache_1.3.27« setenv OPTIM -O2« ./configure --enable-module=so« make« su« (root passwordj« make install« exit«
Make the init script to start Apache as daemon.
Edit /etc/rc.d/init.d/httpd.
A sample is following.
#!/bin/sh # # Startup script for the Apache Web Server # # chkconfig: 345 85 15 # description: Apache is a World Wide Web server. # It is used to serve HTML files and CGI. # processname: httpd # pidfile: /var/run/httpd.pid # config: /usr/local/apache/conf/access.conf # config: /usr/local/apache/conf/httpd.conf # config: /usr/local/apache/conf/srm.conf # Source function library. . /etc/rc.d/init.d/functions # See how we were called. case "$1" in start) echo -n "Starting httpd: " daemon /usr/local/apache/bin/httpd echo touch /var/lock/subsys/httpd ;; stop) echo -n "Shutting down http: " killproc httpd echo rm -f /var/lock/subsys/httpd rm -f /var/run/httpd.pid ;; status) status httpd ;; restart) $0 stop $0 start ;; reload) echo -n "Reloading httpd: " killproc httpd -HUP echo ;; *) echo "Usage: $0 {start|stop|restart|reload|status}" exit 1 esac exit 0
Register the script to the system service.
cd /etc/rc.d/init.d« chmod 755 httpd« /sbin/chkconfig --add httpd« exit« cd«
PHP4 is a WWW server side scripting language. It will be installed into /usr/local/php4/.
Log in by "ctn" on your WebDAS.
Start "terminal".
tar zxvf /tmp/php-4.2.3.tar.gz« cd php-4.2.3« ./configure --prefix=/usr/local/php4 _« ? --enable-mbstring --enable-mbstr-enc-trans _« ? --with-pgsql=/usr/local/pgsql _« ? --with-apxs=/usr/local/apache/bin/apxs _« ? --enable-track-vars --enable-trans-sid _« ? --with-gd --eanble-bcmath --enable-ftp « make« su« (root passwoed)« make install« (php.ini-dist 309 row change š register_globals = On) cp php.ini-dist /usr/local/php4/lib/php.ini« exit«
Edit /usr/local/apache/conf/httpd.conf by root.
Add the following
line at <ifmodule mod_mime.c> ... <IfModule mod_mime.c>
AddType application/x-httpd-php .php
Edit /usr/local/php4/lib/php.ini by root.
Modify@the@following@line.
Register_globals@=@On
Uncomment@and@modify@the@following@line.
Back to indexinclude_path@=".:/home/webdas-inc"
Web-Referencing scripts such as PHP script and HTML are located in /home/webdas/.
Log in by "ctn" on your WebDAS.
Start "terminal".
Edit /usr/local/apache/conf/httpd.conf.
Change "Document Root" as below.
... DocumentRoot "/home/webdas" ...
This should be change to whatever you set DocumentRoot to <directory "/home/webdas"> .
<Directory "/home/webdas"> ... <IfModule mod_dir.c> DirectoryIndex index.html index.php index.cgi ... ErrorLog /home/ctn/httpd_logs/error_log ... CustomLog /home/ctn/httpd_logs/access_log common ... <IfModule mod_alias.c> Alias /images/ "/home/images/" <Directory "/home/images/"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> </IfModule>
Get scripts tar file from the site below.
http://www.fujita-hu.ac.jp/~kmuto/webdas/linux/webdas-linux-rsna2002.tar.gz
Download the file into /tmp directory.
Log in by "ctn" on your WebDAS.
Start "terminal".
su« (root password)« mkdir /home/webdas« chown -R ctn:ctn /home/webdas« chmod a+w webdas« exit« cd /home/webdas« tar zxvf /tmp/webdas-linux-cb05.tar.gz«
Edit /home/webdas/webdassite.inc.
"xxx.xxx.xxx.xxx" is your WebDAS IP address.... $strDBUserPasswd="password of ctn"; ... $strRootURL = "http://xxx.xxx.xxx.xxx/"; ...
Restart your WebDAS.
Back to index
Start web browser, which is connected to the network. Type the URL of the WebDAS http://xxx.xxx.xxx.xxx/webdas/ .
Internet Explorer is recommended.
Netscape and Mozilla may not display the pages properly.
Back to index