| |
Q1. How to change host account password in Web Server Cloud?
You can use the UNIX command "passwd" to change password.
Q2. How to change password of MySQL account?
You can change the password of MySQL account using one of the following ways:
(a) connect to your MySQL account at 'localhost':
step 1a: start up MySQL:
/usr/bin/mysql -u -p
step 2a: change your MySQL account password at 'localhost':
MySQL> set password for <mysql_accountname>=password('newpassword');
step 3a: disconnect from MySQL:
MySQL> quit;
(b) connect from another system from HKU network to the computer 'www.<domainname>.hku.hk (mysql access is available from HKU network only):
step 1b: start up MySQL:
/usr/bin/mysql -u <mysql_accountname> -p -h www.<domainname>.hku.hk
step 2b: change your MySQL account password at 'www.<domainname>.hku.hk' :
MySQL> set password for <mysql_accountname>=password('newpassword');
step 3b : disconnect from MySQL :
MySQL> quit;
Q3. How to restart webserver in Web Server Cloud?
If you are the webmaster of your department, you can use the command "restart_webserver" to restart the webserver.
Q4. How to restart database in Web Server Cloud?
If you are the webmaster of your department, you can use the command "restart_database" to restart the database.
Q5. How to upload the web content to the web server cloud?
You may use any file transfer program that supports SFTP (e.g. coreFTP and WS_FTP Home/Professional) to upload the web content with the following information:
Host Name: www.<domainname>.hku.hk
User ID: <UID> (account name of web server cloud)
Password: <password> (password of web server cloud)
Site Folder: /home/<UID>/html/ (web content location of web server cloud)
You can verify the result with the following URL:
The URL for webmaster account: http://www.<domainname>.hku.hk
The URL for normal user account: http://www.<domainname>.hku.hk/<UID>
Q6. How to create the Tomcat context?
Type the command under /usr/share/tomcat5/webapps
$ create_webapps context owner_account
This will create the webapps named "context" owned by the user account "owner" under /usr/share/tomcat5/webapps.
Q7. How to make the change effective after changing the Tomcat context?
Re-start the tomcat server to make the change effective [If necessary, you may also change the file permission of some files such that
they are writable by the group “tomcat” (you are a member of the group tomcat)]:
$ restart_tomcat
Please note that some of the files/folders are writable by your account for future maintenance or addition of libraries needed by users, e.g., the Tomcat shared library folder under /usr/share/tomcat5/shared/lib and some of the Tomcat XML configuration files under /etc/tomcat5/.
Q8. How to map the Tomcat context to Apache web server?
Once the Tomcat is ready, you have to map the Tomcat context to the Apache web server using the proxy_ajp module. Please update the file "/etc/httpd/conf.d/proxy_ajp.conf" to map the URL to Tomcat by adding the line (pls refer to the example in this configuration file):
ProxyPass /path_to_context/ ajp://localhost:8009/context/
such that the tomcat application can be accessed through the URL http://www.<domainname>.hku.hk/path_to_context/ after restarting the web server.
Q9. How to make the change effective after mapping the Tomcat context to Apache web server?
Restart the web server to make the change in Q8. effective:
$ restart_webserver
Q10. How to remove a webapp folder from Tomcat context?
Type the following command under /usr/share/tomcat5/webapps:
$ rm_webapps context
The folder /usr/share/tomcat5/webapps/context will then be deleted upon confirmation.
Q11. How can webmaster reset password for other users?
Type the command
$ change_user_password <user account>
|