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:
- sudo apt-get purge php5-common
- sudo apt-get install libapache2-mod-php
- sudo apt-get install php-mysql
- service apache2 restart
By: Timothy Conrad
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.
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
- Select your database
- Select the SQL tab
- type: UPDATE wp_posts SET post_type = REPLACE( post_type, “page”, “post” );
- Click Go
Thanks to neilscott for posting this query on the WP support forums.
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
chmod 705 plugins/
You can now log into your wordpress site.
Once logged in:
cp -R oldplugins/* plugins/
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:
php_value upload_max_filesize 10M
php_value post_max_size 10M