The Problem
> In the process of attempting to do Lab 1, I have encountered some problems for which I have not found a solution. > > 1. After doing websetup -C I was never able to find the index.html file that was to have been in the public_html directory. > In what I think was a foolish move I deleted the public_html directory and tried to re-run the websetup -C. > That did not work so I recreated the directory using the mkdir command. I still can not find the index.html file. > > 2. In my public directory I have create the sub-directory lab1 and have put the html file in it that is needed. > I have ran chmod and I still can not access that web page. What can I do now? > > Thanks for your help. >
The Solution:
First, I note you say you used websetup -C websetup -C does not create a web page in your web space. websetup -c does (note the case of the letter c). public_html is not a directory and cannot be created using mkdir. Your web space is on another machine and is linked to your home directory with a link named public_html. You need to remove the public_html directory that you created. You can rename it to something else with the command mv public_html new_dir_name_here (of course, you decide what name to put in for the directory), or you can remove it with rm -r public_html Once it is renamed or removed, you can run websetup -A which will ask you if you want to recreate the link for your public_html link. Say yes to that one and no to the others. You could then move the contents of the public_html directory that you renamed with this command, mv renamed_dir_name/* public_html