Skip to content
spence-man edited this page Oct 23, 2017 · 63 revisions

Chapman University Icon

Chap-Press Wiki


About

Welcome to the Chap-press wiki!

This is a resource and reference guide for the Chap-Press WordPress project.


Table of Contents

Resources
Troubleshooting


Resources

Documentation

Wordpress Codex: an online manual for WordPress and a living repository for WordPress information and documentation.
Forum: A variety of resources and categories for support (i.e. installation, accessibility, networking, etc.)
Theme Handbook: WordPress Theme Developer Handbook.
Best Practices: A series of best practices to help keep WordPress code clean and well documented.
Environment Setup: Configuring a local environment to work on your WordPress theme.
Installing A Server: Tutorials for the process of installing one of the four local server programs.
Installing WordPress: One page installation guide in a 5-step process.
Debugging: This page describes the various debugging tools in WordPress, which comes with specific debug systems that is standard among the core, plugins and themes.
Wordpress Command Line: The command-line interface for Wordpress where you can update plugins, configure multisite installs and much more, without using a web browser.
Homebrew: Homebrew is the easiest and most flexible way to install the UNIX tools Apple didn’t include with macOS.
Composer: A tool for dependency management in PHP.
Codeception: Codeception collects and shares best practices and solutions for testing PHP web applications.
Codeception for Wordpress: Codeception package for testing WordPress.
Wp-browser: Github source for Wp-browser.
Ansible: Ansible documentation.


Troubleshooting

Linux Redhat/Centos

SElinux

If issues come up with port access or other restricted access:

sudo vi /etc/sysconfig/selinux
# Change SELINUX line to disabled: SELINUX=disabled

FirewallD

This firewall package may or may not be enabled. It can possibly restrict access to http, https or ports on the server.

To turn off and disable:

systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld

WP-CLI

The wp-cli command wp db export receives this error:

Error: Cannot do 'run_mysql_command': The PHP functions `proc_open()` and/or `proc_close()` are disabled. Please check your PHP ini directive `disable_functions` or suhosin settings.

To enable this command:

  • Go to /chap-press/devops/ansible/php70/vars/main.yml
  • Find php_disable_functions key
  • Remove proc_open from list of values

Should be displayed as:

php_disable_functions: "exec,passthru,shell_exec,system,popen"

  • Run: systemctl restart nginx

The command wp db export should now work.