Wordpress Blog Site (Tool)
Contents
Requirements
Design
Styling
Header
Sidebar
Image Uploads
Content
Blog Posts
Titles
Author Info
Usability Features
RSS
Subscription Rules
User Accounts
Error Logs
McNair Center Wordpress blog
Setup: Images: 1. Wordpress currently looks for images in a completely different location than the one it is uploading to. 2. It also has trouble generating the three standard sizes - thumbnails, etc
Permissions:
Styling:
Child themes:
- Usage of child themes when creating custom design with wordpress is recommended.
- Steps to create:
- Create a folder in the var/lib/wordpress/wp-content/themes with the title of your choice
- Into the newly created folder, add the header.php, style.css and functions.php file from the parent theme's folder to the child theme
- If the child files are blank, then all the parent theme's corresponding code is preserved.
- Else, if any chunk of code is added to the child theme's file, the code overrides the code in the parent theme's code.
- The webkit modules that adjust the display for mobile interfaces are best not changed.
- Once the files are created, to the style.css, add the template section enclosed in '/* ' and '*/' from the parent's style.css file.
- Go to the Wordpress dashboard, login as admin, and add the theme to wordpress (button should appear on the UI, along with the child theme) in the themes section
Header 1. Header functions changed:
- The default header that comes with the twentysixteen has the header set within the same margins that govern the body of the blog.
- We want for our header to stretch across the UI like a banner.
- To do so,
- I removed the header from the div classes from the header.php file.
- I added some div classes around the header so that we could style
Sidebar 1. Addition of text widgets
- We need some text + image based widgets added to the sidebar.
- These can be added with basic html and css (inline) as a text widget to the sidebar.
- Fonts changed to :
- border width reduced.
Custom menus Custom menus can be created and registered. Steps: 1. Footer
Helpful Links:
-- Installing FTPS Server on Web Servers
Objective: Install FTPS server on the web servers on port 26 - test server followed by the production server.
Steps Followed:
Helpful links:
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout /etc/vsftpd.pem -out /etc/vsftpd.pem
rsa_cert_file=/etc/vsftpd.pem rsa_private_key_file=/etc/vsftpd.pem
username: webadmin password: 9Million!
Aug 2nd -------------
Man page for the vsftpd.conf file
http://vsftpd.beasts.org/vsftpd_conf.html
Securing the FTP:
https://help.ubuntu.com/lts/serverguide/ftp-server.html
Customization: 'Change the port:' Add line to /etc/vsftpd.conf:
listen_port=26
Restart the server with the command:
sudo vsftpd restart
Check the installation by checking via a browser, the following address: http://128.42.44.22:26
'Add users'
'Generate keys for ou website'
Generate the key with the following command:
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout /etc/vsftpd.pem -out /etc/vsftpd.pem
Add\Update the following lines in the /etc/vsftpd.conf:
rsa_cert_file=/etc/vsftpd.pem rsa_private_key_file=/etc/vsftpd.pem ' Adding Users' FTP : Files not accessible: Add the following to wp-config.php if(is_admin()) {
add_filter('filesystem_method', create_function('$a', 'return "direct";' )); define( 'FS_CHMOD_DIR', 0751 ); }
--- Back Up: Folders: Copy created Database: mysqldump -u mcnair_wp -p wordpress > backup_3Aug2016.sql -- Update: https://codex.wordpress.org/Upgrading_WordPress_Extended#Step_9:_Run_the_WordPress_upgrade_program Error Resolution: https://wordpress.org/support/topic/wordpress-45-error-after-update
in case of errors, try: https://help.webcontrolcenter.com/kb/a992/vsftpd-ftp-server.aspx
FTP Issues: https://help.ubuntu.com/lts/serverguide/ftp-server.html