Cloned my Ubuntu server for Web DEV

I am not a Linux admin by any means so this is why I am reaching out to any EE that has knowledge to point me in the right direction.  

I have an Ubuntu 16.04 server running Apache2 for a Wordpress site.  I cloned it for dev purposes an I am trying to reconfigure the url for the Virtual Host as well as update the Wordpress conf database.

It looks like PHPMYADMIN is installed on this server, but I am not able to access it.  I did edit the apache2.conf to have a line
Include /etc/phpmyadmin/apache.conf

Open in new window

service apache2 restart.  

When I do that I get mbstring missing error.
So I ran get-apt install php-mbstring  
Rebooted the server.  

No dice

I am pretty sure the PHP is 5.6 on this machine.
LVL 27
yo_beeDirector of Information TechnologyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Likely this means you've cloned to a different machine.

And on your new machine, you're running a PHP-7.0 or above version... which splits several essential packages out of core, into separate, standalone installs.

See if this fixes your problem...

# find your php version
php --version

# install missing php modules
apt-get update
apt-get install php$ver-mbstring php$ver-zip php$ver-curl

Open in new window

0
yo_beeDirector of Information TechnologyAuthor Commented:
The machine is a VM that is 100% bit for bit cloned.
The only difference is the subnet it is on.
I am going to re-clone and I run what you suggested.
I will get back to you later.

I am still open to suggestions in the meantime.

Have a great weekend.
 :)
Mike
0
yo_beeDirector of Information TechnologyAuthor Commented:
You got me in the right direction.
I had to get PHPMYADMIN working first.  
I ran

For Ubuntu 15.04 and 16.04
php -m

Open in new window

and saw that the MSTRING module was missing.  Once I ran that I saw that the MSTRING.  Then I ran this.
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin.conf
sudo service apache2 reload

Open in new window


Once I ran this I got the MSTRING error and ran  your command slightly modified.

apt-get update
apt-get install php5.6-mbstring 

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
yo_beeDirector of Information TechnologyAuthor Commented:
Thanks David.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.