September 22

Linux: WordPress not working after a Linux OS upgrade

After upgrading my Digital Ocean server from Ubuntu 14.04 to 16.04, none of my WordPress sites would work.
The issue was that the version of PHP had changed in 16.04

The following steps fixed the issue:

  1. sudo apt-get purge php5-common
  2. sudo apt-get install libapache2-mod-php
  3. sudo apt-get install php-mysql
  4. service apache2 restart

 

By: Timothy Conrad

Category: Linux, Websites | Comments Off on Linux: WordPress not working after a Linux OS upgrade
April 1

Software: Dreamweaver sftp connection issue

If Dreamweaver errors on connecting to your SFTP site do the following:
1. Verify your username and password.
2. Test it manually from a putty or filezilla type program to make certain your credentials work.
3. Reenter the data into Dreamweaver’s site management – server section.
4. Try to connect from Dreamweaver – If the error still occurs, you will want to connect several times one after another.  For some reason Dreamweaver throws the error up before trying to make the connection.  I find that trying to upload a file several times in a row will finally force Dreamweaver to actually try to connect.

Category: Software, Websites | Comments Off on Software: Dreamweaver sftp connection issue
July 8

WordPress: How to change pages to posts

There are a few ways to do this, but if you are like me and you want to do it in bulk,  a great way to do this is by using a simple SQL query.

If using phpMyAdmin

  1. Select your database
  2. Select the SQL tab
  3. type: UPDATE wp_posts SET post_type = REPLACE( post_type, “page”, “post” );
  4. Click Go

Thanks to neilscott for posting this query on the WP support forums.

Category: Websites | Comments Off on WordPress: How to change pages to posts
July 1

WordPress: Cannot log into admin pages

On occasion something may break your login access to your WordPress site.  For me this has usually been do to a plugin problem after and update.  The login page may not load or you may even get a cookies need enable error.

To fix the issue:
Log into your hosting site as root.

Go to the directory you install word press into.  Possibly: /var/www/html/wordpress

Go to /wp-contents/

mv plugins/ oldplugins

mkdir plugins

chmod 705 plugins/

You can now log into your wordpress site.

Once logged in:

cp -R oldplugins/* plugins/

Category: Websites | Comments Off on WordPress: Cannot log into admin pages
April 14

WordPress: Increase the file upload limit

In /etc/php.ini search for:
post_max_size = 8M
upload_max_filesize = 2M

Change to the needed size and save.


If the above does not work try adding the following to the .htaccess file in the root WordPress directory:

<IfModule mod_php5.c>
php_value upload_max_filesize 10M
php_value post_max_size 10M
</IfModule>

Category: Websites | Comments Off on WordPress: Increase the file upload limit