Help Installing Web Application
I'm attempting to install a program WebMO (http://www.webmo.net) and am encountering difficulties due entirely tot eh fact that I don't know what I'm doing. I have Apache installed on my SuSE 7.1 computer and use Netscape 6.2. I've made no changes (of which I am aware) to the Apache installation. WebMO has a perl installation script which asks a number of questions before installing the application. That's where I have problems as I can't seem to tell the script what it needs to know. Here are the questions (the complete perl script is attached): #locate local host ÷r; print "SET UP WEBSERVER NAME\n\n"; print "The script has determined that the webserver name of this computer\n"; print "to be:\n\n"; print " $temp_host\n\n"; print "IMPORTANT: This must represent the correct FULLY QUALIFIED webserver name\n"; print "(computer.domain.edu) for this computer.\n\n"; print "Is this webserver name fully qualified and correct [y/n]:"; This one I answered correctly as http://abnormal.ffc:901 opens the test page for the web server. print "SET UP HTML DIRECTORY\n\n"; print "The script will now create a directory into which the WebMO HTML\n"; print "files will be copied. The directory should meet the following\n"; print "requirements:\n"; print " - Directory is in the server's webspace\n"; print " - The directory is NOT in a cgi-bin directory\n"; print " - You need to have permission to write to this directory\n"; print " - The parent of the specified directory must already exist\n\n"; print "Example: /home/smith/public_html/webmo\n\n"; This one gives me problems. What is the server's webspace? print "\n"; print "Please enter the URL corresponding to the specified directory.\n"; print "Example: /~smith/webmo\n\n"; If I can't specify the directory correctly, I can't give the URL for that directory. print "SET UP CGI DIRECTORY\n\n"; print "The script will now create a directory into which the WebMO cgi\n"; print "scripts will be copied. The directory should meet the following\n"; print "requirements:\n"; print " - Directory is in the server's webspace\n"; print " - Execution of CGI scripts is permitted in directory\n"; print " - You need to have permission to write to this directory\n"; print " - The parent of the specified directory must already exist\n\n"; print "Example: /home/smith/public_html/cgi-bin/webmo\n\n"; I don't have the foggiest idea as to what the above means. print "SET UP USER DIRECTORY\n\n"; print "The script will now create a directory that will be used to store\n"; print "user profiles, passwords, jobs, and other private data. This directory\n"; print "should meet the following requirements:\n"; print " - Directory is NOT in the server's webspace\n"; print " - You need to have permission to write to this directory\n"; print " - The parent of the specified directory must already exists\n\n"; print "Example: /home/smith/webmo\n\n"; Suddenly, it's not supposed to be in the server's websace????? print "FINISH SETUP\n\n"; print "The remainder of the WebMO setup will be done through the WebMO\n"; print "adminstrative tools. The adminstrative tools facilitate configuration\n"; print "of system preferences, configuration of any packages (GAMESS, Gaussian,\n"; print "MOPAC, etc.) adding/editing of users.\n\n"; print "Access WebMO with your web browser at the following URL: \n"; print "\thttp://${webserver}$url_cgiBase/login.cgi\n\n"; print "Login as the user 'admin' with a blank password. You will be prompted\n"; print "to change your password at that time. After changing the admin password,\n"; print "you will be prompted to register your copy of WebMO. You will then be\n"; print "brought to the administration home page.\n\n"; &pause; print "Click on the 'System Manager' and check the location of the scratch\n"; print "directory, which you may change if desired. Click 'Return to Admin'\n"; print "to return to the administration home page.\n\n"; print "Click on the 'Interface Manager' and enable the interfaces to any\n"; print "computational chemistry packages that you have already installed on your\n"; print "system by clicking the corresponding 'Enable' button.\n"; print "Click 'Return to Admin' to return to the administration home page.\n\n"; print "Click on the '<interface_name> Manager' to configure any interfaces that\n"; print "were enabled in the Interface Manager. Make any neccessary changes in the\n"; print "interface configuration, and then click 'Submit' to commit the changes.\n"; print "Click 'Return to Admin' to return to the administration home page.\n\n"; This doesn't work either (not too surprising as I haven't set it up correctly). Netscape tells me that the URL isn't installed on the server. Any help will be much appreciated. Particularly useful would be a definition of the server terms used in the perl script. Thanks in advance.
On Sun, 10 Feb 2002 07:57:44 -0500 "Stephen P. Molnar, Ph.D." <smolnar@jadeinc.com> wrote:
I'm attempting to install a program WebMO (http://www.webmo.net) and am WebMO has a perl installation script which asks a number of questions This one I answered correctly as http://abnormal.ffc:901 opens the test page for the web server.
print "SET UP HTML DIRECTORY\n\n"; print " - Directory is in the server's webspace\n"; print " - The directory is NOT in a cgi-bin directory\n"; print " - You need to have permission to write to this directory\n"; print " - The parent of the specified directory must already exist\n\n"; print "Example: /home/smith/public_html/webmo\n\n";
This one gives me problems. What is the server's webspace?
The apache server root directory is /usr/local/httpd and the document area is /usr/local/httpd/htdocs and the cgi-bin is /usr/local/httpd/cgi-bin Your home html is in /home/smolnar/public_html The servers webspace is it's secure operating zone; it dosn't like leaving it, so you must install the software in one of those places, or edit your httpd.conf.
print "Please enter the URL corresponding to the specified directory.\n"; print "Example: /~smith/webmo\n\n";
If I can't specify the directory correctly, I can't give the URL for that directory.
The actual url to a site and the actual directories are different due to the above mentioned server root. So your url to your public_html might be http://localhost/~smolnar/ while the base directory is /home/smolnar/public_html
print "SET UP CGI DIRECTORY\n\n"; print "The script will now create a directory into which the WebMO cgi\n"; print "scripts will be copied. The directory should meet the following\n"; print "requirements:\n"; print " - Directory is in the server's webspace\n"; print " - Execution of CGI scripts is permitted in directory\n"; print " - You need to have permission to write to this directory\n"; print " - The parent of the specified directory must already exist\n\n"; print "Example: /home/smith/public_html/cgi-bin/webmo\n\n";
I don't have the foggiest idea as to what the above means.
Well you need to setup directories for the program in your cgi-bin. If you are using homedirs , then you would want to create directories called WebMO in both like: /home/smolnar/public_html/WebMO/ /home/smolnar/public_html/cgi-bin/WebMO/ These would be accessed by urls like these: http://192.168.0.1/~smolnar/WebMO/index.html htpp://192.168.0.1/~smolnar/cgi-bin/WebMO.cgi The cgi stuff is usually separated from the html stuff. If you are using your main server, you would make /usr/local/httpd/htdocs/WebMO/ and /usr/local/httpd/cgi-bin/WebMO These would be accessed like this http://192.168.0.1/WebMo/index.html http://192.168.0.1/cgi-bin/WebMO.cgi This sounds like a complex cgi to setup. I would suggest you download a couple of simpler cgi programs and play with them to see how it works. Get yourself a webauction script or something like that, install it, and see how it works. -- $|=1;while(1){print pack("h*",'75861647f302d4560275f6272797f3');sleep(1); for(1..16){for(8,32,8,7){print chr($_);}select(undef,undef,undef,.05);}}
participants (2)
-
Stephen P. Molnar, Ph.D.
-
zentara