Posted on

Working with WordPress

Basically I am using WordPress over here just to see how it works. There are too many people using it too ignore it ;)

The installation itself works like a charm and in this environment is it combined with Varnish to speed up things a bit and MariaDB to get over mySQL.

Varnish itself wouldn’t be required for the 2 visitors per day but it sounds like a good concept and when starting to test WordPress I decided to test this one as well.

How to display the posts on a static page?

This was one of the first questions and finally I figured out that the configuration is done at Settings > Reading at the Posts Page dropdown.

 

How to define the display order of static pages?

wordpress-page-attribute

Honestly said this was the very first question and it is pretty simple (even not intuitive). The settings is done on the page at the Page Attributes in the field Order. I used 10,20,30 for my three pages so there is room left to fill in others.

 

Enabling FTP download for Plugins

Make sure you have the proper permissions set:

chown apache:apache  -R * # let Apache be owner
find . -type d -exec chmod 755 {} \;  # Change directory permissions rwxr-xr-x
find . -type f -exec chmod 644 {} \;  # Change file permissions rw-r--r--

Make sure your wp-content directory gets 775.

Add the ftp configuration to your wp-config.php file:

define('FTP_PUBKEY', '/home/wordpress/wordpress_rsa.pub');
define('FTP_PRIKEY', '/home/wordpress/wordpress_rsa');
define('FTP_USER', 'wordpress');
define('FTP_PASS', 'ftppass');
define('FTP_HOST', 'www.example.com');
define('FTP_SSL', true);
define('FS_METHOD', 'direct');
define('FTP_BASE', '/var/www/html/example/wordpress');

Useful Links

Updating WordPress
Own directory for WP
WordPress Permissions
File Permissions in WP