Difference between revisions of "Setting up error pages"

From GLMWiki
Jump to: navigation, search
Line 6: Line 6:
 
rsync -av dev55:/var/www/server/dev.gaslightmedia.com/web/error/504.html .
 
rsync -av dev55:/var/www/server/dev.gaslightmedia.com/web/error/504.html .
 
rsync -av dev55:/var/www/server/dev.gaslightmedia.com/web/error/style.css .
 
rsync -av dev55:/var/www/server/dev.gaslightmedia.com/web/error/style.css .
 +
 +
(You may at this point receive an error of being unable to copy the files. This usually means the permissions for
 +
the /web directory were not properly set during the server/wordpress setup. A simple "sudo chmod -R g+rw web" in
 +
the site's root directory should resolve this.)
  
 
After that, what has to be done is (using any text editor aside from the ancient and deprecated evil that is vim):
 
After that, what has to be done is (using any text editor aside from the ancient and deprecated evil that is vim):
Line 11: Line 15:
 
  - (if logos are used) place a new logo named 'logo.png' in the /var/www/server/<site>/web/error/ folder
 
  - (if logos are used) place a new logo named 'logo.png' in the /var/www/server/<site>/web/error/ folder
 
  - change the 'Home' link in 404.html to go to http://www.<site><TLD>
 
  - change the 'Home' link in 404.html to go to http://www.<site><TLD>
  - Part of the files will have to be uncommented to show up as needed, you may need to adjust some columns to ensure proper layout
+
  - Part of the files will have to be uncommented to show up as needed, you may need to adjust some columns to ensure
   depending on which parts are used
+
   proper layout depending on which parts are used
 
  - Test the 404 page for the site being set up currently, to make sure the template is still functional
 
  - Test the 404 page for the site being set up currently, to make sure the template is still functional
 
   An example of the 404 can be accessed by going to a bad page such as: http://dev.gaslightmedia.com/nonsensepage  
 
   An example of the 404 can be accessed by going to a bad page such as: http://dev.gaslightmedia.com/nonsensepage  
  
 
</pre>
 
</pre>

Revision as of 11:01, 7 September 2017


Commands to bring over the error files, once you're in /var/www/server/<site>/web/error/: 
rsync -av dev55:/var/www/server/dev.gaslightmedia.com/web/error/404.html .
rsync -av dev55:/var/www/server/dev.gaslightmedia.com/web/error/503.html .
rsync -av dev55:/var/www/server/dev.gaslightmedia.com/web/error/504.html .
rsync -av dev55:/var/www/server/dev.gaslightmedia.com/web/error/style.css .

(You may at this point receive an error of being unable to copy the files. This usually means the permissions for 
the /web directory were not properly set during the server/wordpress setup. A simple "sudo chmod -R g+rw web" in 
the site's root directory should resolve this.)

After that, what has to be done is (using any text editor aside from the ancient and deprecated evil that is vim):
 - (if phone numbers are used) change the phone number in 404, 503, 504
 - (if logos are used) place a new logo named 'logo.png' in the /var/www/server/<site>/web/error/ folder
 - change the 'Home' link in 404.html to go to http://www.<site><TLD>
 - Part of the files will have to be uncommented to show up as needed, you may need to adjust some columns to ensure
   proper layout depending on which parts are used
 - Test the 404 page for the site being set up currently, to make sure the template is still functional
   An example of the 404 can be accessed by going to a bad page such as: http://dev.gaslightmedia.com/nonsensepage