1.1 Installing Apache2
sudo apt-get install apache2
1.2 Installing MYSQL5
sudo apt-get install mysql-server mysql-client
Need to set root password halfway
1.3 Installing PHP5
sudo apt-get install php5 libapache2-mod-php5 php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5- MCrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5- XCache libssh2-php
1.4 Installing phpMyAdmin
sudo apt-get install phpMyAdmin
...
Web server to reconfigure automatically:
<--Apache2
Configure database for phpMyAdmin with Dbconfig-common?
<--No
...
Initializing the database
sudo mysql-u root-p
Enter Password:
...
mysql> CREATE DATABASE Wordpressdb;
mysql> CREATE USER [email protected] identified by ' Wordpresspassword ';
Mysql> GRANT all privileges in wordpressdb.* to [email protected];
mysql> FLUSH privileges;
Mysql> exit
Restart Service
sudo service apache2 restart
sudo service MySQL restart
There was a problem with the installation Apache2:Depends:perl but it isn't going to being installed "in Ubuntu 14.04 Desktop?
Resolution: URL: https://www.digitalocean.com/community/questions/ How-can-i-get-rid-of-apache2-depends-perl-but-it-is-not-going-to-be-installed-in-ubuntu-14-04-desktop
1.sudo Apt-get install-f
Or
2 sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo apt-get clean
Can be installed after the above solution
Installing phpMyAdmin requires cd/var/www//html and sudo ln-s/usr/share/phpmyadmin will see phpMyAdmin in HTML
These are the problems you may encounter when configuring lamp under Ubuntu. The pro-test is effective. I am also small white, Daniel do not spray
Ubuntu 14.04 Configuration Lamp Rough