This tutorial describes how to comprehensively install a LAMP server or Apache basic services, MySql, Php and phpmyadmin.
Prok-by-step we will install all the packages.
We begin by setting the correct server hostname:
nano /etc/hosts
And edit
127.0.0.1 localhost.localdomain localhost 94.130.246.172 node.serwerweb.pl node # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters
We are interested in the bold line.
IP address does not move we make only changes the hostname which will see our server.
We edit the file:
nano /etc/hostname
I change the
node.serwerweb.pl
In order to change the whole system restart server command:
reboot
validate the set hostname:
hostname
hostname -f
Both commands should return us to the same value:
node.serwerweb.pl
root@node:/tmp# hostname
node.serwerweb.pl
root@node:/tmp# hostname -f
node.serwerweb.pl
Next, we perform the system update:
apt-get update
apt-get upgrade
Install the database engine MySQL or MariaDB
MariaDB:
apt-get -y install mariadb-server mariadb-client
Mysql:
apt-get install mysql-server mysql-client
The installer will ask you to set a password to the database.
We serve it twice.
Install web server in this case Apache
apt-get -y install apache2
PHP Installation:
apt-get -y install php5 libapache2-mod-php5
Then we restart apache php modules began to be seen.
service apache2 restart
To validate the work we create a php file phpinfo
nano /var/www/html/info.php
content:
After passing page
http://ADRESIP/info.php
We should see a page with information about PHP:
The next step is ET modules php mysql and MariaDB, We search the repository:
apt-cache search php5
apt-get -y install php5-mysqlnd php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
I restart apache:
service apache2 restart
Installing APC Cache:
apt-get install php5-apcu
I restart apache:
service apache2 restart
As you can see in the picture below modules have been successfully installed you will see them in the phpinfo
The last step is to install fraficzny phpMyAdmin database management interface written in php.
apt-get -y install phpmyadmin
And we respond to the questions in the installer:
Web server to reconfigure automatically: <-- apache2 Configure database for phpmyadmin with dbconfig-common?<-- Yes Password of the database's administrative user: <-- Podajemy wcześciej ustalone hasło przy instalacji mysql/mariadb MySQL application password for phpmyadmin: <-- Ponownie podajemy hasło ustalone wcześniej
PhpMyAdmin is available at:
http://ADRESIPSERWERA/phpmyadmin
That's all we have a fully functional mysql web server
The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń…
Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji…
Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w…
You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania…
Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.…
The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy…
Zobacz komentarze
I can not zaisntalować mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket
│ '/var/run/mysqld/mysqld.sock' (111)
two days googling the problem and nothing.
It looks like you lost mysql password
Try to make reinstallation:
yum remove mysql
yum -y install mariadb-server mariadb
service mariadb start
Then you log on to the server mysql command:
mysql -u root -p
Which of these two lines is upset because for me that none of them
127.0.0.1 localhost.localdomain localhost
94.130.246.172 node.serwerweb.pl node
otherwise. Whether "localhost.localdomain localhost" I turn on kompa own name, for example.: "Romain mojkomp.localdo mojkomp" or leave it intact? A line below have exactly the type the IP address that was specified in Whose example 94.130.246.172 or maybe my external IP address ? Then I enter the server address node.serwerweb.pl no change or should change your domain mojadomena.pl? As for me, too much confusion in this manual, and this can only understand one, to whom this statement in principle, there is no need or, someone, who does not think and rewrites everything indiscriminately and then wonders why not work. Sorry if my doubts amuse or annoy someone but I would understand this and do it properly.