Ubuntu 14.04 Configuration Lamp Rough

Source: Internet
Author: User
Tags phpmyadmin

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.