tutorialspoint website development

2022.03.16

Learn website development from scratch——2.buildLNMPenvironment nginxinstallation configuration,mariadb(mysql)installation configuration,phpinstallation configuration,phpmyadmininstallation and configuration)

(tutorialspoint website development)tutorialspoint website development

Log in to the test server in the terminal

tutorialspoint website development

sudo apt install nginx
Installnginx
tutorialspoint website development

tutorialspoint website development

Type in the browserhttp://192.168.11.37/(virtual machineipaddress),can see anginxdefault welcome screen。This proves that ournginxInstallation was successful!

tutorialspoint website development

sudo apt install mariadb-server
Installmariadb(mysql),This database server ismysqluse the same。
tutorialspoint website development(tutorialspoint website development)

sudo mysql_secure_installation
After installation is complete,first run MySQL / MariaDB setting,By default we will be asked for a password,We can just go back。
tutorialspoint website development

tutorialspoint website development

set uprootpassword

tutorialspoint website development

tutorialspoint website development

tutorialspoint website development

tutorialspoint website development(tutorialspoint website development)

sudo mariadb
Connected tomariadb,Do some database configuration
1.use mysql;
2.update user set authentication_string=password('root'),plugin='mysql_native_password' where user='root';
The second step is to set up the database serverrootpassword isroot,and letrootCan log in with password。
3.flush privileges;
third step,Refresh permissions
4.exit quitmariadb
tutorialspoint website development

tutorialspoint website development

tutorialspoint website development

mariadb -u username -p
Connect to the database
tutorialspoint website development(tutorialspoint website development)

tutorialspoint website development


SHOW DATABASES;
Show all databases in the database server
tutorialspoint website development

sudo apt install php-fpm php-mysql php-mbstring
Installphp-fpmand some must-have extensions
tutorialspoint website development

sudo nano /etc/nginx/sites-available/default
editnginxDefault site configuration
The main point is the red marked part of the figure below
Edit done by pressingctrl+x,then enterY,Then press enter to save
tutorialspoint website development

tutorialspoint website development

tutorialspoint website development(tutorialspoint website development)

sudo service nginx restart
rebootnginxServe,Make the changes you just made take effect
(tutorialspoint website development)tutorialspoint website development

sudo nano /var/www/html/info.php
create a testphpdocument
(tutorialspoint website development)tutorialspoint website development(tutorialspoint website development)

<?php
phpinfo();
enterphprelated information
tutorialspoint website development

tutorialspoint website development

tutorialspoint website development(tutorialspoint website development)

tutorialspoint website development

cd /var/www/html/ 
go to the website directory
sudo wget https://files.phpmyadmin.net/phpMyAdmin/5.1.3/phpMyAdmin-5.1.3-all-languages.zip
downloadphpmyadmin
sudo apt install unzip
Installunzip,to decompresszipdocument
sudo unzip phpMyAdmin-5.1.3-all-languages.zip
decompressphpmyadmin
sudo mv phpMyAdmin-5.1.3-all-languages phpmyadmin
Modify the decompressedphpmyadminFolder name isphpmyadmin
sudo mkdir /var/www/html/phpmyadmin/tmp/
createphpmyadmincache folder of
sudo chmod 777 -R /var/www/html/phpmyadmin/tmp/
givephpmyadmincache folder permissions,use here777for the convenience of testing,Do not use in formal production environment777permission
tutorialspoint website development

tutorialspoint website development

tutorialspoint website development

Create a test database

All right,to here,we buildLinux+nginx+mariadb+phpThe test environment has been completed,Next, let's learn about the website
Some basic knowledge of development,for examplehtml+css+jsthese things,and learn the basicsdiv+csslayout。Welcome to follow!
返回列表
更多新闻资讯

website development company american fork

2022-03-15

website development company american fork Florida, USA,What is the cost of a dynamic e-commerce website??At the data exitWe are e-commerce website designersThe company provides the best professional web design for small or large companies in

quality management plan for website development

2022-03-15

quality management plan for website development Website as a facade in the Internet promotion,Is the display of corporate image,The importance is self-evident。So how to build a high quality website?What issues need to pay attention to during websit

how to choose website development company

2022-03-15

how to choose website development company In today's fast-developing economy,Small and medium-sized enterprises have realized the importance of enterprise website to enterprise development。However,The website building market is polarized。Some