Preface:Yesterday learned to install the server, today try to install lamp through the remote terminal Xshell, with the development environment, there is an integrated environment can be installed using a key, or a blind toss, manually step by step to build this development environment.Next : Ubuntu server 14.04 LTS bu
the command apt-get installation Mysql-server, run to Renaming removed key_buffer and myisam-recover options (if present) still stuck, I stopped the terminal again, found that the boot is also successful, try to enter the shell interface, There is another new error: ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock‘ (2) , and then find a lot of domestic and
0. Install lamp environment in virtual machineProblem solving:From Baidu ExperienceQuestion 1,Remote login to Linux system with putty, display network error connection refusedProblem solvingQuestion 2,Computer environment for Windows 7, installed in VirtualBox Ubuntu SERVERLP and installed the lamp environment I want to be able to access the Web site in the virtu
1.Install mysql:[ Install MySQL5 service and client , follow the prompts to enter the root user's password ]sudo apt-get install mysql-server mysql-client2.Install Apache2:sudo apt-get install apache2The default directory for the server is/var/www/html3.Installing PHP7sudo apt-get install php7.04.Installing the Apache2 PHP7 modulesudo apt-get install libapache2-mod-php7.05.Test If PHP is working properly
1. Download Ubuntu Server, address Https://www.ubuntu.com/download/server2. Install Ubuntu Server on the virtual machine. Follow the install boot process step-by-step installation, similar to installing the Windows operating system on your PC. A user name and password are set in the installation, and the prompt to ente
1. Install Lamp on UbuntuApt-get Install lamp-server^2. Set the MySQL password during installation3. Test Create index.phpvar/www/html/index.phpThe content of index.php isRestart Apache,Service Apache2 RestartEnter in the browserhttp://localhost/index.phpor localhost to an IP address5 Configuring MySQLcat/etc/hosts | grep localhostdisplaying: 127.0.0.1 localhostc
Installing Apache2
Installation code
sudo apt-get install apache2
Change the default directory
sudo vim/etc/apache2/apache2.conf //change Install PHP
Installation code
sudo apt-get install PHP7. 0 // there is no php5 in the ubuntu16.04, just load 7 bar sudo apt-get install LIBAPACHE2-MOD-PHP7. 0 // Configure APACHE+PHP7 sudo apt-get install libapache2-mod- php// This should be configured APACHE+PHP5, a piece of sudo/etc/init.d/apache2 rest
Prepare the article:
1, configure the firewall, open 80 ports, 3306 ports
Note: The Ubuntu default installation is not open any firewall, for the security of the server, we recommend that you install the firewall settings, it is recommended to use the Iptables firewall.Whereis iptables #查看系统是否安装防火墙Iptables:/sbin/iptables/usr/share/iptables/usr/share/man/man8/iptables.8.gz #表示已经安装iptablesApt-get Install ip
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.