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 26
yo_beeDirector of Information TechnologyAsked:
Who is Participating?
 
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
 
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:
Thanks David.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.