In order to allow more competition problem recurring, we had to manually set up your own server
And many wonderful variety of operations due to problems after the upgrade into a pit.
Write this blog in order to record I stepped pit.
first step
Buy a server, of course, I purchased the student version of the server, Ubuntu version, then registration, etc.
The second step
I use xshell connection, and then Telnet
Then began our walk a few steps:
(In fact, here a configuration process lamp environment)
Install Apache2
sudo apt-get install apache2
sudo apt-get update
In the browser address bar enter the server IP address http: // IP / (if it is entered in the local http: // localhost /)
Installing PHP
sudo apt-get install php (php remember that you can, before PHP5, PHP7 can not all be wrong)
Install mysql
sudo apt-get install mysql-server
Some blog says will be prompted to set up a database password, but I was shocked, my wood, of course, there are many blog to say silent, so put up, and then set back
Then install phpmyadmin
sudo apt-get install phpmyadmin
The installation process will let you select a server to configure, select apache2, click OK when finished
Followed by phpmyadmin configuration database, all the way to determine, in the middle of the password to be entered before the interface (but had not previously set a password directly, and so it gives you a random password is set, you can modify a few steps behind)
Creating links phpmyadminl
.sudo ln -s /usr/share/phpmyadmin /var/www/html/
(Special mention some blog en Apache and mysql)
sudo apt-get install libapache2-mod-auth-mysql (with the old version)
(In fact, this is a version of the old pit, really pit, trapped in the pit there is really miserable)
(The reason is to forget URLs, in order to show respect, it directly posted screenshots (Behind his))
sudo apt-get install libaprutill-dbd-mysql (new version)
Install phpMyAdmin build mysql visualization client
(For a more intuitive operation in the database, and is more difficult in Linux)
Install Client
$ sudo apt update
$ sudo apt install phpmyadmin php-mbstring php-gettext
$ sudo phpenmod mbstring
(Tip in "Apache2" just highlighted, while not selected. If you do not press the SPACE
select Apache, the installer will not move the necessary files during the installation. Click SPACE
, TAB
then ENTER
select Apache.)
$ sudo systemctl restart apache2
(Restart Apache to identify your changes)
Then adjust the user authentication and permissions
(I was directly configure mysql password access to specific users)
$ sudo mysql
$ mysql -u root -p
Create a new user and set a password:
MySQL > the CREATE the USER 'SAMM UY' @ 'localhost' IDENTIFIED BY 'password' ; (password to modify your own)
Then, grant the appropriate permissions to your new user. For example, you can use the following command to grant permissions to all tables in the database to the user, and add, change, and delete user rights permissions:
mysql> GRANT ALL PRIVILEGES ON *.* TO 'sammy'@'localhost' WITH GRANT OPTION;
You can now access the server through the domain name /phpmyadmin
to access the Web interface of friends or public IP address
reference:
https://cloud.tencent.com/developer/article/1040867?from=10680
https://cloud.tencent.com/developer/article/1169359
https://blog.csdn.net/xiaorouji/article/details/79123418
At the same time I went over there from CSDN blog garden, and finally in the summer also completed his github to build, that is, after about there hair blog it.
Just beginning to build, big brother is wrong please point out: https: //xu4nyu4n14.github.io