Log in to:http://www.mcnaircenter.org/blog/wp-admin/ == Requirements Install FTP server== Log in and sudo su yourself, then: apt-get install vsftpd Man page for the vsftpd.conf file
== Design == http://vsftpd.beasts.org/vsftpd_conf.html
== Styling ===== Header====== Sidebar ====== Image Uploads ====== Content ====== Footer === === Blog Posts =======Titles======== Author Info ====== Usability Features =====RSS======Subscription Rules===Securing the FTP:
== User Accounts == https://help.ubuntu.com/lts/serverguide/ftp-server.html
== Error Logs Configuration==
McNair Center Wordpress blogEdit /etc/vsftpd.conf (note next restart will reflect changes in /etc/init)
Setup #add at tend of file: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 listen_port=26
Permissions'''Generate keys for our website''' with the following command:
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout /etc/vsftpd.pem -out /etc/vsftpd.pem
Styling Country Name (2 letter code) [AU]:USChild themes State or Province Name (full name) [Some-State]:Texas*Usage of child themes when creating custom design with wordpress is recommended.*Steps to create Locality Name (eg, city) []:Houston**Create a folder in the var/lib/wordpress/wp-content/themes with the title of your choice**Into the newly created folder Organization Name (eg, add the header.php, style.css and functions.php file from the parent themecompany) [Internet Widgits Pty Ltd]:McNair Center at Rice University's folder to the child themeBaker Institute**If the child files are blank Organizational Unit Name (eg, then all the parent theme's corresponding code is preserved.section) []:**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 Common Name (e.**The webkit modules that adjust the display for mobile interfaces are best not changedg.server FQDN or YOUR name) []:McNair Center*Once the files are created, to the style Email Address []:admin@mcnaircenter.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 sectionorg
Header1Edit /etc/vsftpd. 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 conf again
Sidebar #change the lines as follows:1 rsa_cert_file=/etc/vsftpd. Addition of text widgetspem* We need some text + image based widgets added to the sidebar rsa_private_key_file=/etc/vsftpd.pem write_enable=YES* These can be added with basic html and css (inline) as a text widget to the sidebar. chroot_local_user=YES* Fonts changed to : chroot_list_enable=YES* border width reduced chroot_list_file=/etc/vsftpd.chroot_list ssl_enable=YES
Custom menusCustom menus can be created and registeredEdit /etc/vsftpd.chroot_list to contain a list of usernames (e.g. Steps:, ravali)1. FooterRestart the server
Helpful Links: service vsftpd restart
The FTP server should be accessible. Beware local packet shaping. Connect through mcnaircenter.org:26. Otherise have a check that the process is running and listening:
ps -aux
netstat -lnt
--------------------------------------------- Installing FTPS Server on Web Servers-------------------------------------------Assuming all is good with the FTP server, we now need to update Wordpress.
Objective: Install FTPS server on the web servers on port 26 - test server followed by the production server.==Update Wordpress==
Steps Followed:*First make a copy of the wordpress folder and dbase
Helpful links: cp -R /var/lib/wordpress/ /var/lib/wordpress_bak* mysqldump -u mcnair_wp -p wordpress > backup_12Aug2016.sql (enter password for dbase found in wp-config.php)
openssl req Change the permissions on every in the wordpress folder and make www-x509 data its owner: chown -nodes R www-days 365 -newkey rsa:1024 -keyout data /var/etclib/vsftpd.pem wordpress chmod -out R 755 /var/etclib/vsftpd.pemwordpress
rsa_cert_file=Browse to 128.42.44.180/etcblog/vsftpd.pemwp-adminrsa_private_key_file=/etc/vsftpdClick update now.pemEnter:
username Hostname 128.42.44.180: webadmin26password: 9Million! FTP Username ravali (or some other account) FTP Password Connection Type FTPS (SSL)
Leave the Akismet plugin
Go to appearance, themes -> add new
Choose Accesspress Lite 2.46.7
Activate
Install all of the recommended pluggins that come with the theme
------- Aug 2nd -------------Check the media library works by uploading a file (e.g., GreenRoundLogo.png)
Create a child theme cd /var/lib/wordpress/wp-content/themes mkdir accesspress-lite-child vi accesspress-lite-child/style.css Add in the template from the parent folder's style.css (just the top of the file) Update the theme name and text domain to accesspress-lite-child. vi accesspress-lite-child/functions.php Add in the section that never changes <?php function my_theme_enqueue_styles() { $parent_style = 'parent-style'; // This is 'twentyfifteen-style' Man page for the vsftpdTwenty Fifteen theme. wp_enqueue_style( $parent_style, get_template_directory_uri() .conf file '/style.css' ); wp_enqueue_style( 'child-style', http://vsftpd get_stylesheet_directory_uri() .beasts.org'/vsftpd_confstyle.htmlcss', array( $parent_style ), wp_get_theme()->get('Version') ); } add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); ?>
Securing Check the FTPpermissions on the new files: https:chown -R www-data /var/help.ubuntu.comlib/ltswordpress chmod -R 755 /var/serverguidelib/ftp-server.htmlwordpress
'''Customization:'''Active the child theme!''''Change the portCheck out what it looks like:''''Add line to www.mcnaircenter.org/etc/vsftpd.conf: listen_port=26blog
Restart the server with the command: sudo vsftpd restart==Customize our theme==
Check the installation by checking via a browser, the following address:http://128.42.44.22:26== Requirements ==
''''Add users''''== Design ==
== Styling ==
=== Header===
=== Sidebar ===
=== Image Uploads ===
=== Content ===
=== Footer ===
=== Blog Posts ===
====Titles====
==== Author Info ====
== Usability Features ==
===RSS===
===Subscription Rules===
''''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== User Accounts ==
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 Useful resources 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-updatethere are errors==
''''' in case of errors, tryWordpress: '''''*https://codex.wordpress.org/Upgrading_WordPress_Extended#Step_9:_Run_the_WordPress_upgrade_program*https://wordpress.org/support/topic/wordpress-45-error-after-update*https://help.webcontrolcenter.com/kb/a992/vsftpd-ftp-server.aspx
FTP Issues:
*https://help.ubuntu.com/lts/serverguide/ftp-server.html *http://askubuntu.com/questions/666858/vsftpd-service-will-not-start-for-14-04