The following lines will install mcrypt on PHP 7.2.
RUN apt-get update -y && \
apt-get install -y libmcrypt-dev && \
pecl install mcrypt-1.0.1 && \
PV can report progress for large MySQL database imports. First, download PV (http://linux.die.net/man/1/pv)
sudo apt-get install pv
To use PV, pass the dump file, then pipe the mysql command specifying the database with -D flag:
In WordPress you can force all emails to be sent from a certain address using the following code in functions.php.
When you use a Digital Ocean server, you may see errors in the 'mail.log' because your shared IP address is blocked.
The easier solution is to use SparkPost, which can send emails for you.
lshw -class disk -short
apt-get install smartmontools
WordPress will often hide errors, however you can display them by adding these lines to the wp-config.php file:
define( 'WP_DEBUG', true );
define( 'SCRIPT_DEBUG', true );
I found that the only thing that worked for me was using Aptitude.
Then when it opens it will usually say something about unmet dependencies on the bottom. You can hit the letter g to proceed with the suggested removal. It will take you to a page where it lists what is going to happen.