Replace /path/to/ with the correct path, otherwise just cd into the directory and don't use paths. Either or, doesn't matter which route you choose.
(for beginners and it also may not be installed)
(vi editor, more advanced, type "i" [without quotes] to insert, type/edit what you need and then hit Esc., and then type ":wq" to save and exit. - again no quotes)
Thanks I can finally see it, but one thing I am really concern here is:
(1) I am worrying about what problem would it cause if I change the directory in DocumentRoot? I am not sure change dir from /usr/local/apachel/htdocs/ to home/mydir/ is okay for the modernBill I previously installed before.
(2) May I know when it will take effect after I modify the conf?
Its working now! thanks a lot! It actually need not to wait long. And I actually have to restart the file in shell using the following solutions:
When you make changes to configuration files, you may want to test your changes before implementing them. This can be done by typing apachectl configtest at the command line while logged in as root. This will test the main configuration file and all other configuration files that are included in it. If the changes are successful, you will need to restart the http daemon in order for the changes to take effect. In Linux, this sometimes can be done with the service command:
service httpd restart
If that doesn't work, find httpd in one of the startup directories of /etc. In Red Hat Linux, it's located in /etc/rc.d/init.d/. If it's there, you could do the following to restart Apache: