building_a_website_on_sdf
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
building_a_website_on_sdf [2021/03/23 16:59] – added info on mkhomepg -p, can't believe it wasn't there already peteyboy | building_a_website_on_sdf [2022/05/13 20:59] – [Web Page Locations] correct mistake on default change format of fake urls to italics peteyboy | ||
---|---|---|---|
Line 36: | Line 36: | ||
===== More Pages ===== | ===== More Pages ===== | ||
- | Whenever | + | Okay, now that you have your first web page up, here are some [[resources_for_website_builders|Resources for Developing Your Website]] |
+ | |||
+ | An important thing: your website files need to be set to particular user permissions in order to be viewable by the world. When you add pages or subdirectories to your web site, the easiest way to make sure it will all continue to work is to **remember, after you are done with your changes**, to run the command < | ||
| | ||
</ | </ | ||
- | The '' | + | The '' |
Line 49: | Line 51: | ||
mkhomepg -p (set appropriate file permissions) | mkhomepg -p (set appropriate file permissions) | ||
mkhomepg -a (set or unset your custom URL) | mkhomepg -a (set or unset your custom URL) | ||
- | mkhomepg -d (set or unset http:// | + | mkhomepg -d (set or unset http:// |
mkhomepg -t | mkhomepg -t | ||
+ | |||
</ | </ | ||
+ | ==== Web Page Locations ==== | ||
+ | |||
+ | As you can see above with the '' | ||
+ | * **Standard Site:** By default, your web site files go in your user folder on the cluster in the '' | ||
+ | * **' | ||
+ | * **Virtual Host:** If you have a [[vhost]], you should place files for it in your ''< | ||
+ | * **[[metaarray|The MetaArray]]: | ||
===== Problems ===== | ===== Problems ===== | ||
Line 62: | Line 72: | ||
===== Diagnose ===== | ===== Diagnose ===== | ||
- | If your site is hosted on sdf.org (you are an ARPA member) then you can grep inside the httpd log file in /// | + | One way to try to figure out what is going wrong when you HTTP requests are made to your site is to look at http access logs. |
+ | |||
+ | ==== Finding Your Logs on the Main Cluster ==== | ||
+ | |||
+ | If your site is hosted on sdf.org (you are an ARPA member) then you can grep inside the httpd log file in /// | ||
$ grep abc123.sdf.org / | $ grep abc123.sdf.org / | ||
+ | | ||
+ | ==== Finding Your Logs on the Metaarray ==== | ||
- | If your site is hosted on ma.sdf.org (you are a MetaARPA member) then your can look inside the log file for your web site in "/meta/log". For example: | + | If your site is hosted on ma.sdf.org (you are a MetaARPA member) then you can look inside the log file for your web site in ///meta/log//. For example: |
$ less / | $ less / | ||
+ | ==== Finding Your Logs for VHOSTs ==== | ||
+ | If your site is VHOSTed, then you can access your site's own log file by ssh-ing to the '' | ||
+ | $ ssh peteyboy@irulecomputers.com | ||
+ | ... (login stuff) | ||
+ | $ less / | ||
+ | |||
+ | ==== More Help ==== | ||
For additional help, check the information in the FAQ page [[https:// | For additional help, check the information in the FAQ page [[https:// | ||
building_a_website_on_sdf.txt · Last modified: 2024/01/04 08:20 by peteyboy