I just got started with DigitalOcean yesterday, my first VPN so apologies in advance for any unnecessary questions.
I have been able to install dependencies for NodeBB and also install NodeBB itself. But now I’m also trying to setup for WordPress on the same droplet
I have successfully carried out the LEMP installation through help articles, but I’m getting stuck at phpMyAdmin installation. Biggest issue now is with the mcrypt service, I can’t get it to start
Based on this tutorial, https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-with-nginx-on-an-ubuntu-14-04-server
Everytime I try to run this code ‘sudo php5enmod mcrypt’ I get an error saying php5enmod can’t be found. I know that I’m currently running php7 so I thought that was the problem.
However I’ve gone round this for about 14hrs and I still can’t figure it out
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
cd /etc/php5/mods-available sudo ln -s …/conf.d/mcrypt.ini . 2) Activate the module with sudo php5enmod mcrypt.
Then log into the PMA, the issue will be fixed.
The guide you’re working from is for Ubuntu 14.04. While the basics from the guide will work just fine, with the latest release of PHP, there’s no need to run a command to enable PHP modules as they are enabled during package installation.
The php5enmod is specific to PHP 5.x and wouldn’t apply in your case (and it won’t be on your Droplet).
To confirm whether or not mcrypt is enabled, simply create a PHP info page and do a search on the page for mcrypt.
<?php phpinfo(); ?>
When you install a package, where the package is installed depends on the package maintainer. You can install a package while inside of any directory, though that doesn’t mean the package will install there.
If you installed phpMyAdmin using the PPA you’ve noted, then phpMyAdmin is located here:
/usr/share/phpmyadmin
The phpMyAdmin packages don’t auto-configure NGINX by default (as only Apache & Lighttpd are on the list that includes default configurations), so you’d need to setup a location block inside the current server block for your domain to handle requests for phpMyAdmin.
Something such as:
location /phpmyadmin {
root /usr/share/phpmyadmin;
try_files $uri $uri/ =404;
}
You would then need to reload NGINX for the changes to take.
systemctl reload nginx
or
service nginx reload
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.